commit | b30c815628bc13d88cdb92b4ea17f1969e02f386 | [log] [tgz] |
---|---|---|
author | cos-public <konstantin.kapustnik@gmail.com> | Mon Apr 08 05:08:26 2019 +0630 |
committer | Ben Ashbaugh <ben.ashbaugh@intel.com> | Sun Apr 07 15:38:26 2019 -0700 |
tree | 037f00788084616b31a6054b86cfb9aee8959a3e | |
parent | e7d9330a4629b51485d84f86e49b32eaba35d5d7 [diff] |
Update icd_windows.c (#51) Return TRUE from khrIcdOsVendorsEnumerate() even if RegOpenKeyExA() fails to open the key.
The build system will build ICD Loader library (OpenCL.dll or libOpenCL.so), the ICD Loader Test binary (icd_loader_test), and some helper libraries for the test.
Run “make”
Run “build_using_cmake.bat”
The ICD Test can be run using ctest, which is a companion to cmake. It can also be run directly by executing icd_loader_test(.exe) executable from the bin folder.
Add driver stub as an ICD echo full/path/to/libOpenCLDriverStub.so > /etc/OpenCL/vendors/test.icd
Run test using ctest make test
Add driver stub as an ICD by adding appropriate registry value Key for 32-bit apps: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Khronos\OpenCL\Vendors Key for 64-bit apps: HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors
Add a REG_DWORD value: Name: c:/full/path/to/OpenCLDriverStub.dll Data: 0
Note: The build_using_cmake.bat builds ICD test as a 32-bit binary.
Run test using ctest.exe cd build ctest.exe
Manually remove the registry key or .icd files added for running the ICD test.
The “build” and “bin” folders are autogenerated by the build so those may be safely deleted without losing any source code (on Linux “make clobber” will delete them).