Giter Club home page Giter Club logo

Comments (2)

skatardude10 avatar skatardude10 commented on August 15, 2024

Are you on Arch Linux? Looks like GCC 6.1.1 doesn't play nicely. If you have CUDA installed, you can edit the install.sh file to run with GCC/GCC++ provided by CUDA.

I changed

# If we're on OS X, use clang
if [[ `uname` == "Darwin" ]]; then
    # make sure that we build with Clang. CUDA's compiler nvcc
    # does not play nice with any recent GCC version.
    export CC=clang
    export CXX=clang++
fi

because the latest Arch provided clang doesn't seem to work so I don't care about it to:

export CC=/opt/cuda/bin/gcc
export CXX=/opt/cuda/bin/g++

And also because Arch installs cuda to /opt/cuda, I changed the path_to_nvcc to:

path_to_nvcc=$(which nvcc)
if [ $? == 1 ]; then { # look for it in /usr/local
  if [[ -f /opt/cuda/bin/nvcc ]]; then {
    path_to_nvcc=/opt/cuda/bin/nvcc
  } fi
} fi

When installing other stuff with luarocks I get the same errors, so to get around that for example...

CC=/opt/cuda/bin/gcc CXX=/opt/cuda/bin/g++ luarocks install inn

Hope this helps a bit. Keep in mind this would only work on Arch Linux with cuda installed. Good luck!

from torch.github.io.

thepunitsingh avatar thepunitsingh commented on August 15, 2024

Thanks @skatardude10 for the response.

Yes I was on Arch Linux, but I had some urgent work so I switched to Ubuntu for time being. But since I am an Arch fan, I will return to it soon and try installing the torch with the given suggestion.

In the meanwhile, I hope this would also help other Arch fans out there. 😄

from torch.github.io.

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.