pub unsafe extern "C" fn cudaGetKernel(
kernelPtr: *mut cudaKernel_t,
entryFuncAddr: *const c_void,
) -> cudaError_tExpand description
Get pointer to device kernel that matches entry function entryFuncAddr.
Returns in kernelPtr the device kernel corresponding to the entry function entryFuncAddr.
Note that it is possible that there are multiple symbols belonging to different translation units with the same entryFuncAddr registered with this CUDA Runtime and so the order which the translation units are loaded and registered with the CUDA Runtime can lead to differing return pointers in kernelPtr. Suggested methods of ensuring uniqueness are to limit visibility of global device functions by using static or hidden visibility attribute in the respective translation units.
§Parameters
kernelPtr: Returns the device kernel.entryFuncAddr: Address of device entry function to search kernel for.
§Return value
See also: (C++, API).