From 73de502585efb04686d330cddcfcb91644a7fac0 Mon Sep 17 00:00:00 2001 From: Derek Adams Date: Thu, 14 Dec 2017 23:20:25 -0800 Subject: [PATCH 1/3] Update CMakeLists.txt Installed xmr-stak on fresh Ubuntu 16.04 with just AMDGPU-PRO and required these changes and use of OpenCL_ROOT=/opt/amdgpu-pro for successful compilation with OpenCL. Also requires the opencl-headers package from Ubuntu's repository. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8f1eef..0d70268 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,6 +228,7 @@ if(OpenCL_ENABLE) ENV AMDAPPSDKROOT ENV ATISTREAMSDKROOT ENV "PROGRAMFILES(X86)" + /usr/include PATH_SUFFIXES include OpenCL/common/inc @@ -246,6 +247,7 @@ if(OpenCL_ENABLE) PATH_SUFFIXES "AMD APP/lib/x86_64" lib/x86_64 + lib/x86_64-linux-gnu lib/x64 OpenCL/common/lib/x64) # find package will use the previews searched path variables From a5a8845699172a7cd9b4414bd01357335d64ca82 Mon Sep 17 00:00:00 2001 From: Derek Adams Date: Sun, 17 Dec 2017 17:24:21 -0800 Subject: [PATCH 2/3] Address reviewer comments. Adjust spacing and pathing based on review feedback. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d70268..5956690 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,7 +228,7 @@ if(OpenCL_ENABLE) ENV AMDAPPSDKROOT ENV ATISTREAMSDKROOT ENV "PROGRAMFILES(X86)" - /usr/include + /usr PATH_SUFFIXES include OpenCL/common/inc From 4515d65f9276b0eee0c89a4c3416129bce79bb39 Mon Sep 17 00:00:00 2001 From: Derek Adams Date: Sun, 17 Dec 2017 17:25:38 -0800 Subject: [PATCH 3/3] Again, fix spacing The github online editor is injecting tabs for some reason, fixed them. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5956690..15c8c8b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -228,7 +228,7 @@ if(OpenCL_ENABLE) ENV AMDAPPSDKROOT ENV ATISTREAMSDKROOT ENV "PROGRAMFILES(X86)" - /usr + /usr PATH_SUFFIXES include OpenCL/common/inc @@ -247,7 +247,7 @@ if(OpenCL_ENABLE) PATH_SUFFIXES "AMD APP/lib/x86_64" lib/x86_64 - lib/x86_64-linux-gnu + lib/x86_64-linux-gnu lib/x64 OpenCL/common/lib/x64) # find package will use the previews searched path variables