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

CMakeLists.txt: Adjust OpenCL probing to find OCL SDK Light #2239

Merged
merged 1 commit into from
Feb 14, 2019

Conversation

Spudz76
Copy link
Contributor

@Spudz76 Spudz76 commented Feb 14, 2019

Add OCL_ROOT envvar support for Windows OCL SDK Light autodetection and prefer it over AMD APP SDK if both are installed. Tested on Win7 with both SDKs installed (and all CUDAs and Intel OpenCL SDK also... haha) it still selected properly.

OCL_ROOT envvar can be preloaded with alternate OpenCL and I have also tested using it to point to nVidia OpenCL and etc, CMake finds all and result builds fine. Older versions you would have used AMDAPPSDKROOT envvar to do the same thing, but when OCL_ROOT exists it will take precedence over all.

Moved CMAKE_PREFIX_PATH handling all to the top, previously the $ENV{CMAKE_PREFIX_PATH} would be added to the list twice (once at top and once after AMD path).

Fixes #2235 proper user expectation that it should detect automatically and build without calculating and passing exact locations.

… and prefer it over AMD APP SDK if both are installed
@psychocrypt psychocrypt merged commit 5762fbd into fireice-uk:dev Feb 14, 2019
@psychocrypt
Copy link
Collaborator

thx @Spudz76

@psychocrypt psychocrypt mentioned this pull request Feb 15, 2019
gnagel pushed a commit to gnagel/xmr-stak that referenced this pull request Mar 23, 2019
CMakeLists.txt: Adjust OpenCL probing to find OCL SDK Light
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants