Comments (13)
I have one compiled on Debian testing cuda 11. If you want you can try it out.
libxmrig-cuda.so.zip
from xmrig-cuda.
Sorry for the late reply.
On Debian testing/bullseye for GTX1050 or higher (NO legacy drivers):
All official debian testing/bullseye repo's with main contrib non-free enabled.
- install/check if git build-essential cmake libuv1-dev libssl-dev and libhwloc-dev are installed.
- install/check if proprietary non-free nvidia-driver libcuda1 and nvidia-smi are installed (it should install all the relevant drivers needed).
- install nvidia-cuda-toolkit (this should install the cuda driverw needed)
- reboot if neccessary
- open a teminal.
- mkdir github
- cd github
- git clone https://github.com/xmrig/xmrig-cuda.git
- mkdir xmrig-cuda/build && cd xmrig-cuda/build
- cmake .. -DCUDA_TOOLKIT_ROOT_DIR=/usr/lib/nvidia-cuda-toolkit
- make -j$(nproc)
- Wait till everything is finished as it may take a while depending on your system.
- Ignore warnings
- If build is succesfull you have a libxmrig-cuda.so in the build directory.
- cp/move libxmrig-cuda.so to the directory where xmrig is installed/untarred
I am in the proces making a script for myself which checks/installs the required packages and compiles the lot, but I want to make sure it's working correctly and compiles libxmrig-cuda.so reproducible.
Hope the above helps.
from xmrig-cuda.
@DeeDeeRanged thanks for the kind offer, but I was making the point that these should be published with each release automatically for all to benefit (auto builders can do that).
from xmrig-cuda.
I have one compiled on Debian testing cuda 11. If you want you can try it out.
libxmrig-cuda.so.zip
Can you please share those commands step by step?
from xmrig-cuda.
@DeeDeeRanged thanks for the kind offer, but I was making the point that these should be published with each release automatically for all to benefit (auto builders can do that).
You would need a variety of nvidia cards as cuda ranges from cuda 8 to cuda 11. Haven't seen any cuda 12 yet on linux.
from xmrig-cuda.
It's a bit more involved since for the library to work there would have to be versions built for every Ubuntu and every CUDA toolkit which means like 11 * (14, 16, 18, 20, 21) = 55 different builds. As opposed to one build per CUDA toolkit for Windows because Windows DLLs load on whatever Windows version just fine (no glibc or other basic kernels changing).
Better scripts to walk-through the building yourself are probably the real answer.
from xmrig-cuda.
I figured it was something like that. It's one of the reasons I am trying to make a script that might work on different versions of Debian/Ubuntu. With the walkthrough I've tried to be as clear/sensible as I could be as I don't know the level of skills of ppl.
from xmrig-cuda.
This command cmake .. -DCUDA_LIB=/usr/lib/x86_64-linux-gnu/stubs/libcuda.so -DCUDA_TOOLKIT_ROOT_DIR=/usr/lib/nvidia-cuda-toolkit
gives this error:
Could NOT find CUDA (missing: CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS
CUDA_CUDART_LIBRARY) (Required is at least version "8.0")
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindCUDA.cmake:1104 (find_package_handle_standard_args)
cmake/CUDA-Version.cmake:14 (find_package)
CMakeLists.txt:3 (include)
from xmrig-cuda.
Which distro and videocard? Are "git build-essential cmake libuv1-dev libssl-dev libhwloc-dev nvidia-driver libcuda1 and nvidia-smi" installed, check if /usr/lib/x86_64-linux-gnu/stubs/libcuda.so and /usr/lib/nvidia-cuda-toolkit are available.
from xmrig-cuda.
CUDA Toolkit is usually in /usr/local/cuda
or /usr/local/cuda-11.4
(or whichever version) if the symlink wasn't generated.
Do not supply anything but the CUDA_TOOLKIT_ROOT_DIR
, *_LIB
are intended to be set internally not overridden (if the rootdir doesn't work by itself, the toolkit is broken/incomplete).
from xmrig-cuda.
CUDA Toolkit is usually in
/usr/local/cuda
or/usr/local/cuda-11.4
(or whichever version) if the symlink wasn't generated.Do not supply anything but the
CUDA_TOOLKIT_ROOT_DIR
,*_LIB
are intended to be set internally not overridden (if the rootdir doesn't work by itself, the toolkit is broken/incomplete).
You are correct abt. only using -DCUDA_TOOLKIT_ROOT_DIR=/usr/lib/nvidia-cuda-toolkit
just did a build and it works on both my Debian systems.
The instructions on https://xmrig.com/docs/miner/build/ubuntu are for Ubuntu with the cuda downloaded/installed from Nvidia directly and derived the build instructions from there to use it with Debian official repositories.
Thanks for the pointer.
from xmrig-cuda.
To mess things up more, I use the Nvidia packages but have put them on my own repo mirror so it picks them up off the Internet. Similar to if Nvidia themselves bothered to host a live repo...
But the result is functionally the same as using the Nvidia installer minus the "local repo" hack it uses.
And thus I don't really know where the Debian upstream cuda goes, it's old-ish so I've always ignored it. Maybe the search locations need updated so there is less need to specify the ROOT
.
from xmrig-cuda.
You'll find video drivers and so on depending if your running stable + backports or testing in line with ubuntu and are quite uptodate.
Just checked ubuntu is putting the nvidia-toolkit also in the same place as debian. So for debian and ubuntu using the drivers and toolkit from the debian/ubuntu repos works fine. No need to use the ones from nvidia direct.
from xmrig-cuda.
Related Issues (20)
- Plugin Support for CUDA version 11.6
- xmrig does not create GPU config for Argon2/Chukwa HOT 5
- make failed "make -j$(nproc)" HOT 2
- Sparkd5
- Xmrig CUDA disable no device issue HOT 1
- strange build error on Ubuntu 22.04 HOT 1
- xmrig-cuda build error HOT 6
- Linking error in Debian 11 - Cuda 11.8 HOT 1
- On windows I get: "no kernel image is available on device" HOT 1
- In linux, I use the cuda plugin and it tells me that the memory overflow HOT 1
- Cuda Disabled (No Devices)
- Another case of "CUDA disabled (no devices)"
- cn/gpu algorithm not supported
- CMake error with CUDA 12.2
- And surprise, COMPUTE ERROR HOT 1
- Error when using NVIDIA GPU for Monero mining HOT 1
- thread #0 failed with error <reg>:53 "invalid argument" Linux
- Why don't you provide binaries for ubantu?I cant build it from command its error.
- CUDA_NVRTC_LIB not found
- xmrig-cuda linux cmake not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmrig-cuda.