Questions tagged [cuda]

CUDA stands for Compute Unified Device Architecture

Filter by
Sorted by
Tagged with
2 votes
1 answer
5k views

CUDA 10.1 deb install for Ubuntu 18.04 fails to initialize NVML

Ubuntu 18.04 with 4.18.0-15-generic. I've been following along https://www.pugetsystems.com/labs/hpc/How-To-Install-CUDA-10-together-with-9-2-on-Ubuntu-18-04-with-support-for-NVIDIA-20XX-Turing-GPUs-...
1 vote
0 answers
26 views

CUDA in Docker image breaks and require sudo apt upgrade

Question Why sudo apt upgrade on the host OS is required to make CUDA work in Docker container? The problem does not occur without Docker, but occurs only when a Docker image is recreated. Environment ...
-1 votes
1 answer
56 views

Broke down my nvidia-smi when I tried updating nvidia drivers

Problem I have seen many similar questions in this forum, and I have tried many of the solutions proposed, however nothing seems to work :c I was trying to install CUDA from the CUDA installation ...
0 votes
0 answers
31 views

Nvidia package dependencies often break [duplicate]

The general issue I'm regularly having issues with previously installed Nvidia package dependencies. About once every two months when I try to upgrade my system or install something new (non-nvidia ...
-1 votes
1 answer
59 views

Unable to install NVIDIA drivers with apt-get

I am trying to install the recommended NVIDIA driver by the following command: sudo apt-get install nvidia-driver-550 But I keep getting the following error message: Get:1 file:/var/cuda-repo-...
1 vote
2 answers
13k views

Missing Libraries When Trying to Use GPU with Tensorflow

I am trying to use GPU with Tensorflow, so I installed CUDA 10.1, CUNN 7.6, TensorRT 6, and Tensorflow-GPU 2.1.0. But when I import tensorflow to check if it can detect the gpu. it gives me the ...
-1 votes
1 answer
74 views

Error installing NVIDIA drivers on Ubuntu 22.04

I'm trying to install CUDA 12.1 on Ubuntu 22.04. I'm on a laptop with a 2060. These are the commands I have used. The first ones are to uninstall my current cuda drivers and the next ones are to ...
2 votes
3 answers
15k views

How to find out CUDA cores and information on command line for NVIDIA GPU

Simply put, I want to find out on the command line the CUDA compute capability as well as number and types of CUDA cores in NVIDIA my graphics card on Ubuntu 20.04. Any suggestions? I tried nvidia-smi ...
0 votes
1 answer
8k views

Installing CUDA 12.0 on Ubuntu 22.04 and Driver Version: 535.86.05

OS: Ubuntu 22.04.3 LTS GPU: RTX3090 Nvidia driver: 535.86.05 +---------------------------------------------------------------------------------------+ | NVIDIA-SMI 535.86.05 Driver ...
2 votes
1 answer
8k views

CMake Error - CUDA_cublas_LIBRARY not found

I am trying to install this https://github.com/NVlabs/ssn_superpixels but get the error below. CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set ...
73 votes
10 answers
406k views

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

I just installed CUDA in a notebook like this: sudo apt-get install cuda Like said here. The compilation works just fine but when I try to run I got the followin problem: CUDA error at file.cu:128 ...
0 votes
0 answers
30 views

Installed nvidia through file runner, nvcc is on my system but not properly configured

I installed version 11.8 of CUDA on my system through the runfile: https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&...
0 votes
0 answers
25 views

nvidia a100 doesn't seen on lspci command in ubuntu with supermicro h12ssl-i motherboard

I have installed ubuntu 22 lts on my h12ssl-i motherboard and just after installation I can see my nvidia a100 on lspci | grep -E "VGA|3D" command. I installed cuda toolkit and nvidia-470 ...
0 votes
0 answers
106 views

How to install opencv with CUDA support

I need help of building opencv in Ubuntu. I tried to install opencv in Ubuntu 20.04 - not install libopencv. I want to install opencv with CUDA support. I installed CUDA-12.4, CUDNN-9.0.0 Then I tried ...
3 votes
1 answer
3k views

How to install or enable CUDA and cuDNN in Ubuntu 23.10?

I am trying to enable cuda and cudnn in my ubuntu 23.10, however, the only available cuda toolkit is for Ubuntu 22.04, any suggestions how can I proceed?
-1 votes
0 answers
83 views

Call CUDA C function from Fortran: which Fortran compiler, libraries and compiler options do I have to use?

I want to call a CUDA C function in a separate file from a Fortran program from 2003. I want to use the nvcc command for compilation of the .cu file. Which compiler do I have to use, GNU Fortran or ...
30 votes
7 answers
80k views

Problem while installing cuda toolkit in ubuntu 18.04

