MCPcopy Create free account
hub / github.com/apache/arrow / increment_by_one

Function increment_by_one

python/pyarrow/tests/test_cuda_numba_interop.py:223–226  ·  view source on GitHub ↗
(an_array)

Source from the content-addressed store, hash-verified

221
222 @nb_cuda.jit
223 def increment_by_one(an_array):
224 pos = nb_cuda.grid(1)
225 if pos < an_array.size:
226 an_array[pos] += 1
227
228 # applying numba.cuda kernel to memory hold by CudaBuffer
229 size = 10

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected