The documentation for creating an empty array on the GPU with numba.cuda.device_array()
describes the function as:
Allocate an empty device ndarray. Similar to
numpy.empty()
.
From my own tests the created CUDA array is filled with zeros, which is unlike the behaviour of numpy.empty() that fills an array “without initializing entries”.
What are the initialised values of the array produced by numba.cuda.device_array()
? Can I rely on them being zero every time?
PS I am unable to to include links to relevant documentations.