Open acollaborator opened 1 year ago
In Windows, install Visual Studio (VS) 2022 Community Edition configured for Desktop C/C++ development. https://visualstudio.microsoft.com/vs/community/
git clone http://github.com/krrishnarraj/clpeak
Download the current release of OpenCL headers and library from https://github.com/KhronosGroup/OpenCL-SDK/releases
Do not use OCL_SDK_Light from https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/releases
Place the Khronos OpenCL-SDK in a file path of your choice.
Add Windows environment variables or add these variables to the CMakeSettings of a VS project's configuration.
Note that OpenCL_LIBRARY should be set to the fully qualified path of the OpenCL.lib file.
example of Windows environment variables:
OpenCL_INCLUDE_DIR C:/Users/your_user_name/some_path/OpenCL-SDK-v2023.02.06-Win-x64/OpenCL-SDK-v2023.02.06-Win-x64/include
OpenCL_LIBRARY C:/Users/your_user_name/some_path/OpenCL-SDK-v2023.02.06-Win-x64/OpenCL-SDK-v2023.02.06-Win-x64/lib/OpenCL.lib
example of CMakeSettings variables of a VS project configuration:
{ "name": "OpenCL_INCLUDE_DIR", "value": "C:/Users/your_user_name/some_path/OpenCL-SDK-v2023.02.06-Win-x64/OpenCL-SDK-v2023.02.06-Win-x64/include", "type": "PATH" }, { "name": "OpenCL_LIBRARY", "value": "C:/Users/your_user_name/some_path/OpenCL-SDK-v2023.02.06-Win-x64/OpenCL-SDK-v2023.02.06-Win-x64/lib/OpenCL.lib", "type": "FILEPATH" }
In Visual Studio, build a release of clpeak.
In Windows, install Visual Studio (VS) 2022 Community Edition configured for Desktop C/C++ development. https://visualstudio.microsoft.com/vs/community/
git clone http://github.com/krrishnarraj/clpeak
Download the current release of OpenCL headers and library from https://github.com/KhronosGroup/OpenCL-SDK/releases
Do not use OCL_SDK_Light from https://github.com/GPUOpen-LibrariesAndSDKs/OCL-SDK/releases
Place the Khronos OpenCL-SDK in a file path of your choice.
Add Windows environment variables or add these variables to the CMakeSettings of a VS project's configuration.
Note that OpenCL_LIBRARY should be set to the fully qualified path of the OpenCL.lib file.
example of Windows environment variables:
OpenCL_INCLUDE_DIR C:/Users/your_user_name/some_path/OpenCL-SDK-v2023.02.06-Win-x64/OpenCL-SDK-v2023.02.06-Win-x64/include
OpenCL_LIBRARY C:/Users/your_user_name/some_path/OpenCL-SDK-v2023.02.06-Win-x64/OpenCL-SDK-v2023.02.06-Win-x64/lib/OpenCL.lib
example of CMakeSettings variables of a VS project configuration:
{ "name": "OpenCL_INCLUDE_DIR", "value": "C:/Users/your_user_name/some_path/OpenCL-SDK-v2023.02.06-Win-x64/OpenCL-SDK-v2023.02.06-Win-x64/include", "type": "PATH" }, { "name": "OpenCL_LIBRARY", "value": "C:/Users/your_user_name/some_path/OpenCL-SDK-v2023.02.06-Win-x64/OpenCL-SDK-v2023.02.06-Win-x64/lib/OpenCL.lib", "type": "FILEPATH" }
In Visual Studio, build a release of clpeak.