| 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, |