Closed SveguS80 closed 6 years ago
Saw another post with simialr issue where the environment variables was not setup correct. So i setup the AMD-APP-SDK variables in the user profile.
$ echo $AMDAPPSDKROOT /opt/AMDAPPSDK-3.0 $ echo $LD_LIBRARY_PATH :/opt/AMDAPPSDK-3.0/lib/x86_64:/opt/AMDAPPSDK-3.0/lib/x86
Recomplied XMR, but still the same:
Build Output make install Scanning dependencies of target xmr-stak-c [ 3%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o [ 6%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o [ 10%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o [ 13%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o [ 16%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o [ 20%] Linking C static library bin/libxmr-stak-c.a [ 20%] Built target xmr-stak-c Scanning dependencies of target xmr-stak-backend [ 23%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o [ 26%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o [ 30%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o [ 33%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o [ 36%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o [ 40%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o [ 43%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o [ 46%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o [ 50%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o [ 53%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o [ 56%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o [ 60%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o [ 63%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o [ 66%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/uac.cpp.o [ 70%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o [ 73%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o [ 76%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o [ 80%] Linking CXX static library bin/libxmr-stak-backend.a [ 80%] Built target xmr-stak-backend Scanning dependencies of target xmrstak_opencl_backend [ 83%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/amd_gpu/gpu.cpp.o [ 86%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/jconf.cpp.o [ 90%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/minethd.cpp.o [ 93%] Linking CXX shared library bin/libxmrstak_opencl_backend.so [ 93%] Built target xmrstak_opencl_backend Scanning dependencies of target xmr-stak [ 96%] Building CXX object CMakeFiles/xmr-stak.dir/xmrstak/cli/cli-miner.cpp.o [100%] Linking CXX executable bin/xmr-stak [100%] Built target xmr-stak
Startup Log: [2018-04-17 14:23:18] : Mining coin: monero7 [2018-04-17 14:23:18] : WARNING: UNKNOWN_ERROR when calling clGetPlatformIDs for number of platforms. [2018-04-17 14:23:18] : WARNING: No OpenCL platform found. [2018-04-17 14:23:18] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver. [2018-04-17 14:23:18] : WARNING: backend AMD disabled. [2018-04-17 14:23:18] : Autoconf L3 size detected at 2048 KB. [2018-04-17 14:23:18] : Autoconf core count detected as 2 on Linux. [2018-04-17 14:23:18] : CPU configuration stored in file 'cpu.txt' [2018-04-17 14:23:18] : Starting 1x thread, affinity: 0. [2018-04-17 14:23:18] : MEMORY ALLOC FAILED: mmap failed [2018-04-17 14:23:18] : Fast-connecting to xmrpool.eu:5555 pool ... [2018-04-17 14:23:18] : Pool xmrpool.eu:5555 connected. Logging in... [2018-04-17 14:23:18] : Difficulty changed. Now: 25000. [2018-04-17 14:23:18] : Pool logged in.
I was looking at the wrong error message! The above post cleared it up. Permissions. If I run xmr-stak as root all works fine.
Background and Question
XMR-STAK does not see OpenCL, i cannot figure out why since all the checks are passing i can come up with.
Basic information
Motherboard ASUS B250 mining expert
Ubuntu 16.04.04
CPU Celeron G3930
4GB RAM
AMDGPUPro driver 17.30
AMD-APP-SDKInstaller-v3.0.130.136
Card 0 AMD RX 570 4GB
./xmr-stak --version-long Version: xmr-stak/2.4.2/e10e8e6/master/lin/amd-cpu/aeon-cryptonight-monero/20
Compile information
Since the compilation worked ok passing the location of OpenCL for AMD-SDK-APP i thought it would be ok.
cmake -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/include -DOpenCL_LIBRARY=/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so -DCUDA_ENABLE=OFF -DHWLOC_ENABLE=OFF . -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for CL_VERSION_2_0 -- Looking for CL_VERSION_2_0 - found -- Found OpenCL: /opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so (found version "2.0") -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2g") -- Configuring done -- Generating done -- Build files have been written to: /home/svegus/xmr-stak svegus@moneroUB:~/xmr-stak$ make install Scanning dependencies of target xmr-stak-c [ 3%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o [ 6%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o [ 10%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o [ 13%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o [ 16%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o [ 20%] Linking C static library bin/libxmr-stak-c.a [ 20%] Built target xmr-stak-c Scanning dependencies of target xmr-stak-backend [ 23%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o [ 26%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o [ 30%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o [ 33%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o [ 36%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o [ 40%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o [ 43%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o [ 46%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o [ 50%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o [ 53%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o [ 56%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o [ 60%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o [ 63%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o [ 66%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/uac.cpp.o [ 70%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o [ 73%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o [ 76%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o [ 80%] Linking CXX static library bin/libxmr-stak-backend.a [ 80%] Built target xmr-stak-backend Scanning dependencies of target xmrstak_opencl_backend [ 83%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/amd_gpu/gpu.cpp.o [ 86%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/jconf.cpp.o [ 90%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/minethd.cpp.o [ 93%] Linking CXX shared library bin/libxmrstak_opencl_backend.so [ 93%] Built target xmrstak_opencl_backend Scanning dependencies of target xmr-stak [ 96%] Building CXX object CMakeFiles/xmr-stak.dir/xmrstak/cli/cli-miner.cpp.o [100%] Linking CXX executable bin/xmr-stak [100%] Built target xmr-stak
AMD OpenCl infornation
[2018-04-17 08:26:53] : Mining coin: monero7 [2018-04-17 08:26:53] : WARNING: UNKNOWN_ERROR when calling clGetPlatformIDs for number of platforms. [2018-04-17 08:26:53] : WARNING: No OpenCL platform found. [2018-04-17 08:26:53] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver. [2018-04-17 08:26:53] : WARNING: backend AMD disabled. [2018-04-17 08:26:53] : Starting 1x thread, affinity: 0. [2018-04-17 08:26:53] : Fast-connecting to xmrpool.eu:5555 pool ... [2018-04-17 08:26:53] : MEMORY ALLOC FAILED: mmap failed [2018-04-17 08:26:53] : Pool xmrpool.eu:5555 connected. Logging in... [2018-04-17 08:26:54] : Difficulty changed. Now: 25000. [2018-04-17 08:26:54] : Pool logged in. [2018-04-17 08:27:28] : New block detected. [2018-04-17 08:27:32] : Difficulty changed. Now: 10000. [2018-04-17 08:27:32] : New block detected.