After following all the instructions in CUDA Toolkit 11.1 Downloads, the last instruction sudo apt-get -y install cuda doesn't work for me. Terminal shows this message: The following packages have ...
2 votes
0 answers
4k views

How can I install gcc-7 for Ubuntu 22.04?

I've just installed Ubuntu 22.04, and I'm struggling installing gcc-7. I've already tried with sudo apt install gcc-7 but it says there is no installation candidate. I tried to find a PPA for this ...
1 vote
1 answer
134 views

When i try to get the : nvcc --version I get this error:

I get this response: $ nvcc nvcc: command not found this is in my bashrc file: export PATH="/usr/local/cuda-12.4/bin:$PATH" export LD_LIBRARY_PATH="/usr/local/cuda-12.4/lib64:$...
0 votes
1 answer
1k views

Not able to fix broken installation [duplicate]

I am unable to install any new software on ubuntu due to a broken installation. I tried the following commands to try to fix it: $ sudo rm /var/lib/apt/lists/lock $ sudo rm /var/lib/dpkg/lock $ sudo ...
2 votes
0 answers
577 views

Install Cuda 11.0 on Ubuntu: kernel package linux-headers-5.11.0-34-generic is not supported [duplicate]

I try to install Cuda Toolkit 11.0, I follow every single line successfully of the Installation Instructions of NVIDIA except the last one: wget https://developer.download.nvidia.com/compute/cuda/...
0 votes
0 answers
117 views

fix-broken install not working?

I have just tried to install the Nvidia Cuda and cudnn. But now when I try to run command upgrade, it shows this error: You might want to run 'apt --fix-broken install' to correct these. The following ...
0 votes
0 answers
81 views

22.04.3 LTS: Why is power draw showing "ERR!" in nvidia-smi?

Why is the power draw (Pwr:Usage/Cap) for my NVIDIA GeForce GTX 1050 Ti showing "ERR!" in nvidia-smi? This is my pc specs venv) luffy@predator:~/fern/forge-code/backend/gpt-service/gpt-2-...
62 votes
7 answers
339k views

nvcc --version command says nvcc is not installed

I have installed cuda8.0, the latest version. I followed the procedure provided by Nvidia; but, when I type the command nvcc --version it says nvcc is not installed! What do I do now?
0 votes
3 answers
1k views

Unable to remove nvidia and cuda drivers

Question Regardless of how I got here, I really just want to completely remove nvidia and cuda drivers and reeinstall them. But, no matter what I do, I can't get rid of them. Background I'm on Ubuntu ...
1 vote
2 answers
413 views

Weid cuda driver state after forgetting to clean up resources before suspending the computer

I've been doing CUDA development for a while on Ubuntu 18.04, kernel 4.15.0-46-generic, Nvidia driver 410.48 and a GeForce GTX 1060 card. Sometimes I cannot do CUDA development any longer on a ...
4 votes
2 answers
2k views

WSL2 graphical application display issue

I have installed Ubuntu 20.04 on wsl2, Windows 11. I have installed CUDA as well. whenever I open any Ubuntu app with GUI, such as file manager or any other installed apps, the graphics window display ...
0 votes
1 answer
69 views

System fails to resume after suspension with NVRM errors

I have 22.04 LTS, and an nvidia 4070 card. I installed the driver via Cuda toolkit v12.3, and blacklisted nouveau (which doesn't even fully work with 4070 still). When I suspend the system, and try to ...
2 votes
1 answer
2k views

how do I speed test (benchmark) CUDA?

Just installed Nvidia CUDA (Ubuntu 15.04) and I would like to run a speed test to compare GPU use with cuda and without it.
1 vote
0 answers
124 views

Unable to Install Cuda Drivers on ubuntu 22.04 LTS

Trying to install nvidia drivers on my ubuntu server. Running nvidia-smi after install and reboot yields the following: nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA ...
2 votes
1 answer
4k views

Installing cuda toolkit Ubuntu 14.04 causes dpkg error

When I was installing cuda toolkit Ubuntu 14.04 causes dpkg error. This is what I did: sudo apt-get install build-essential sudo dpkg -i cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb However I ...
2 votes
1 answer
4k views

CUDA on Ubuntu 23.04

Installed Ubuntu 23.04 (because it worked with my RTX 4090 out of the box, after problems with 22.04). Now I want to install CUDA. I followed this guide- CUDA preinstallation steps I installed the ...
1 vote
1 answer
5k views

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

I am getting this error when I want to import tensorflow-gpu on Ubuntu 16.04. I have installed CUDA 9.1 properly, cudNN 7.1 properly and tested both without facing any problem. (using python 3.5 2.) ...
0 votes
1 answer
382 views

Wrongful error on version mismatch - gcc 11.4.0 kernel nvidia-cuda-515

There was an update in my Ubuntu 22.04.03 LTS OS last week, and my nvidia-515 with cuda 11.7 broke. On reinstalling, it fails. I'm stuck, tried to debug and inspect logs - which points to version ...
83 votes
3 answers
387k views

How to disable Nouveau kernel driver

When installing CUDA in Ubuntu 16.04 by executing cuda_8.0.44_linux.run, I got the following error message in /var/log/nvidia-installer.log Then I checked /etc/modprobe.d/nvidia-installer-disable-...
10 votes
3 answers
5k views

How do I fix CUDA breaking after suspend?

So as the title says, everytime I wake my laptop up from a suspend, CUDA breaks, just plain doesn't work. I have to reboot my system in order to get it back. So to get it back after a suspend I have ...
0 votes
0 answers
475 views

NVIDIA driver error: assignment of read-only member ‘vm_flags’

I installed NVIDIA driver based on this suggesiton using the following command: sudo ubuntu-drivers autoinstall The above command installed nvidia-driver-535 (535.154.05-0ubuntu0.22.04.1) and other ...
0 votes
0 answers
156 views

Running CUDA on GTX Titan Black in Ubuntu 22.04

I recently got a hold of 2 GTX Titan Black's and I was trying to get CUDA running on them. But as of now I couldn't get CUDA to work on this PC. I'm using Driver version 470.223.02 with CUDA version ...
0 votes
0 answers
45 views

Tesla k40c Driver install on Ubuntu [duplicate]

i have a server running Ubuntu with two Xeon x5680s and just install a NVIDIA Tesla k40c HPC / GPU for running PyTorch and tensorflow-gpu models but cant get the drivers running. i used "sudo ...
1 vote
3 answers
2k views

nvidia enforced power limit stuck to 45W

Nvidia enforced power limit is set and not exceeding more then 45 Watts on Ubuntu 22.04, how can I change it? ==============NVSMI LOG============== Timestamp : Sun Jun ...
6 votes
1 answer
7k views

Getting CUDA 8.0 to work on Ubuntu 16.04, NVIDIA driver issue

I've spent a couple of days on this and am at my wit's end as to how to move forward. I have an ASUS Zenbook UX303UB with Windows 10 and Ubuntu 16.04 Dual boot. It has an NVIDIA GeForce 940M ...
-1 votes
1 answer
955 views

How do you uninstall the nvidia drivers?

I have tried to updated nvidia drivers by several methods and it became a mess. Containers that I could run before are not runnable anymore (with the message unsatisfied condition cuda >- 12.3 ) To ...
0 votes
0 answers
66 views

Docker run does not work anymore after upgrading cuda

I was having problems trying to run COLMAP GUI inside a container because a cudaErrorInsufficientDriver error. So I used the Sotware updater to update the Nvidia driver. However now I can not even ...
0 votes
0 answers
188 views

How to install cuda10.1?Torch not compiled with CUDA enabled

First of all, my graphics card is MTT S80. A friend suggested using the CPU version of pytorch, but when I run deep learning code, it prompts me:Torch not compiled with CUDA enabled, so I think I ...
0 votes
1 answer
553 views

Command "nvidia-smi" not found, but can be installed with:

I want to install CUDA, so I need to check the driver and CUDA version, but when I input nvidia-smi I get the following error: Command "nvidia-smi" not found, but can be installed with: My ...
0 votes
0 answers
59 views

how to clean up nvidia driver versions shown by `apt policy nvidia-driver-470`?

(This is a follow up to this question) I think I messed up the system while trying to fix some issues. I tried to update Nvidia driver (the one that shows by nvidia-smi) and also installed several ...
0 votes
2 answers
7k views

steps to run the cuda sample program for vector addition?

What are the exact steps to run a .cu sample program? I found a sample application called vectorAdd and I don't really know how to compile and run it. The net says, nvcc -o a.out vectorAdd.cu ./a....
10 votes
3 answers
25k views

can't install nvidia-driver-toolkit on Ubuntu 20.04 LTS - needs uninstallable package

I've been trying to install nvidia-cuda-toolkit with sudo apt install nvidia-cuda-toolkit and it displays the following error: The following packages have unmet dependencies: nvidia-cuda-toolkit : ...
4 votes
6 answers
21k views

CUDA sample code did not get installed through sudo apt-get install nvidia-cuda-toolkit; any solutions?

I just setup my Ubuntu 16.04 workstation with an Nvidia GTX 1070, having successfully installed the latest driver through the graphics-drivers PPA following the instructions here. The nvidia-367 ...
63 votes
5 answers
186k views

How do I install NVIDIA and CUDA drivers into Ubuntu?

I have a system with a NVIDIA card that has a compute support of 3.5+ compared on https://developer.nvidia.com/cuda-gpus. How do I install CUDA and the NVIDIA drivers in Ubuntu without downloading ...

1
2 3 4 5
22