Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

instructions for compiling clpeak for Windows #100

Open
acollaborator opened this issue Apr 12, 2023 · 0 comments
Open

instructions for compiling clpeak for Windows #100

acollaborator opened this issue Apr 12, 2023 · 0 comments

Comments

@acollaborator
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant