Git Product home page Git Product logo

Comments (5)

zhijian-liu avatar zhijian-liu commented on September 3, 2024

I think it's related to your CUDA environment since there is the following error in your message:

/usr/local/cuda/bin/nvcc: not found

from pvcnn.

LeopoldACC avatar LeopoldACC commented on September 3, 2024

I think it's related to your CUDA environment since there is the following error in your message:

/usr/local/cuda/bin/nvcc: not found

here is my ~/.bashrc:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/x86_64-linux-gnu
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
export PATH=$PATH:/usr/local/cuda/bin
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda

And I run other model with cuda is ok like this:

(pc) gz@gz:~$ python
Python 3.8.5 (default, Sep  4 2020, 07:30:14) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.cuda.is_available())
True
>>> a = torch.Tensor([1]).cuda()
>>> print(a)
tensor([1.], device='cuda:0')

from pvcnn.

digital-idiot avatar digital-idiot commented on September 3, 2024
(pc) gz@gz:~$ python
Python 3.8.5 (default, Sep  4 2020, 07:30:14) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.cuda.is_available())
True
>>> a = torch.Tensor([1]).cuda()
>>> print(a)
tensor([1.], device='cuda:0')

@LeopoldACC Before this, did you check nvcc --version and which nvcc? @zhijian-liu is correct to identify the problem. Your installed version of torch contains precompiled binaries therefore does not explicitly need nvcc to run, it just needs working cudnn for its operations. On the contrary, here you are trying to compile source code written in cuda, so you need a functioning nvcc.

from pvcnn.

LeopoldACC avatar LeopoldACC commented on September 3, 2024
(pc) gz@gz:~$ python
Python 3.8.5 (default, Sep  4 2020, 07:30:14) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.cuda.is_available())
True
>>> a = torch.Tensor([1]).cuda()
>>> print(a)
tensor([1.], device='cuda:0')

@LeopoldACC Before this, did you check nvcc --version and which nvcc? @zhijian-liu is correct to identify the problem. Your installed version of torch contains precompiled binaries therefore does not explicitly need nvcc to run, it just needs working cudnn for its operations. On the contrary, here you are trying to compile source code written in cuda, so you need a functioning nvcc.

I run the command without problem.

(pc) gz@gz:~$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Tue_Sep_15_19:10:02_PDT_2020
Cuda compilation tools, release 11.1, V11.1.74
Build cuda_11.1.TC455_06.29069683_0
(pc) gz@gz:~$ which nvcc
/usr/local/cuda/bin/nvcc

Here is log of cuda file:

(pc) gz@gz:~$ cd /usr/local/cuda/bin && ls
bin2c                         cuobjdump                    nvcc.profile
computeprof                   fatbinary                    nvdisasm
compute-sanitizer             ncu                          nvlink
crt                           ncu-ui                       nv-nsight-cu
cudafe++                      nsight_ee_plugins_manage.sh  nv-nsight-cu-cli
cuda-gdb                      nsight-sys                   nvprof
cuda-gdbserver                nsys                         nvprune
cuda-install-samples-11.1.sh  nsys-exporter                nvvp
cuda-memcheck                 nsys-ui                      ptxas
cuda-uninstaller              nvcc

from pvcnn.

LeopoldACC avatar LeopoldACC commented on September 3, 2024

Hi,@zhijian-liu @digital-idiot
I solved the problem refer to the link
change the export CUDA_HOME=$CUDA_HOME:/usr/local/cuda to export CUDA_HOME=/usr/local/cuda in ~/.bashrc

now my ~/.bashrc is shown as below:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib/x86_64-linux-gnu
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
export PATH=$PATH:/usr/local/cuda/bin
export CUDA_HOME=/usr/local/cuda

it seems that the reason is the :/usr/local/cuda been regard as ':/usr/local/cuda' but not report in error log...

from pvcnn.

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.