MCPcopy Create free account
hub / github.com/ROCm/clr / hipKernelGetLibrary

Function hipKernelGetLibrary

hipamd/src/hip_library.cpp:243–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243hipError_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
256hipError_t hipKernelGetName(const char** name, hipKernel_t kernel) {
257 HIP_INIT_API(hipKernelGetName, name, kernel);

Callers

nothing calls this directly

Calls 1

GetFunctionLibraryMethod · 0.80

Tested by

no test coverage detected