Giter Site home page Giter Site logo

pip install error about dirt HOT 5 CLOSED

pmh47 avatar pmh47 commented on June 10, 2024
pip install error

from dirt.

Comments (5)

pmh47 avatar pmh47 commented on June 10, 2024

Apparently your cuda compiler nvcc is broken. What does running /usr/bin/nvcc --version give? What version of cuda do you have?

from dirt.

wolf943134497 avatar wolf943134497 commented on June 10, 2024

hi @pmh47, Thank you for your reply !
Cuda compilation tools, release 9.0, V9.0.176, /usr/bin/nvcc is a soft link (/usr/local/cuda/bin/nvcc) .

from dirt.

pmh47 avatar pmh47 commented on June 10, 2024

That's strange; your configuration of nvcc 9 + gcc 5.4 + cmake 3.10 should work correctly. I think there would have been more lines of output after Change Dir: /tmp/... in your original post, which should say what the actual error from nvcc was -- could you paste all of that output here?

from dirt.

wolf943134497 avatar wolf943134497 commented on June 10, 2024

CMake Error at /opt/cmake-3.12.4/share/cmake-3.12/Modules/CMakeTestCUDACompiler.cmake:46 (message):
The CUDA compiler
"/usr/bin/nvcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /tmp/pip-req-build-l1ejzutl/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_0cce6/fast"
/usr/bin/make -f CMakeFiles/cmTC_0cce6.dir/build.make CMakeFiles/cmTC_0cce6.dir/build
make[1]: Entering directory '/tmp/pip-req-build-l1ejzutl/build/CMakeFiles/CMakeTmp'
Building CUDA object CMakeFiles/cmTC_0cce6.dir/main.cu.o
/usr/bin/nvcc -x cu -c /tmp/pip-req-build-l1ejzutl/build/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_0cce6.dir/main.cu.o
nvcc fatal : Path to libdevice library not specified
CMakeFiles/cmTC_0cce6.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_0cce6.dir/main.cu.o' failed
make[1]: *** [CMakeFiles/cmTC_0cce6.dir/main.cu.o] Error 1
make[1]: Leaving directory '/tmp/pip-req-build-l1ejzutl/build/CMakeFiles/CMakeTmp'
Makefile:121: recipe for target 'cmTC_0cce6/fast' failed
make: *** [cmTC_0cce6/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/tmp/pip-req-build-l1ejzutl/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/pip-req-build-l1ejzutl/build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-req-build-l1ejzutl/setup.py", line 50, in
'Programming Language :: Python :: 3.7',
File "/home/dl/anaconda3/envs/gwm/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/dl/anaconda3/envs/gwm/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)

maybe python 3.7 works? Can you tell me which version of python/anaconda/GL/ works ?
dependencies may conflict ! Thanks!

from dirt.

pmh47 avatar pmh47 commented on June 10, 2024

This is not a problem with dependencies (nor with DIRT itself); rather, your cuda toolkit installation is broken somehow. Googling the actual error nvcc fatal : Path to libdevice library not specified will give you some possible solutions.

Python 3.6 and 3.7 work fine, any conda that gives you tensorflow-gpu 1.6 or newer, and OpenGL from any nvidia driver newer than v367.

I'll close this issue as it's not a problem with DIRT.

from dirt.

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.