xmr-stak-amd
xmr-stak-amd copied to clipboard
Could NOT find OpenCL (missing: OpenCL_LIBRARY) (found version "2.0") Please Help!
I followed this guide: https://www.reddit.com/r/MoneroMining/comments/5wyz3i/gpu_mining_on_a_system_running_centos_7/
but cannot compile xmr-stak-amd I get these errors:
[root@localhost xmr-stak-amd]# cmake3 . CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find OpenCL (missing: OpenCL_LIBRARY) (found version "2.0") Call Stack (most recent call first): /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake3/Modules/FindOpenCL.cmake:128 (find_package_handle_standard_args) CMakeLists.txt:46 (find_package)
Running on CentOS 7 Can someone please help.
By the way I know my AMDGPU-PRO 17.30 drivers and AMDSDKAPP-3.0 is configured correctly because wolf-xmr-miner-4.0 is working (although poorly which is why I want to make the switch.)
My gcc is version 5-4-0. My video card is AMD rx 480
Please try cmake 2.x, I have never tried to compile with cmake 3.
Same error here, but if I tried with cmake 2.8.10, I get this error:
CMake 3.1.3 or higher is required. You are running version 2.8.10
Yes me as well I get CMake 3.1.3 or higher .....
@eugeneccnp I am using Ubuntu 16.04 and I fixed this problem specifying OpenCL dir:
cmake -DOpenCL_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/ .
ok trying that now ^^
cmake gives me this error:
$cmake -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/include/ . CMake Error at CMakeLists.txt:3 (cmake_minimum_required): CMake 3.1.3 or higher is required. You are running version 2.8.12.2
-- Configuring incomplete, errors occurred! See also "/home/msi/xmr-stak-amd/CMakeFiles/CMakeOutput.log". See also "/home/msi/xmr-stak-amd/CMakeFiles/CMakeError.log".
cmake3 gives me this error:
$cmake3 -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/include/ . CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find OpenCL (missing: OpenCL_LIBRARY) (found version "2.0") Call Stack (most recent call first): /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake3/Modules/FindOpenCL.cmake:128 (find_package_handle_standard_args) CMakeLists.txt:46 (find_package)
-- Configuring incomplete, errors occurred! See also "/home/msi/xmr-stak-amd/CMakeFiles/CMakeOutput.log". See also "/home/msi/xmr-stak-amd/CMakeFiles/CMakeError.log".
Will install ubuntu 16.04 and try again later on
sry my fault you need CMake 3.1 or higher.
Am 13.09.2017 3:39 Nachm. schrieb "eugeneccnp" [email protected]:
Will install ubuntu 16.04 and try again later on
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak-amd/issues/97#issuecomment-329170795, or mute the thread https://github.com/notifications/unsubscribe-auth/AYsxtnzoaZ54Zpf3WSW1HtPInMP71w6Eks5sh9sWgaJpZM4PREvK .
cmake can't find opencl here either. i tried "cmake ." and "cmake -D OpenCL_INCLUDE_DIR=/opt/amdgpu-pro/lib/x86_64-linux-gnu ." no luck.
this miner is currently mining with optiminer and has:
gcc-6/zesty,now 6.3.0-12ubuntu2 amd64 cmake/zesty,now 3.7.2-1 amd64 libopencl1-amdgpu-pro/now 17.10-414273 amd64 OpenCL 2.0 AMD-APP (2348.3)
thanks
please remove the space after -D
Am 13.09.2017 22:04 schrieb "ITwrx" [email protected]:
cmake can't find opencl here either. i tried "cmake ." and "cmake -D OpenCL_INCLUDE_DIR=/opt/amdgpu-pro/lib/x86_64-linux-gnu ." no luck.
this miner is currently mining with optiminer and has:
gcc-6/zesty,now 6.3.0-12ubuntu2 amd64 cmake/zesty,now 3.7.2-1 amd64 libopencl1-amdgpu-pro/now 17.10-414273 amd64 OpenCL 2.0 AMD-APP (2348.3)
thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak-amd/issues/97#issuecomment-329281316, or mute the thread https://github.com/notifications/unsubscribe-auth/AYsxtokKsaQA5hDEHpuGNImeMMO-OBMJks5siDVhgaJpZM4PREvK .
include dir should point to header files and not to a lib folder!
Am 14.09.2017 22:22 schrieb "psychocrypt" [email protected]:
please remove the space after -D
Am 13.09.2017 22:04 schrieb "ITwrx" [email protected]:
cmake can't find opencl here either. i tried "cmake ." and "cmake -D OpenCL_INCLUDE_DIR=/opt/amdgpu-pro/lib/x86_64-linux-gnu ." no luck.
this miner is currently mining with optiminer and has:
gcc-6/zesty,now 6.3.0-12ubuntu2 amd64 cmake/zesty,now 3.7.2-1 amd64 libopencl1-amdgpu-pro/now 17.10-414273 amd64 OpenCL 2.0 AMD-APP (2348.3)
thanks
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak-amd/issues/97#issuecomment-329281316, or mute the thread https://github.com/notifications/unsubscribe-auth/AYsxtokKsaQA5hDEHpuGNImeMMO-OBMJks5siDVhgaJpZM4PREvK .
i forgot i only had ocl-icd-opencl instead of ocl-icd-opencl-dev. once i installed that i used
cmake -DOpenCL_INCLUDE_DIR=/usr/include/CL
and cmake was able to find the OpenCL headers.
then cmake complained about not being able to find openssl with
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
installing libssl-dev solved that.
@psychocrypt thanks for your help, it's built now.
for Arch Linux one needs to install the opencl-headers package.
Yeah OpenCL headers are in /usr/include/CL
and openssl ones are in /usr/include/openssl
on Arch.
FWIW running sudo apt install ocl-icd-opencl-dev
on Ubuntu 16.04 with cmake version 3.5.1 solved this issue for me.
Ubuntu 17 run sudo apt install ocl-icd-opencl-dev
, It works for me.
On rpm based systems its: dnf install ocl-icd-devel (Fedora 26)
I am using Ubuntu 16.04.3 LTS
on NVIDIA GTX 1080. I got cmake ..
successfully working after sudo apt install ocl-icd-opencl-dev
. Cmake is cmake version 3.5.1
However, cmake install
gives the following errors
[ 70%] Building NVCC (Device) object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_extra.cu.o
/root/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu:9:32: fatal error: device_functions.hpp: No such file or directory
compilation terminated.
CMake Error at xmrstak_cuda_backend_generated_cuda_extra.cu.o.cmake:207 (message):
Error generating
/root/xmr-stak/build/CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/./xmrstak_cuda_backend_generated_cuda_extra.cu.o
CMakeFiles/xmrstak_cuda_backend.dir/build.make:63: recipe for target 'CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_extra.cu.o' failed
make[2]: *** [CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/xmrstak_cuda_backend_generated_cuda_extra.cu.o] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/xmrstak_cuda_backend.dir/all' failed
make[1]: *** [CMakeFiles/xmrstak_cuda_backend.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Solution:
I found this case https://github.com/fireice-uk/xmr-stak/issues/502. The fix was added to the dev
branch so I switched to dev (git branch dev
).
yum install ocl-icd ocl-icd-devel mesa-libGL-devel . Fixed it
I installed AMD APP SDK 3.0 as mentioned here and had the same error since /etc/ld.so.conf.d/amdapp_x86.conf
was not created opposed to 3.2.1 (3b).
Then the following command did the trick for me:
$ cmake -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/include/CL -DOpenCL_LIBRARY=/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so ..
I still had the No rule to make target '/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so' error which could be fixed with this
I installed AMD APP SDK 3.0 as mentioned here and had the same error since
/etc/ld.so.conf.d/amdapp_x86.conf
was not created opposed to 3.2.1 (3b).Then the following command did the trick for me:
$ cmake -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/include/CL -DOpenCL_LIBRARY=/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so ..
I still had the No rule to make target '/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so' error which could be fixed with this
I was unable to compile using suggested ROCM 1.9.x, but found success with @kneespan comment and using the old AMDAPPSDK-3.0 convenience link to AMDAPPSDK-3.0 mirror as pointed out in this comment
Ubuntu 18.04 run sudo apt install ocl-icd-opencl-dev , worked for me.
FWIW running
sudo apt install ocl-icd-opencl-dev
on Ubuntu 16.04 with cmake version 3.5.1 solved this issue for me.
It has solved my problem. Thanks
I'm using Pop!_OS 20.10 and it works for me. Thanks!