Skip to content

Commit

Permalink
New symbols should be queried through the library.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerilk committed Nov 28, 2023
1 parent 6b14a70 commit e7c93f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/icd.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ void khrIcdVendorAdd(const char *libraryName)

#if KHR_LOADER_MANAGED_DISPATCH
// try to get clIcdGetFunctionAddressForPlatformKHR and clIcdSetPlatformDispatchDataKHR to detect cl_khr_icd2 support
p_clIcdGetFunctionAddressForPlatform = (clIcdGetFunctionAddressForPlatformKHR_fn)(size_t)p_clGetExtensionFunctionAddress("clIcdGetFunctionAddressForPlatformKHR");
p_clIcdSetPlatformDispatchData = (clIcdSetPlatformDispatchDataKHR_fn)(size_t)p_clGetExtensionFunctionAddress("clIcdSetPlatformDispatchDataKHR");
p_clIcdGetFunctionAddressForPlatform = (clIcdGetFunctionAddressForPlatformKHR_fn)(size_t)khrIcdOsLibraryGetFunctionAddress(library, "clIcdGetFunctionAddressForPlatformKHR");
p_clIcdSetPlatformDispatchData = (clIcdSetPlatformDispatchDataKHR_fn)(size_t)khrIcdOsLibraryGetFunctionAddress(library, "clIcdSetPlatformDispatchDataKHR");
#endif

// query the number of platforms available and allocate space to store them
Expand Down

0 comments on commit e7c93f9

Please sign in to comment.