!! To compile the [OpenCL-Dll]/[OpenCL-so] USE A VIRTUALMASCHINE you will need a laboratory environment!!
03/04/2020
> git clone --recursive https://github.com/facebamm/OpenCl-Compile-Kit.git
Open the software folder or download the software below
- run git install
- run vs_BuildTools install
2.1. Select "C++ build tools"
2.2. install - run wdk install
Under the documents create new folder named "OpenCL", move into it.
Click into the space of that folder and then hold shift and press right-mouse.
Now hit the "Open PowerShell window here" menu-item.
> git clone --recursive https://github.com/facebamm/OpenCl-Compile-Kit.git
Setup the ICD-Loader
> mkdir .\OpenCL-ICD-Loader\inc\CL
> mkdir .\OpenCL-ICD-Loader\build
> Copy-Item OpenCL-Headers/CL/* -Destination OpenCL-ICD-Loader/inc/CL -Recurse
> exit
now open "Developer Command Prompt for VS 2019"
> cd path/to/OpenCL-ICD-Loader/build
e.g.: cd C:\[...]\[OpenCL]\OpenCL-ICD-Loader\build
> cmake ..
> msbuild OPENCL_ICD_LOADER.sln /p:Configuration=Release
You will find the dll inside the build folder in Release folder :D
Dowload the repositories
> git clone --recursive https://github.com/facebamm/OpenCl-Compile-Kit.git
Setup the ICD-Loader
> mkdir OpenCL-ICD-Loader/inc/CL
> mkdir OpenCL-ICD-Loader/build
> cp -r OpenCL-Headers/CL/* OpenCL-ICD-Loader/inc/CL
> cd OpenCL-ICD-Loader/build
> cmake -DCMAKE_BUILD_TYPE=Release ..
> make
You will find the so files inside the build folder :D
to change the version you have only to replace the headerfiles inside the OpenCL-Headers/CL/
folder
cmake -A x64 ..
-> AMD64
cmake -A x32 ..
-> AMD32
https://git-scm.com - Page
https://git-scm.com/download/win - Download
https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017 - Page
https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16 - Download
https://docs.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk - Page
https://go.microsoft.com/fwlink/?linkid=2085767 - Download