MCPcopy Create free account
hub / github.com/Kaggle/docker-python / increment_by_one

Method increment_by_one

tests/test_numba.py:28–31  ·  view source on GitHub ↗
(an_array)

Source from the content-addressed store, hash-verified

26
27 @cuda.jit
28 def increment_by_one(an_array):
29 pos = cuda.grid(1)
30 if pos < an_array.size:
31 an_array[pos] += 1
32
33 threadsperblock = 32
34 blockspergrid = (x.size + (threadsperblock - 1))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected