Is it possible to call __host__
functions in pyCUDA
like you can __global__
functions? I noticed in the documentation that pycuda.driver.Function
creates a handle to a __global__
function. __device__
functions can be called from a __global__
function, but __host__
code cannot. I'm aware that using a __host__
function pretty much defeats the purpose of pyCUDA
, but there are some already made functions that I'd like to import and call as a proof of concept.
As a note, whenever I try to import the __host__
function, I get:
pycuda._driver.LogicError: cuModuleGetFunction failed: named symbol not found