fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.05k stars 1.79k forks source link

Compiling AMD GPU on Linux(Ubuntu) - GPU backend files not pulled. #1661

Open RichGit101 opened 6 years ago

RichGit101 commented 6 years ago

Everything works for CPU, pleased, thanks, but only for CPU and not for GPU! - Strange case, ive missed something.

# Basic information

Requesting help to fix this issue. In brief, GPU mining is not working, CPU mining is working, traced back to compile.No errors reported.

I have setup a new rig, thanks to all the readings from GitHub of XMR stack, felt interesting, built a rig on a weekend (linux built after decades),got an RX 550 4GB nitro plus in intel board. Intel Pentium G4560 3.50GHz Socket 1151 3MB on Sapphire AMD Radeon RX 570 4GB NITRO+

Built rig, installed Ubuntu 18.04 , installed AMD GPU, installed drivers, installed XMR-Stak. All worked fine.

I could pull from GitHub, Cmake and make install. I tried running miner against pools. CPU mining works fine, thank you. Great Job.

Issue is GPU miner. There is no GPU usage, as a result hashing was at 50-60 h/s.

I started to analyse backwards. Of course GPU is powered and connected - no problems. 4.15.0-23-generic #25-Ubuntu SMP - Fully Patched.

CliInfo did mention an error* - This could be an issue. (clCreateContext(NULL, ...) [other] error: no devices in non-default platforms)

1) Checked AMD SDK - OK (please check below in log section) 2) Checked AMD GPU PRO Drivers - OK (please check below in log section) 3) Tried to compile with different options make clean tried Attempt 1) cmake .. Attempt 2) cmake -LA .. -DCUDA_ENABLE=OFF -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so Attempt 3) cmake .. -DCUDA_ENABLE=OFF -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/include/CL

All compile works successfully and binaries execute. Could join pool. But only CPU, not GPU. I went back to Git to check files and directories for XMR stake, found backend cpu and gpu folder files. In all cases, in my make process, there were no Gpu related backend files, no references in logs generated, process did not handle any gpu file, while make works. Only CPU files are referenced in make process. I mean files such as /xmrstak/backend/cpu/crypto/c_blake256.c.o are used for make but AMDGPU files in backend folder are never used when i run make in my rig.

Version: xmr-stak/2.4.5/b3f79de/master/lin/cpu/aeon-cryptonight-monero/0

I got verbose 1 and -LA logs below in my notes and logs section.

Compile issues

Tried three different cmakes, all worked ok. Fine. Only issue, all were for CPU and none for GPU

make clean Attempt 1) cmake ..

Attempt 2) cmake -LA .. -DCUDA_ENABLE=OFF -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so

Attempt 3) cmake .. -DCUDA_ENABLE=OFF -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/include/CL

make install All were successful but only referencing to CPU and not GPU.

run cmake -LA . in the build folder and add the output here

MyMiner@MyHost:~/Monero/MinerXMR/xmr-stak/build$ cmake -LA .. -DCUDA_ENABLE=OFF -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so

