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:
@@ -6424,6 +6424,35 @@ hipError_t hipLibraryGetKernel(hipKernel_t* pKernel, hipLibrary_t library, const
|
||||
*/
|
||||
hipError_t hipLibraryGetKernelCount(unsigned int *count, hipLibrary_t library);
|
||||
|
||||
/**
|
||||
* @brief Retrieve kernel handles within a library
|
||||
*
|
||||
* @param [out] kernels Buffer for kernel handles
|
||||
* @param [in] numKernels Maximum number of kernel handles to return to buffer
|
||||
* @oaram [in] library Library handle to query from
|
||||
* @return #hipSuccess, #hipErrorInvalidValue
|
||||
*/
|
||||
hipError_t hipLibraryEnumerateKernels(hipKernel_t* kernels, unsigned int numKernels,
|
||||
hipLibrary_t library);
|
||||
|
||||
/**
|
||||
* @brief Returns a Library Handle
|
||||
*
|
||||
* @param [out] library Returned Library handle
|
||||
* @param [in] kernel Kernel to retrieve library Handle
|
||||
* @return #hipSuccess, #hipErrorInvalidValue
|
||||
*/
|
||||
hipError_t hipKernelGetLibrary(hipLibrary_t* library, hipKernel_t kernel);
|
||||
|
||||
/**
|
||||
* @brief Returns a Kernel Name
|
||||
*
|
||||
* @param [out] name Returned Kernel Name
|
||||
* @param [in] kernel Kernel handle to retrieve name
|
||||
* @return #hipSuccess, #hipErrorInvalidValue
|
||||
*/
|
||||
hipError_t hipKernelGetName(const char** name, hipKernel_t kernel);
|
||||
|
||||
/**
|
||||
* @brief Find out attributes for a given function.
|
||||
* @ingroup Execution
|
||||
|
||||
Reference in New Issue
Block a user