You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Fixed assert on windows with GetModuleFileNameA failed (#1809)
This patch fixes a problem on Windows, when any unit test with invocation kernel run:
`Assertion failed: Ret > 0 && "GetModuleFileNameA failed", file D:\sycl_workspace\llvm\sycl\source\detail\os_util.cpp, line 208`
GetModuleFileNameA() requires 0 as the first parameter for current executable module, but it is -1 (OSUtil::ExeModuleHandle), see return value in getOSModuleHandle().
About GetModuleFileNameA() from Windows API doc :
> A handle to the loaded module whose path is being requested. If this parameter is NULL, GetModuleFileName retrieves the path of the executable file of the current process.
Signed-off-by: Alexander Flegontov <[email protected]>
0 commit comments