commit | 1716c1f02e6633754ec6ec3927825d80c7ad5a67 | [log] [tgz] |
---|---|---|
author | Artur Harasimiuk <artur.harasimiuk@intel.com> | Wed Apr 10 20:10:53 2019 +0200 |
committer | Kedar Patil <kepatil@nvidia.com> | Wed Apr 10 23:40:53 2019 +0530 |
tree | 57a74c416817d8cb2bde81d046003e84cac1c2aa | |
parent | 3cb852a693d857aa3c640ba827dd2a9e74f15dd3 [diff] |
Statically link with VC++ Runtime (#57) * Statically link with VC++ Runtime VC++ Runtime dynamic library may not be available in some cases. Thus, by doing static linking it makes dll independent of already installed software and can be used without problems. Change-Id: I8bb71db2f3dc48bc9ec976cdbb597d2ec812ce54 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com> * Extend static linking of VC++ Runtime adding MinSizeRel and RelWithDebInfo targets Change-Id: I740002ca47ad4a65548b9fcad87817f730511c13 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
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).