-- Configuring done -- Generating done -- Build files have been written to: /home/MyMiner/Monero/MinerXMR/xmr-stak/build -- Cache values CMAKE_AR:FILEPATH=/usr/bin/ar CMAKE_BUILD_TYPE:STRING=Release CMAKE_COLOR_MAKEFILE:BOOL=ON CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 CMAKE_CXX_FLAGS:STRING= CMAKE_CXX_FLAGS_DEBUG:STRING=-g CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 CMAKE_C_FLAGS:STRING= CMAKE_C_FLAGS_DEBUG:STRING=-g CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_EXE_LINKER_FLAGS:STRING= CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF CMAKE_INSTALL_PREFIX:PATH=/home/MyMiner/Monero/MinerXMR/xmr-stak/build CMAKE_LINKER:FILEPATH=/usr/bin/ld CMAKE_LINK_STATIC:BOOL=OFF CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make CMAKE_MODULE_LINKER_FLAGS:STRING= CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_NM:FILEPATH=/usr/bin/nm CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib CMAKE_SHARED_LINKER_FLAGS:STRING= CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_SKIP_INSTALL_RPATH:BOOL=NO CMAKE_SKIP_RPATH:BOOL=NO CMAKE_STATIC_LINKER_FLAGS:STRING= CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_STRIP:FILEPATH=/usr/bin/strip CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE CPU_ENABLE:BOOL=ON CUDA_64_BIT_DEVICE_CODE:BOOL=ON CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE:BOOL=ON CUDA_BUILD_CUBIN:BOOL=OFF CUDA_BUILD_EMULATION:BOOL=OFF CUDA_CUDART_LIBRARY:FILEPATH=CUDA_CUDART_LIBRARY-NOTFOUND CUDA_CUDA_LIBRARY:FILEPATH=CUDA_CUDA_LIBRARY-NOTFOUND CUDA_ENABLE:BOOL=OFF CUDA_GENERATED_OUTPUT_DIR:PATH= CUDA_HOST_COMPILATION_CPP:BOOL=ON CUDA_HOST_COMPILER:FILEPATH=/usr/bin/cc CUDA_NVCC_EXECUTABLE:FILEPATH=CUDA_NVCC_EXECUTABLE-NOTFOUND CUDA_NVCC_FLAGS:STRING= CUDA_NVCC_FLAGS_DEBUG:STRING= CUDA_NVCC_FLAGS_MINSIZEREL:STRING= CUDA_NVCC_FLAGS_RELEASE:STRING= CUDA_NVCC_FLAGS_RELWITHDEBINFO:STRING= CUDA_PROPAGATE_HOST_FLAGS:BOOL=ON CUDA_SDK_ROOT_DIR:PATH=CUDA_SDK_ROOT_DIR-NOTFOUND CUDA_SEPARABLE_COMPILATION:BOOL=OFF CUDA_TOOLKIT_INCLUDE:PATH=CUDA_TOOLKIT_INCLUDE-NOTFOUND CUDA_TOOLKIT_ROOT_DIR:PATH=CUDA_TOOLKIT_ROOT_DIR-NOTFOUND CUDA_VERBOSE_BUILD:BOOL=OFF CUDA_cublas_LIBRARY:FILEPATH=CUDA_cublas_LIBRARY-NOTFOUND CUDA_cublasemu_LIBRARY:FILEPATH=CUDA_cublasemu_LIBRARY-NOTFOUND CUDA_cufft_LIBRARY:FILEPATH=CUDA_cufft_LIBRARY-NOTFOUND CUDA_cufftemu_LIBRARY:FILEPATH=CUDA_cufftemu_LIBRARY-NOTFOUND EXECUTABLE_OUTPUT_PATH:STRING=bin HWLOC:FILEPATH=/usr/lib/x86_64-linux-gnu/libhwloc.so HWLOC_ENABLE:BOOL=ON HWLOC_INCLUDE_DIR:PATH=/usr/include LIBRARY_OUTPUT_PATH:STRING=bin MHTD:FILEPATH=/usr/lib/x86_64-linux-gnu/libmicrohttpd.so MICROHTTPD_ENABLE:BOOL=ON MTHD_INCLUDE_DIR:PATH=/usr/include OPENSSL_CRYPTO_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcrypto.so OPENSSL_INCLUDE_DIR:PATH=/usr/include OPENSSL_SSL_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libssl.so OpenCL_ENABLE:BOOL=OFF OpenCL_LIBRARY:FILEPATH=OpenCL_LIBRARY-NOTFOUND OpenSSL_ENABLE:BOOL=ON PKG_CONFIG_EXECUTABLE:FILEPATH=PKG_CONFIG_EXECUTABLE-NOTFOUND XMR-STAK_COMPILE:STRING=native

Issue with the execution

Version: xmr-stak/2.4.5/b3f79de/master/lin/cpu/aeon-cryptonight-monero/0

AMD OpenCl issue *Error reported

run clinfo and add the output here

$ clinfo Number of platforms 1 Platform Name Clover Platform Vendor Mesa Platform Version OpenCL 1.1 Mesa 18.0.0-rc5 Platform Profile FULL_PROFILE Platform Extensions cl_khr_icd Platform Extensions function suffix MESA

Platform Name Clover Number of devices 0

NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform clCreateContext(NULL, ...) [default] No platform clCreateContext(NULL, ...) [other] clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No platform

Stability issue


My Notes and LOGS

Installed AMD SDK V3.xx as mentioned,

Checked $HOME/AMDAPPSDK-3.0/InstallLog_datetime.log
Result - As expected, Installed.

