You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is currently not a way to pass a NULL pointer to a C function from a compiled python function in CUDA. The value cffi.NULL should be valid in such functions.
In Cython code, we have had some success using uintptr_t (for example)
Cython treats uintptr_t as coercible to/from a Python int object. So users are then able to pass 0 then have that treated as NULL at the Cython/C/C++ layer. There may be some explicit casting between uintptr_t and C/C++ pointer types like void* (for example), but this is pretty trivial/fast to do
Not sure exactly how this maps to numba-cuda's model of working with C/C++, but hopefully this is a helpful way of thinking about the problem
From numba/numba#9655:
For example:
cc @ed-o-saurus
The text was updated successfully, but these errors were encountered: