Code Monkey home page Code Monkey logo

Comments (3)

sharvil avatar sharvil commented on May 30, 2024

My best guess is that your installed PyTorch isn't using the same CUDA toolkit as Haste. When a prebuilt PyTorch is installed (e.g. via pip or conda), it uses its own copy of CUDA Toolkit instead of what's installed on your system. Haste, on the other hand, uses the CUDA toolkit found in /usr/local/cuda. I've seen segfaults with Haste + PyTorch when I had CUDA version mismatches.

Conda doesn't install the CUDA toolkit to /usr/local/cuda so you'll need to edit Haste's Makefile to point to the right place.

from haste.

Harimus avatar Harimus commented on May 30, 2024

Hi Thanks for the answer!
As for the Segfault message, When I changed the Cuda from 11.4 to 11.1 (in PATH ) and downloaded and built it from the source, rather than with pip, it worked. (It did not work with pip nor source with 11.4. Maybe I should've collected the build error msg. my bad)

As for the other question, thank you for the clarification. seems like the repo2docker uses old (<10.1 ) cuda toolkit by default and installing it by changing the base docker image to devel version of nvidia/ubuntu that contains all the necessary build tools is not possible, so I'll go with another option on that one.

Thanks again!

from haste.

sharvil avatar sharvil commented on May 30, 2024

No problem, glad you got up and running at least locally. Let me know if you run into any other issues that I can help with.

from haste.

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.