GithubHelp home page GithubHelp logo

Build Error on Linux about xmrig-cuda HOT 4 CLOSED

xmrig avatar xmrig commented on June 11, 2024
Build Error on Linux

from xmrig-cuda.

Comments (4)

Emperornero avatar Emperornero commented on June 11, 2024

Try committing more cores with the -jX flag when you do make.

I didn't do this and was stuck on 13% and 25% for a while. It eventually compiled. Making with -j8 made it compiled instantly on my 2700x.

Hhowever, it doesn't work with "Failed to load Cuda Plugin". Still working on figuring that out.

from xmrig-cuda.

Spudz76 avatar Spudz76 commented on June 11, 2024

Those warnings are normal. NVCC takes forever if you don't have a lot of memory also and will show nothing ("hang") for up to half an hour in some cases. Linux will swap junk in and out of virtual memory which is super super slow.

Adding more compile threads only works if you've already got way more than enough memory, otherwise it will make it worse.

from xmrig-cuda.

BlankerL avatar BlankerL commented on June 11, 2024

Those warnings are normal. NVCC takes forever if you don't have a lot of memory also and will show nothing ("hang") for up to half an hour in some cases. Linux will swap junk in and out of virtual memory which is super super slow.

Adding more compile threads only works if you've already got way more than enough memory, otherwise it will make it worse.

I am not sure how much memory should I have? Currently, the machine have 4 cores (8 threads) and 16 GB memory.

from xmrig-cuda.

Spudz76 avatar Spudz76 commented on June 11, 2024

One thing that helps with compile time is to only enable the CUDA architectures you actually need via the cmake CUDA_ARCH variable. Otherwise it will build for all known GPUs and take forever (I have never compiled without specifying, it could take a while).

The other helpful options are CMAKE_VERBOSE_MAKEFILE and CUDA_VERBOSE_BUILD which should be set ON and then you can actually see what's going on during the otherwise silent long sections. I have never built without these on either, it probably makes the waiting easier.

from xmrig-cuda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.