Giter Club home page Giter Club logo

Comments (10)

AaronJackson avatar AaronJackson commented on June 12, 2024

Did you do what it said though?

For example: export CUDNN_PATH="/usr/local/cuda/lib64/libcudnn.so.5"

Did you install the correct version of cudnn?

from vrn.

Jackiekkz97 avatar Jackiekkz97 commented on June 12, 2024

Did you do what it said though?

For example: export CUDNN_PATH="/usr/local/cuda/lib64/libcudnn.so.5"

Did you install the correct version of cudnn?

I am new to linux and Ubuntu.It seems like there are errors when I downloaded the cudnn the user used in the Ubuntu 18.04 guide. I am not sure is it not compatible with my gpu (gtx1050). And when I used nvidia-smi it shows that i am running cuda version 10.2 so I downloaded cudnn and nccl that is compatible with cuda 10.2. However, when I check nvcc —version, it shows a version of 9.1. Did it automatically download cuda itself when I download the linux nvidia display driver? I am really confused here. Thanks for you reply!

from vrn.

Jackiekkz97 avatar Jackiekkz97 commented on June 12, 2024

When I try using matlab R2020a to run it shows the error after i change the cudnn path. And the terminal to open Matlab shows :Failed to load module "canberra-gtk-module"

device =

'gpu'

/bin/bash: line 1: 3853 Segmentation fault (core dumped) CUDA_VISIBLE_DEVICES=0 th main.lua -model 2D-FAN-300W.t7 -input ../examples/ -detectFaces true -mode generate -output ../examples/ -device gpu -outputFormat txt 2>&1 > /dev/null
cd face-alignment;CUDA_VISIBLE_DEVICES=0 th main.lua -model 2D-FAN-300W.t7 -input ../examples/ -detectFaces true -mode generate -output ../examples/ -device gpu -outputFormat txt 2>&1 > /dev/null;: Segmentation fault
Error using run (line 38)
Failed to run Torch7 script.

from vrn.

Jackiekkz97 avatar Jackiekkz97 commented on June 12, 2024

After I removed the line the user said in the guide. The error in matlab came out as the same as the one when I run in terminal.

device =

'gpu'

/home/jackie/torch/install/bin/luajit: /home/jackie/torch/install/share/lua/5.1/trepl/init.lua:389: /home/jackie/torch/install/share/lua/5.1/trepl/init.lua:389: /home/jackie/torch/install/share/lua/5.1/cudnn/ffi.lua:1603: 'libcudnn (R5) not found in library path.
Please install CuDNN from https://developer.nvidia.com/cuDNN
Then make sure files named as libcudnn.so.5 or libcudnn.5.dylib are placed in
your library load path (for example /usr/local/lib , or manually add a path to LD_LIBRARY_PATH)

Alternatively, set the path to libcudnn.so.5 or libcudnn.5.dylib
to the environment variable CUDNN_PATH and rerun torch.
For example: export CUDNN_PATH="/usr/local/cuda/lib64/libcudnn.so.5"

stack traceback:
[C]: in function 'error'
/home/jackie/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
main.lua:13: in main chunk
[C]: in function 'dofile'
...ckie/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x5573040b2570
Error using run (line 38)
Failed to run Torch7 script.

from vrn.

Jackiekkz97 avatar Jackiekkz97 commented on June 12, 2024

I tried to run through the cudnnn installation using the command below:
sudo dpkg -i libcudnn7_7.6.5.32-1+cuda10.1_amd64.deb
sudo dpkg -i libcudnn7-dev_7.6.5.32-1+cuda10.1_amd64.deb
sudo dpkg -i libcudnn7-doc_7.6.5.32-1+cuda10.1_amd64.deb
sudo dpkg -i nccl-repo-ubuntu1804-2.5.6-ga-cuda10.1_1-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda

And I got the error below:
jackie@jackie-GL753VD:~/Downloads$ sudo apt-get install cuda
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package cuda

What is the problem here?

from vrn.

Jackiekkz97 avatar Jackiekkz97 commented on June 12, 2024

When I type sudo apt update
it give me this
jackie@jackie-GL753VD:~/Downloads$ sudo apt update
Get:1 file:/var/nccl-repo-2.5.6-ga-cuda10.1 InRelease
Ign:1 file:/var/nccl-repo-2.5.6-ga-cuda10.1 InRelease
Get:2 file:/var/nccl-repo-2.7.3-ga-cuda10.2 InRelease
Ign:2 file:/var/nccl-repo-2.7.3-ga-cuda10.2 InRelease
Get:3 file:/var/nccl-repo-2.5.6-ga-cuda10.1 Release [574 B]
Get:4 file:/var/nccl-repo-2.7.3-ga-cuda10.2 Release [574 B]
Get:3 file:/var/nccl-repo-2.5.6-ga-cuda10.1 Release [574 B]
Get:4 file:/var/nccl-repo-2.7.3-ga-cuda10.2 Release [574 B]
Hit:6 http://gb.archive.ubuntu.com/ubuntu bionic InRelease
Hit:7 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:8 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:10 http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:11 http://security.ubuntu.com/ubuntu bionic-security InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
83 packages can be upgraded. Run 'apt list --upgradable' to see them.

does this mean that i have both nccl pakage installed for cuda 10.1 and 10.2? What should I do in this?

from vrn.

Jackiekkz97 avatar Jackiekkz97 commented on June 12, 2024

Well, I realised there is an error when I am installing cuda
Errors were encountered while processing:
/tmp/apt-dpkg-install-Pb2sJs/30-libcublas-dev_10.2.1.243-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

and there are two warnings:
WARNING: Your driver installation has been altered since it was initially
installed; this may happen, for example, if you have since installed
the NVIDIA driver through a mechanism other than nvidia-installer
(such as your distribution's native package management system).
nvidia-installer will attempt to uninstall as best it can. Please see
the file '/var/log/nvidia-uninstall.log' for details.

WARNING: Failed to delete some directories. See /var/log/nvidia-uninstall.log
for details.

Then after this I typed nvidia-smi. IT occurs
Failed to initialize NVML: Driver/library version mismatch.

from vrn.

AaronJackson avatar AaronJackson commented on June 12, 2024

Your problems are with nvidia drivers and software, not with the 3d face software

from vrn.

Jackiekkz97 avatar Jackiekkz97 commented on June 12, 2024

that's why I am here looking for solutions... If you dont know the solutions then its fine.

from vrn.

Jackiekkz97 avatar Jackiekkz97 commented on June 12, 2024

I just want to know that the cuda version in nvidia-smi. Is it preinstalled or else?

from vrn.

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.