SWDEV-546311 - implement hipKernelGetLibrary & hipLibraryEnumerateKer… (#1143)
* SWDEV-546311 - implement hipKernelGetLibrary & hipLibraryEnumerateKernels API * Fix for LibraryEnumerateKernel and KernelGetName * Update Enumerate Kernels to handle 0 numKernels * Minor fixes to function names * fix error checking in internal function * Update changelog for new apis --------- Co-authored-by: Rahul Manocha <rmanocha@amd.com>
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
3e59eebf17
commit
f5d901f016
@@ -2040,4 +2040,14 @@ hipError_t hipLibraryGetKernel(hipKernel_t* pKernel, hipLibrary_t library, const
|
||||
hipError_t hipLibraryGetKernelCount(unsigned int *count, hipLibrary_t library) {
|
||||
return hip::GetHipDispatchTable()->hipLibraryGetKernelCount_fn(count,
|
||||
library);
|
||||
}
|
||||
hipError_t hipLibraryEnumerateKernels(hipKernel_t* kernels, unsigned int numKernels,
|
||||
hipLibrary_t library) {
|
||||
return hip::GetHipDispatchTable()->hipLibraryEnumerateKernels_fn(kernels, numKernels, library);
|
||||
}
|
||||
hipError_t hipKernelGetLibrary(hipLibrary_t* library, hipKernel_t kernel) {
|
||||
return hip::GetHipDispatchTable()->hipKernelGetLibrary_fn(library, kernel);
|
||||
}
|
||||
hipError_t hipKernelGetName(const char** name, hipKernel_t kernel) {
|
||||
return hip::GetHipDispatchTable()->hipKernelGetName_fn(name, kernel);
|
||||
}
|
||||
Reference in New Issue
Block a user