fireice-uk / xmr-stak

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

xmrstak_cuda_backend_cuda9_2.so : cannot open shared object file (have xmrstak_cuda_backend.so) #2135

Open jamesyoungdigital opened 5 years ago

jamesyoungdigital commented 5 years ago

Please provide as much as possible information to reproduce the issue.

Basic information

Xeon x 2

Issue with the execution

Yes. Version: xmr-stak/2.7.1/7d6cd31/master/lin/nvidia-cpu/20

Stability issue

No.

I installed the CUDA 9.2 toolkit, but my drivers are not supported. Output from nvidia-smi:

Wed Dec 12 08:22:02 2018
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 396.37 Driver Version: 396.37 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 Tesla K80 Off | 00000000:00:04.0 Off | 0 | | N/A 35C P0 64W / 149W | 0MiB / 11441MiB | 0% Default | +-------------------------------+----------------------+----------------------+ | 1 Tesla K80 Off | 00000000:00:05.0 Off | 0 | | N/A 33C P0 71W / 149W | 0MiB / 11441MiB | 100% Default | +-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | No running processes found | +-----------------------------------------------------------------------------+

When I try to run xmr-stak:

[2018-12-12 08:18:50] : Mining coin: cryptonight_v8 [2018-12-12 08:18:50] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda10_0' WARNING: NVIDIA cannot load backend library: libxmrstak_cuda_backend_cuda10_0.so: cannot open shared object file: No such file or directory [2018-12-12 08:18:50] : NVIDIA: try to load library 'xmrstak_cuda_backend_cuda9_2' WARNING: NVIDIA cannot load backend library: libxmrstak_cuda_backend_cuda9_2.so: cannot open shared object file: No such file or directory [2018-12-12 08:18:50] : NVIDIA: try to load library 'xmrstak_cuda_backend' NVIDIA: found 2 potential device's [2018-12-12 08:18:53] : Starting NVIDIA GPU thread 0, no affinity. CUDA [9.2/9.2] GPU#0, device architecture 37: "Tesla K80"... device init succeeded [2018-12-12 08:18:53] : Starting NVIDIA GPU thread 1, no affinity. CUDA [9.2/9.2] GPU#1, device architecture 37: "Tesla K80"... device init succeeded [2018-12-12 08:18:53] : NVIDIA: use library 'xmrstak_cuda_backend' [2018-12-12 08:18:53] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2018-12-12 08:18:53] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2018-12-12 08:18:53] : CPU configuration stored in file 'cpu.txt' [2018-12-12 08:18:53] : Starting 2x thread, affinity: 0. [2018-12-12 08:18:53] : hwloc: memory pinned [2018-12-12 08:18:53] : Starting 2x thread, affinity: 1. [2018-12-12 08:18:53] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2018-12-12 08:18:53] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2018-12-12 08:18:53] : Switch to assembler version for 'intel_avx' cpu's [2018-12-12 08:18:53] : hwloc: memory pinned [2018-12-12 08:18:53] : Fast-connecting to pool.supportxmr.com:7777 pool ... [2018-12-12 08:18:53] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2018-12-12 08:18:53] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2018-12-12 08:18:53] : Switch to assembler version for 'intel_avx' cpu's [2018-12-12 08:18:53] : Pool pool.supportxmr.com:7777 connected. Logging in..

psychocrypt commented 5 years ago

This is fine. If you compile it by your own or ise the linux precompiled binaries the full code is located in the file xmrstak_cuda_backend.so. The method to have different cuda backend versions is more a feature we used in windows.