Skip to content

Commit 9c7e9a1

Browse files
authored
Merge pull request #260 from IntelPython/fix/gpairs_dpnp_allocation
Fix gpairs dpnp allocation
2 parents efc7f1f + b623eaf commit 9c7e9a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dpbench/benchmarks/gpairs/gpairs_dpnp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def _gpairs_impl(x1, y1, z1, w1, x2, y2, z2, w2, rbins):
1212
+ np.square(z2 - z1[:, None])
1313
)
1414
return np.array(
15-
[np.outer(w1, w2)[dm <= rbins[k]].sum() for k in range(len(rbins))]
15+
[np.outer(w1, w2)[dm <= rbins[k]].sum() for k in range(len(rbins))],
16+
device=x1.device,
1617
)
1718

1819

0 commit comments

Comments
 (0)