MCPcopy Create free account
hub / github.com/RenderKit/oidn / __cudaGetKernel

Function __cudaGetKernel

devices/cuda/curtn.cpp:836–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834
835 #if CUDA_VERSION >= 13000
836 cudaError_t CUDARTAPI __cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr)
837 {
838 if (kernelPtr == nullptr || entryFuncAddr == nullptr)
839 return Runtime::setError(cudaErrorInvalidValue);
840
841 CUkernel kernel;
842 CUresult result = Runtime::get().getKernel(entryFuncAddr, kernel);
843 if (result != CUDA_SUCCESS)
844 return Runtime::setError(result);
845
846 *kernelPtr = kernel;
847 return cudaSuccess;
848 }
849
850 cudaError_t CUDARTAPI __cudaLaunchKernel(cudaKernel_t kernel,
851 dim3 gridDim,

Callers

nothing calls this directly

Calls 2

getFunction · 0.85
getKernelMethod · 0.80

Tested by

no test coverage detected