We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2795aa commit 84ba92cCopy full SHA for 84ba92c
tests/test_common.py
@@ -52,7 +52,9 @@ def test_common_atomicadd(test_context):
52
53
expected = 1000
54
result = np.array([0], dtype=np.float64)
55
- test_context.kernels.test_atomic_add(out=result)
+ result_ctx = test_context.nparray_to_context_array(result)
56
+ test_context.kernels.test_atomic_add(out=result_ctx)
57
+ result = test_context.nparray_form_context_array(result_ctx)[0]
58
59
assert result == expected
60
0 commit comments