Let us check our AMDGPU-Pro Driver 17.40

$ dpkg -l amdgpu-pro Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-==================-==================-=========================================================== ii amdgpu-pro 17.40-492261 amd64 Meta package to install amdgpu Pro components.

Result ii - expected to be installed and installed

Clinfo issue -

$ clinfo Number of platforms 1 Platform Name Clover Platform Vendor Mesa Platform Version OpenCL 1.1 Mesa 18.0.0-rc5 Platform Profile FULL_PROFILE Platform Extensions cl_khr_icd Platform Extensions function suffix MESA

Platform Name Clover Number of devices 0

NULL platform behavior clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform clCreateContext(NULL, ...) [default] No platform clCreateContext(NULL, ...) [other] clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No platform clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No platform


Let us look at Make logs and attempts, all were successful

make clean

Attempt 1) cmake .. Attempt 2) cmake -LA .. -DCUDA_ENABLE=OFF -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so Attempt 3) cmake .. -DCUDA_ENABLE=OFF -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/include/CL

Results below Build files have been written to: /home/MyMiner/Monero/MinerXMR/xmr-stak/build

MyMiner@MyHost:~/Monero/MinerXMR/xmr-stak/build$ make install [ 3%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o [ 7%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o [ 11%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o [ 15%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o [ 19%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o [ 23%] Linking C static library bin/libxmr-stak-c.a [ 23%] Built target xmr-stak-c [ 26%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o [ 30%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o [ 34%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o [ 38%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o [ 42%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o [ 46%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o [ 50%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o [ 53%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o [ 57%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o [ 61%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o [ 65%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o [ 69%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o [ 73%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o [ 76%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/uac.cpp.o [ 80%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o [ 84%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o [ 88%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o [ 92%] Linking CXX static library bin/libxmr-stak-backend.a [ 92%] Built target xmr-stak-backend [ 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 Install the project...

MyMiner@MyHost:~/Monero/MinerXMR/xmr-stak/build$ cmake -LA .. -DCUDA_ENABLE=OFF -DOpenCL_INCLUDE_DIR=/opt/AMDAPPSDK-3.0/lib/x86_64/sdk/libOpenCL.so

-- Configuring done -- Generating done -- Build files have been written to: /home/MyMiner/Monero/MinerXMR/xmr-stak/build -- Cache values CMAKE_AR:FILEPATH=/usr/bin/ar CMAKE_BUILD_TYPE:STRING=Release CMAKE_COLOR_MAKEFILE:BOOL=ON CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 CMAKE_CXX_FLAGS:STRING= CMAKE_CXX_FLAGS_DEBUG:STRING=-g CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 CMAKE_C_FLAGS:STRING= CMAKE_C_FLAGS_DEBUG:STRING=-g CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_EXE_LINKER_FLAGS:STRING= CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF CMAKE_INSTALL_PREFIX:PATH=/home/MyMiner/Monero/MinerXMR/xmr-stak/build CMAKE_LINKER:FILEPATH=/usr/bin/ld CMAKE_LINK_STATIC:BOOL=OFF CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make CMAKE_MODULE_LINKER_FLAGS:STRING= CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_NM:FILEPATH=/usr/bin/nm CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib CMAKE_SHARED_LINKER_FLAGS:STRING= CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_SKIP_INSTALL_RPATH:BOOL=NO CMAKE_SKIP_RPATH:BOOL=NO CMAKE_STATIC_LINKER_FLAGS:STRING= CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_STRIP:FILEPATH=/usr/bin/strip CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE CPU_ENABLE:BOOL=ON CUDA_64_BIT_DEVICE_CODE:BOOL=ON CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE:BOOL=ON CUDA_BUILD_CUBIN:BOOL=OFF CUDA_BUILD_EMULATION:BOOL=OFF CUDA_CUDART_LIBRARY:FILEPATH=CUDA_CUDART_LIBRARY-NOTFOUND CUDA_CUDA_LIBRARY:FILEPATH=CUDA_CUDA_LIBRARY-NOTFOUND CUDA_ENABLE:BOOL=OFF CUDA_GENERATED_OUTPUT_DIR:PATH= CUDA_HOST_COMPILATION_CPP:BOOL=ON CUDA_HOST_COMPILER:FILEPATH=/usr/bin/cc CUDA_NVCC_EXECUTABLE:FILEPATH=CUDA_NVCC_EXECUTABLE-NOTFOUND CUDA_NVCC_FLAGS:STRING= CUDA_NVCC_FLAGS_DEBUG:STRING= CUDA_NVCC_FLAGS_MINSIZEREL:STRING= CUDA_NVCC_FLAGS_RELEASE:STRING= CUDA_NVCC_FLAGS_RELWITHDEBINFO:STRING= CUDA_PROPAGATE_HOST_FLAGS:BOOL=ON CUDA_SDK_ROOT_DIR:PATH=CUDA_SDK_ROOT_DIR-NOTFOUND CUDA_SEPARABLE_COMPILATION:BOOL=OFF CUDA_TOOLKIT_INCLUDE:PATH=CUDA_TOOLKIT_INCLUDE-NOTFOUND CUDA_TOOLKIT_ROOT_DIR:PATH=CUDA_TOOLKIT_ROOT_DIR-NOTFOUND CUDA_VERBOSE_BUILD:BOOL=OFF CUDA_cublas_LIBRARY:FILEPATH=CUDA_cublas_LIBRARY-NOTFOUND CUDA_cublasemu_LIBRARY:FILEPATH=CUDA_cublasemu_LIBRARY-NOTFOUND CUDA_cufft_LIBRARY:FILEPATH=CUDA_cufft_LIBRARY-NOTFOUND CUDA_cufftemu_LIBRARY:FILEPATH=CUDA_cufftemu_LIBRARY-NOTFOUND EXECUTABLE_OUTPUT_PATH:STRING=bin HWLOC:FILEPATH=/usr/lib/x86_64-linux-gnu/libhwloc.so HWLOC_ENABLE:BOOL=ON HWLOC_INCLUDE_DIR:PATH=/usr/include LIBRARY_OUTPUT_PATH:STRING=bin MHTD:FILEPATH=/usr/lib/x86_64-linux-gnu/libmicrohttpd.so MICROHTTPD_ENABLE:BOOL=ON MTHD_INCLUDE_DIR:PATH=/usr/include OPENSSL_CRYPTO_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcrypto.so OPENSSL_INCLUDE_DIR:PATH=/usr/include OPENSSL_SSL_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libssl.so OpenCL_ENABLE:BOOL=OFF OpenCL_LIBRARY:FILEPATH=OpenCL_LIBRARY-NOTFOUND OpenSSL_ENABLE:BOOL=ON PKG_CONFIG_EXECUTABLE:FILEPATH=PKG_CONFIG_EXECUTABLE-NOTFOUND XMR-STAK_COMPILE:STRING=native

======================================================================================================

MyMiner@MyHost:~/Monero/MinerXMR/xmr-stak/build$ make VERBOSE=1 /usr/bin/cmake -H/home/MyMiner/Monero/MinerXMR/xmr-stak -B/home/MyMiner/Monero/MinerXMR/xmr-stak/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/MyMiner/Monero/MinerXMR/xmr-stak/build/CMakeFiles /home/MyMiner/Monero/MinerXMR/xmr-stak/build/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' make -f CMakeFiles/xmr-stak-c.dir/build.make CMakeFiles/xmr-stak-c.dir/depend make[2]: Entering directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' cd /home/MyMiner/Monero/MinerXMR/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/MyMiner/Monero/MinerXMR/xmr-stak /home/MyMiner/Monero/MinerXMR/xmr-stak /home/MyMiner/Monero/MinerXMR/xmr-stak/build /home/MyMiner/Monero/MinerXMR/xmr-stak/build /home/MyMiner/Monero/MinerXMR/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' make -f CMakeFiles/xmr-stak-c.dir/build.make CMakeFiles/xmr-stak-c.dir/build make[2]: Entering directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' [ 3%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o /usr/bin/cc -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=gnu99 -o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/cpu/crypto/c_blake256.c [ 7%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o /usr/bin/cc -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=gnu99 -o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/cpu/crypto/c_groestl.c [ 11%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o /usr/bin/cc -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=gnu99 -o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/cpu/crypto/c_jh.c [ 15%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o /usr/bin/cc -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=gnu99 -o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/cpu/crypto/c_keccak.c [ 19%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o /usr/bin/cc -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=gnu99 -o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/cpu/crypto/c_skein.c [ 23%] Linking C static library bin/libxmr-stak-c.a /usr/bin/cmake -P CMakeFiles/xmr-stak-c.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/xmr-stak-c.dir/link.txt --verbose=1 /usr/bin/ar qc bin/libxmr-stak-c.a CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o /usr/bin/ranlib bin/libxmr-stak-c.a make[2]: Leaving directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' [ 23%] Built target xmr-stak-c make -f CMakeFiles/xmr-stak-backend.dir/build.make CMakeFiles/xmr-stak-backend.dir/depend make[2]: Entering directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' cd /home/MyMiner/Monero/MinerXMR/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/MyMiner/Monero/MinerXMR/xmr-stak /home/MyMiner/Monero/MinerXMR/xmr-stak /home/MyMiner/Monero/MinerXMR/xmr-stak/build /home/MyMiner/Monero/MinerXMR/xmr-stak/build /home/MyMiner/Monero/MinerXMR/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' make -f CMakeFiles/xmr-stak-backend.dir/build.make CMakeFiles/xmr-stak-backend.dir/build make[2]: Entering directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' [ 26%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/jconf.cpp [ 30%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/version.cpp [ 34%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/cpu/hwlocMemory.cpp [ 38%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/cpu/jconf.cpp [ 42%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/cpu/minethd.cpp [ 46%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/backendConnector.cpp [ 50%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/globalStates.cpp [ 53%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_common.cpp [ 57%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/http/httpd.cpp [ 61%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/http/webdesign.cpp [ 65%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/misc/console.cpp [ 69%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/misc/executor.cpp [ 73%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/misc/telemetry.cpp [ 76%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/uac.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/uac.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/misc/uac.cpp [ 80%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/misc/utility.cpp [ 84%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/net/jpsock.cpp [ 88%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/net/socket.cpp [ 92%] Linking CXX static library bin/libxmr-stak-backend.a /usr/bin/cmake -P CMakeFiles/xmr-stak-backend.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/xmr-stak-backend.dir/link.txt --verbose=1 /usr/bin/ar qc bin/libxmr-stak-backend.a CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/uac.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o /usr/bin/ranlib bin/libxmr-stak-backend.a make[2]: Leaving directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' [ 92%] Built target xmr-stak-backend make -f CMakeFiles/xmr-stak.dir/build.make CMakeFiles/xmr-stak.dir/depend make[2]: Entering directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' cd /home/MyMiner/Monero/MinerXMR/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/MyMiner/Monero/MinerXMR/xmr-stak /home/MyMiner/Monero/MinerXMR/xmr-stak /home/MyMiner/Monero/MinerXMR/xmr-stak/build /home/MyMiner/Monero/MinerXMR/xmr-stak/build /home/MyMiner/Monero/MinerXMR/xmr-stak/build/CMakeFiles/xmr-stak.dir/DependInfo.cmake --color= make[2]: Leaving directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' make -f CMakeFiles/xmr-stak.dir/build.make CMakeFiles/xmr-stak.dir/build make[2]: Entering directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' [ 96%] Building CXX object CMakeFiles/xmr-stak.dir/xmrstak/cli/cli-miner.cpp.o /usr/bin/c++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_OPENCL -DGIT_BRANCH=master -DGIT_COMMIT_HASH=b3f79de -I/home/MyMiner/Monero/MinerXMR/xmr-stak/. -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIE -std=c++11 -o CMakeFiles/xmr-stak.dir/xmrstak/cli/cli-miner.cpp.o -c /home/MyMiner/Monero/MinerXMR/xmr-stak/xmrstak/cli/cli-miner.cpp [100%] Linking CXX executable bin/xmr-stak /usr/bin/cmake -E cmake_link_script CMakeFiles/xmr-stak.dir/link.txt --verbose=1 /usr/bin/c++ -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG CMakeFiles/xmr-stak.dir/xmrstak/cli/cli-miner.cpp.o -o bin/xmr-stak -lpthread /usr/lib/x86_64-linux-gnu/libmicrohttpd.so /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/lib/x86_64-linux-gnu/libhwloc.so bin/libxmr-stak-c.a bin/libxmr-stak-backend.a bin/libxmr-stak-c.a -lpthread /usr/lib/x86_64-linux-gnu/libmicrohttpd.so /usr/lib/x86_64-linux-gnu/libssl.so /usr/lib/x86_64-linux-gnu/libcrypto.so /usr/lib/x86_64-linux-gnu/libhwloc.so -ldl make[2]: Leaving directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' [100%] Built target xmr-stak make[1]: Leaving directory '/home/MyMiner/Monero/MinerXMR/xmr-stak/build' /usr/bin/cmake -E cmake_progress_start /home/MyMiner/Monero/MinerXMR/xmr-stak/build/CMakeFiles 0

Spudz76 commented 6 years ago

Third issue now where Clover exists already in Ubuntu 18 (Desktop?) and blocks amdgpu-pro I don't know if Ubuntu 18 Server does this as well, I've only ever used Ubuntu 16 Server which does not have any Clover and thus just works as documented.

apt purge mesa-opencl-icd and then apt install --reinstall opencl-amdgpu-pro-icd clinfo-amdgpu-pro

Mesa/Clover OpenCL is useless for mining (still). It may get pulled in if you didn't install amdgpu-pro previous to installing the opencl-dev stuff, I think I always did OS->Drivers->devjunk in that order. If there is no OpenCL when you install dev, it will engage the default OpenCL, which is Mesa.

Spudz76 commented 6 years ago

I still swear it used to install both ICD's though and it was a easy platform change to get the right one (and it autodetected by skipping Mesa). It still skips Mesa just fine but there is no simultaneous AMD-APP OpenCL which is weird/new/only on Ubuntu 18.

This issue proves it isn't just the 18.x driver either, the 17.40 classic one still does wrong.

Spudz76 commented 6 years ago

Futhermore, for compile check env | grep AMD for the AMDAPPSDKROOT=/opt/AMDAPPSDK-3.0 which should be there or else cmake won't find it properly. Then you are specifying the INCLUDE_DIR which is not correct, that is for the cl.h not the library. Check grep -i OpenCL CMakeCache.txt in your build dir and it should be:

OpenCL_ENABLE:BOOL=ON
OpenCL_INCLUDE_DIR:PATH=/opt/AMDAPPSDK-3.0/include
OpenCL_LIBRARY:FILEPATH=/opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so
xmrstak_opencl_backend_LIB_DEPENDS:STATIC=general;/opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so;general;xmr-stak-backend;
//Details about finding OpenCL
FIND_PACKAGE_MESSAGE_DETAILS_OpenCL:INTERNAL=[/opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so][/opt/AMDAPPSDK-3.0/include][v2.0()]
OPENCL_VERSION_2_0:INTERNAL=1
//ADVANCED property for variable: OpenCL_INCLUDE_DIR
OpenCL_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OpenCL_LIBRARY
OpenCL_LIBRARY-ADVANCED:INTERNAL=1

The SDK is only for the header files, we link to the active driver library as that works best. So you were also specifying the wrong library anyway.

slax0r commented 6 years ago

you need to remove AMDAPPSDK-3.0. Its ancient. The newer amd drivers for ubuntu include it already. then rebuild and you should have no problems.

Spudz76 commented 6 years ago

Weird, I still use it. But link the shlib from the driver. I didn't think the drivers came with the header files. Unless you install them additionally (not installed by the script)?

slax0r commented 6 years ago

if you aren't getting the OpenCL headers then you aren't using the latest. Try here and see if you don't have a better experience. https://support.amd.com/en-us/kb-articles/Pages/Radeon-Software-for-Linux-Release-Notes.aspx

The latest is 18.20.

Spudz76 commented 6 years ago

Generally using 17.50 but having upgraded in-place to 18.10 therefore I still have the SDK and it works fine / thought it was still necessary.

Just installed 18.20 and removed SDK and it still builds so you aren't lying. haha, learn something new every day. Probably should figure out which version started including the headers and update the compilation docs.

EDIT: DOESN'T WORK there are no AMD now and clinfo shows 0 platforms / DOESN'T WORK

slax0r commented 6 years ago

What GPU do you have?

Spudz76 commented 6 years ago

Got it to work now, had to strip everything amd related and start over, and install opencl-amdgpu-pro-dev in addition to what comes with amdgpu-pro itself (I don't use the installer script, I have the driver tar unpacked on my repo/mirror server and use a normal apt-source).

Tahiti. Also has working WattMan support it seems (find /sys/devices/pci*/*/*/pp_power_profile_mode shows which cards support such, then echo 4 > into them to set 'compute' mode.)

slax0r commented 6 years ago

Sweet. I was installing and reinstalling trying to figure out why you were having different results. Glad you figured it out though. Now I have to go tinker with the WattMan settings. ;0)

EDIT: OK mad props. the WattMan thing you mentioned is the coolest thing ever. Thanks for that.

Thuetar commented 6 years ago

I'm also struggling with compiling

I'm sure your slammed with lots of other tasks. I really appreciate all the time it takes to maintain something like this. If you have time and share the steps ... I'd be very grateful.

It's been a while since I mined XMR.

Spudz76 commented 6 years ago

@Thuetar Install opencl-amdgpu-pro-dev and see if that helps

Thuetar commented 6 years ago

@Spudz76 I installed that dep from the driver, and now onto the next dep. I will pick this up later tonight, I really appreciate the suggestion.

and then ran make with an extra hint for the OpenCL library from the install-- cmake -LA .. -DCUDA_ENABLE=OFF -DOpenCL_LIBRARY=/opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so

OPENSSL_CRYPTO_LIBRARY:FILEPATH=OPENSSL_CRYPTO_LIBRARY-NOTFOUND OPENSSL_INCLUDE_DIR:PATH=OPENSSL_INCLUDE_DIR-NOTFOUND OPENSSL_SSL_LIBRARY:FILEPATH=OPENSSL_SSL_LIBRARY-NOTFOUND OpenCL_ENABLE:BOOL=ON OpenCL_INCLUDE_DIR:PATH=/opt/amdgpu-pro/lib/x86_64-linux-gnu OpenCL_LIBRARY:FILEPATH=/opt/amdgpu-pro/lib/x86_64-linux-gnu/libOpenCL.so OpenSSL_ENABLE:BOOL=ON PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/pkg-config XMR-STAK_COMPILE:STRING=native

I'll pick this up again tomorrow 👍 Edit: It compiled just fine once I had the dep bundle in the right location. I have an enhancement idea as well.

RichGit101 commented 6 years ago

Thank you. Will get back with results soon @Spudz76 @Thuetar @slax0r @rsanheim @scottmckenzie

BigslimVdub commented 6 years ago

screen shot 2018-06-27 at 8 46 44 pm

failed here too 18.04. Builds CPU just fine

edit: using SDK 3.0 though.

Spudz76 commented 6 years ago

Only the general driver and what it includes, plus additionally the opencl-amdgpu-pro-dev and ocl-icd-opencl-dev packages are required, do not install the SDK at all (uninstall if already installed)

It will detect and build with those two things added on top of the regular driver.

psychocrypt commented 6 years ago

The symlink behind your libOpenCL.so is not pointing to a valid library therefore the build process fails.

Tony Butler notifications@github.com schrieb am Do., 28. Juni 2018, 13:47:

Only the general driver and what it includes, plus additionally the opencl-amdgpu-pro-dev and ocl-icd-opencl-dev packages are required, do not install the SDK at all (uninstall if already installed)

It will detect and build with those two things added on top of the regular driver.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak/issues/1661#issuecomment-401007929, or mute the thread https://github.com/notifications/unsubscribe-auth/AYsxtjM0PWRVczs-EZJYezJOLrSA1whOks5uBMJpgaJpZM4UpUch .

BigslimVdub commented 6 years ago

Hmm I used the suggested Dropbox link file. Should I download the latest drivers from amd website?

Spudz76 commented 6 years ago

Yes the 18.x (latest) driver comes with the development packages which must be why the SDK fell off their web site. Some people enjoy the 17.x drivers still, thus the dropbox copy of the SDK because you needed it back then for the headers (libs still came with driver).

Linux no longer needs the SDK with amdgpu-pro 18.x and newer you just do the driver install and what I say above (two extra pkgs), and it works.

Also I don't think you had the SDK installed, just unpacked, so it is not surprising it didn't autodetect (would be in /opt/AMDAPPSDK-3.0/ and the installer makes env.d entries to put things in path) BUT you don't need it at all so that doesn't matter.