Coder Social home page Coder Social logo

Comments (4)

KAdamek avatar KAdamek commented on June 26, 2024

I think that we want a different approach to setting of cuda, which is probably easily dealt with cmake. We want to detect which cuda version is installed and change the make file accordingly so the -gencode arch=XX, code=XX but also other things reflects what is installed in the system and what GPU is present. I'm not good with bash so correct me if I'm wrong, but that is not what the setup seems to be doing. Jan could help you more regarding what CUDA is doing when it is installed, I do not know much about that.

from astro-accelerate.

ccarels avatar ccarels commented on June 26, 2024

@KAdamek Thanks for the feedback. Correct, the script does not "auto detect" which CUDA version is installed.

As far as I'm aware, a CUDA library user needs to set $PATH and $LD_LIBRARY_PATH first, before being able to do CUDA function calls in a terminal as it looks like you're suggesting. (See https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#environment-setup)

My plan is to start moving the build system to CMake, this could subsume a portion of this script once that is done.

from astro-accelerate.

jan2nov avatar jan2nov commented on June 26, 2024

from astro-accelerate.

ccarels avatar ccarels commented on June 26, 2024

I think the point here is that the makefile does not work without PATH and LD_LIBRARY_PATH being set. Similarly, nvcc --version also does not work unless the user sets PATH and LD_LIBRARY_PATH. The setup.sh script is there to make the process more user-friendly.

By the sounds of it, we could use /usr/local/cuda/ in setup.sh instead of /usr/local/cuda-{version}. I have edited cc_53_setupscript to reflect this.

from astro-accelerate.

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.