OpenCL-ICD-Loader icon indicating copy to clipboard operation
OpenCL-ICD-Loader copied to clipboard

Test failing after clean and stock successful build with no warning or errors

Open yankarinRG opened this issue 4 years ago • 2 comments

After following the build instructions completely and with stock cmake params, running tests fail both for Debug and Release config for the following reasons with exit code 0xc0000135 (STATUS_DLL_NOT_FOUND):

icd_loader_test.exe - System Error: The code execution cannot proceed because IcdLog.dll was not found. Reinstalling the program may fix this problem.

If I manually move IcdLog.dll from build\test\log\[Debug,Release] to the directory where icd_loader_test.exe is I get this other error with exit code 0xc0000139 (STATUS_ENTRYPOINT_NOT_FOUND):

icd_loader_test.exe - Entry Point Not Found: The procedure entry point clCreateImageWithProperties could not be located in the dynamic link library C:\Users\Andrea\Downloads\OpenCL-ICD-Loader\build\test\loader_test\Debug\icd_loader_test.exe.

Built with:

  • OpenCL ICD Loader at https://github.com/KhronosGroup/OpenCL-ICD-Loader/commit/1d5315c3ed30d026acb79a1aa53a276fc833ffa7
  • OpenCL Headers at https://github.com/KhronosGroup/OpenCL-Headers/commit/c57ba81c460ee97b6b9d0b8d18faf5ba6883114b
  • MSVC 19.28.29335.0
  • Windows 10 Pro 64 bits version 20H2 build 19042.685
  • Windows SDK version 10.0.19041.0
  • Visual Studio Enterprise 2019 version 16.8.3

Screenshoots: error_release error_debug

yankarinRG avatar Dec 13 '20 21:12 yankarinRG

Hello, I wrote up the steps I follow to run the ICD loader tests here:

https://gist.github.com/bashbaug/cd41217c173c4c28088b0e07bd40ecf0

Could you please try following these steps and see if you still encounter issues?

I agree that running the ICD loader tests is very difficult right now and I think this is something we need to improve.

bashbaug avatar Dec 14 '20 15:12 bashbaug

Hello and thanks for the quick reply, now the single test passes. The trick was to place OpenCL.dll to the executable directory (other than IcdLog.dll). I think it would be an useful thing if you could update this repo guide with yours which has all the steps. Thanks again.

yankarinRG avatar Dec 15 '20 11:12 yankarinRG