I have a re-useable function in some CUDA code that needs to be called from both the device and the host. Is there an appropriate qualifier for this?
e.g. what\'s th
From the CUDA Programming Guide:
The __device__ and __host__ qualifiers can be used together however, in which case the function is compiled for both the host and the device.
__device__
__host__