diff --git a/challenges/medium/17_dot_product/challenge.html b/challenges/medium/17_dot_product/challenge.html index 25eeb17..6fd6445 100644 --- a/challenges/medium/17_dot_product/challenge.html +++ b/challenges/medium/17_dot_product/challenge.html @@ -27,5 +27,5 @@

Constraints

  • A and B have identical lengths
  • 1 ≤ N ≤ 100,000,000
  • -
  • Performance is measured with N = 5
  • +
  • Performance is measured with N = 4194304
  • diff --git a/challenges/medium/17_dot_product/challenge.py b/challenges/medium/17_dot_product/challenge.py index 8464163..c275b6e 100644 --- a/challenges/medium/17_dot_product/challenge.py +++ b/challenges/medium/17_dot_product/challenge.py @@ -105,7 +105,7 @@ def generate_functional_test(self) -> List[Dict[str, Any]]: def generate_performance_test(self) -> Dict[str, Any]: dtype = torch.float32 - N = 5 + N = 4194304 A = torch.empty(N, device="cuda", dtype=dtype).uniform_(-1.0, 1.0) B = torch.empty(N, device="cuda", dtype=dtype).uniform_(-1.0, 1.0) result = torch.zeros(1, device="cuda", dtype=dtype)