Skip to content

Conversation

s-vincent
Copy link

This PR adds support for VCPKG_ROOT variable in Makefile.win. It checks that OpenCL headers can be found before use. In case VCPKG_ROOT is not defined / or no OpenCL SDK is built with vcpkg, it falls back to the OPENCLDIR detection.

I also write a script to retrieve vcpkg.exe and build the OpenCL SDK dependency (for x64 or x86) and set VCPKG_ROOT.
So a build with vcpkg can be like that (in a Developer Command Prompt terminal) :

fetch-opencl-vcpkg-win.cmd
make.cmd

I have tested with Visual Studio 2022 for x86 and x64 architectures with VCPKG_ROOT.
I also tested with the (now deprecated) AMDAPP / Intel OpenCL SDK, and the fetch-opencl-dev-win.cmd script (without VCPKG_ROOT environment variable).

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

Successfully merging this pull request may close these issues.

1 participant