Whether Cuda and Nvidia driver Geforce GTX 750 Ti are the same ones or not?

Asked by Phan Cao Duong

Whether Cuda and Nvidia driver Geforce GTX 750 Ti are the same ones or not?
I install Cuda and Nvidia driver Geforce GTX 750 Ti but they are separately. I run anther software that needs to use Cuda and I got som problems. I think the errors come from cuda like this:

nvcc -O3 -m64 -arch=sm_20 -I/usr/local/include -I/usr/local/cuda/include -I/usr/include/gdal -c src/cuda_kde.cu -o obj/cuda_kde.o
make: nvcc: Command not found
Makefile:80: recipe for target 'obj/cuda_kde.o' failed
make: *** [obj/cuda_kde.o] Error 127

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

/usr/bin/nvcc is provided by the package nvidia-cuda-toolkit

Revision history for this message
Phan Cao Duong (pcduong8088) said :
#2

This mean that if I've installed nvidia driver, I don't need to install CUDA? Thanks!

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What is the output of the commands

uname -a
lsb_release -crid
dpkg -l | grep -i nvidia
sudo lshw -C display

Revision history for this message
Phan Cao Duong (pcduong8088) said :
#4

~$ uname -a
Linux duong 4.10.0-32-generic #36~16.04.1-Ubuntu SMP Wed Aug 9 09:19:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

~$ dpkg -l | grep -i nvidia
ii bbswitch-dkms 0.8-3ubuntu1 amd64 Interface for toggling the power on NVIDIA Optimus video cards
ii libcuda1-384 384.69-0ubuntu0~gpu16.04.1 amd64 NVIDIA CUDA runtime library
ii nvidia-384 384.69-0ubuntu0~gpu16.04.1 amd64 NVIDIA binary driver - version 384.69
rc nvidia-cuda-toolkit 7.5.18-0ubuntu1 amd64 NVIDIA CUDA development toolkit
ii nvidia-opencl-icd-384 384.69-0ubuntu0~gpu16.04.1 amd64 NVIDIA OpenCL ICD
ii nvidia-prime 0.8.2 amd64 Tools to enable NVIDIA's Prime
ii nvidia-settings 384.69-0ubuntu0~gpu16.04.1 amd64 Tool for configuring the NVIDIA graphics driver

~$ sudo lshw -C display
[sudo] password for duong:
  *-display
       description: VGA compatible controller
       product: GM107 [GeForce GTX 750 Ti]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a2
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:29 memory:f2000000-f2ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:1100(size=128) memory:c0000-dffff

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

It very much depends on what you want to do with your system.

Some CUDA functionality is provided by the libcuda1 package (which you already have installed), but for some other actions you also need the nvidia-cuda-toolkit package (which is not installed on your system).

I suggest that you try installing this package.

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

It very much depends on what you want to do with your system.

Some CUDA functionality is provided by the libcuda1 package (which you already have installed), but for some other actions you also need the nvidia-cuda-toolkit package (which is not installed on your system).

I suggest that you try installing this package.

Revision history for this message
Phan Cao Duong (pcduong8088) said :
#7

I installed Nvidia driver successfully and I tried to run a open-software and it showed errors relating cuda. And I tried to install nvidia-cuda-toolkit package but I got stuck in login loop that relates to lightdm. I then tried to remove all and re-installed nvidia driver and I got in login. But I've not run the open-software yet. The error is as follows.

nvcc -O3 -m64 -arch=sm_20 -I/usr/local/include -I/usr/local/cuda/include -I/usr/include/gdal -c src/cuda_kde.cu -o obj/cuda_kde.o
make: nvcc: Command not found
Makefile:80: recipe for target 'obj/cuda_kde.o' failed
make: *** [obj/cuda_kde.o] Error 127

Revision history for this message
Phan Cao Duong (pcduong8088) said :
#8

Could anyone help me? Many thanks!

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

As already written in my first comment:
The action that you execute needs that nvcc is installed, and this program is part of the nvidia-cuda-toolkit package.

I do not see a reason that installing this package would lead to a login loop, but I cannot verify because I do not have such hardware.

Can you help with this problem?

Provide an answer of your own, or ask Phan Cao Duong for more information if necessary.

To post a message you must log in.