SimpleOpenCLSamples icon indicating copy to clipboard operation
SimpleOpenCLSamples copied to clipboard

Added missing interface for CL_SEMAPHORE_DEVICE_HANDLE_LIST_KHR property

Open shajder opened this issue 10 months ago • 1 comments

Completed during work on CTS PR

shajder avatar Apr 09 '24 13:04 shajder

I see the error from windows build:

       (Link target) -> 
         emulate.obj : error LNK2019: unresolved external symbol _clGetDeviceInfo@20 referenced in function "public: static struct _cl_semaphore_khr * __cdecl _cl_semaphore_khr::create(struct _cl_context *,unsigned __int64 const *,int *)" (?create@_cl_semaphore_khr@@SAPAU1@PAU_cl_context@@PB_KPAH@Z) [C:\projects\simpleopenclsamples\build\layers\11_semaemu\SemaEmu.vcxproj]
         C:\projects\simpleopenclsamples\build\layers\11_semaemu\Release\SemaEmu.dll : fatal error LNK1120: 1 

I am calling plain clGetDeviceInfo because g_pNextDispatch->clGetDeviceInfo for some reason does not use clGetDeviceInfo_override. Obviously this code works for me at my machine (Nvidia, ubuntu 22.04). Any clue on your mind how to call clGetDeviceInfo at Semaphore::create level ? Thanks

shajder avatar Apr 09 '24 15:04 shajder

I'm going to go ahead and merge this even though there are CI failures because I think the failures are unrelated and already fixed in the main branch.

bashbaug avatar Jun 21 '24 22:06 bashbaug