| 241 | } |
| 242 | |
| 243 | hipError_t hipKernelGetLibrary(hipLibrary_t* library, hipKernel_t kernel) { |
| 244 | HIP_INIT_API(hipKernelGetLibrary, library, kernel); |
| 245 | if (library == nullptr || kernel == nullptr) { |
| 246 | HIP_RETURN(hipErrorInvalidValue); |
| 247 | } |
| 248 | |
| 249 | if (!hip::PlatformState::instance().GetFunctionLibrary(kernel, library)) { |
| 250 | HIP_RETURN(hipErrorInvalidHandle); |
| 251 | } |
| 252 | |
| 253 | HIP_RETURN(hipSuccess); |
| 254 | } |
| 255 | |
| 256 | hipError_t hipKernelGetName(const char** name, hipKernel_t kernel) { |
| 257 | HIP_INIT_API(hipKernelGetName, name, kernel); |
nothing calls this directly
no test coverage detected