LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-16-2017, 12:39 PM   #1
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Rep: Reputation: Disabled
Exclamation CUDA 8.0 installation


Hi guys.

Basically a physicist. I want to install CUDA 8.0 for my newly bought workstation with Nvidia Quadro K1200 card and GROMACS, NAMD and VMD in CUDA interface. I am completely ill trying installing CUDA. So many errors that I am burried in it. Please someone guide me to install the softwares or please help me install them.. Thank you so much
 
Old 09-16-2017, 12:48 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
This is how it goes.
You start installing. When you encounter an error you stop and solve it. Then you proceed, if you get another error you stop and solve it. So on. Note, only the first error is meaningful. All other errors that come after it may be triggered by the first one.
In case you need help post the error you are getting and the command you executed.
 
Old 09-16-2017, 01:21 PM   #3
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Do you want to run nvidia-xconfig?
This will update the system X configuration file so that the NVIDIA X driver
is used. The pre-existing X configuration file will be backed up.
This option should not be used on systems that require a custom
X configuration, such as systems with multiple GPU vendors.
(y)es/(n)o/(q)uit [ default is no ]:

What option shoudl i use?

I use only single quadro card k200
 
Old 09-16-2017, 01:27 PM   #4
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
I'd say you need proprietary nVidia driver for CUDA. So this is a prerequisite. Have you checked out Ubuntu Documentation?
 
Old 09-17-2017, 07:55 AM   #5
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Do you want to run nvidia-xconfig?
This will update the system X configuration file so that the NVIDIA X driver
is used. The pre-existing X configuration file will be backed up.
This option should not be used on systems that require a custom
X configuration, such as systems with multiple GPU vendors.
(y)es/(n)o/(q)uit [ default is no ]:

What option shoudl i use?

I use only single quadro card k1200
 
Old 09-17-2017, 09:11 AM   #6
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Do you accept the previously read EULA?
accept/decline/quit: accept

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.26?
(y)es/(n)o/(q)uit: n

Install the CUDA 8.0 Toolkit?
(y)es/(n)o/(q)uit: y

Enter Toolkit Location
[ default is /usr/local/cuda-8.0 ]: /usr/local/cuda-8.0

Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y

Install the CUDA 8.0 Samples?
(y)es/(n)o/(q)uit: y

Enter CUDA Samples Location
[ default is /home/viji ]: /home/viji

Installing the CUDA Toolkit in /usr/local/cuda-8.0 ...
Installing the CUDA Samples in /home/viji ...
Copying samples to /home/viji/NVIDIA_CUDA-8.0_Samples now...
Finished copying samples.

===========
= Summary =
===========

Driver: Not Selected
Toolkit: Installed in /usr/local/cuda-8.0
Samples: Installed in /home/viji

Please make sure that
- PATH includes /usr/local/cuda-8.0/bin
- LD_LIBRARY_PATH includes /usr/local/cuda-8.0/lib64, or, add /usr/local/cuda-8.0/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-8.0/bin

Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-8.0/doc/pdf for detailed information on setting up CUDA.

***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 361.00 is required for CUDA 8.0 functionality to work.
To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file:
sudo <CudaInstaller>.run -silent -driver



When i check for driver

lspci | grep VGA
02:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K1200] (rev a2)
08:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 30)


cat /proc/driver/nvidia/version
NVRM version: NVIDIA UNIX x86_64 Kernel Module 375.66 Mon May 1 15:29:16 PDT 2017
GCC version: gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)

Where am I going wrong..?
 
Old 09-17-2017, 12:00 PM   #7
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
I do not see anything wrong. The script is complaining it wasn't allowed to mess with driver, not necessarily a showstopper. Why don't you try if it works?
 
Old 09-18-2017, 01:55 AM   #8
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Dear Emerson

Thannk you

After that I have carried out these steps. Please Check if they are right.


viji@viji-X10SRA-F-Invalid-entry-length-16-Fixed-up-to-11:~/Downloads/CUDA$ export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
viji@viji-X10SRA-F-Invalid-entry-length-16-Fixed-up-to-11:~/Downloads/CUDA$ export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
viji@viji-X10SRA-F-Invalid-entry-length-16-Fixed-up-to-11:~/Downloads/CUDA$ nvidia-smi
Mon Sep 18 11:23:52 2017
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.66 Driver Version: 375.66 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro K1200 Off | 0000:02:00.0 On | N/A |
| 39% 45C P8 1W / 35W | 261MiB / 4040MiB | 1% Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1311 G /usr/lib/xorg/Xorg 31MiB |
| 0 1531 G /usr/lib/xorg/Xorg 67MiB |
| 0 2034 G /usr/bin/gnome-shell 128MiB |
+-----------------------------------------------------------------------------+
 
Old 09-18-2017, 02:22 AM   #9
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Now i tried to check my CUDA installation

and receive following error

nvcc -v
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc fatal : No input files specified; use option --help for more information
viji@viji-X10SRA-F-Invalid-entry-length-16-Fixed-up-to-11:~/Downloads/CUDA$ nvcc -version
nvcc fatal : Unknown option 'version'
viji@viji-X10SRA-F-Invalid-entry-length-16-Fixed-up-to-11:~/Downloads/CUDA$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
 
Old 09-18-2017, 03:03 AM   #10
drrahul
Member
 
Registered: Apr 2017
Posts: 36

Original Poster
Rep: Reputation: Disabled
Now i tried to check my CUDA installation

and receive following error

nvcc -v
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc fatal : No input files specified; use option --help for more information
viji@viji-X10SRA-F-Invalid-entry-length-16-Fixed-up-to-11:~/Downloads/CUDA$ nvcc -version
nvcc fatal : Unknown option 'version'
viji@viji-X10SRA-F-Invalid-entry-length-16-Fixed-up-to-11:~/Downloads/CUDA$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
 
Old 09-18-2017, 10:00 AM   #11
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
What error? I see no error.
 
  


Reply

Tags
cuda, gromacs, nvidia driver, vmd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ethernet connection missing after Cuda installation failure with Jetpack Emilelf Linux - Embedded & Single-board computer 1 08-09-2017 09:40 AM
[SOLVED] cuda for gfortran ? aihaike Programming 4 09-26-2010 09:07 PM
CUDA on 11.2 (64 bit) marios_auth SUSE / openSUSE 1 04-02-2010 11:46 PM
Ubuntu Nvidia / CUDA driver installation gourox Linux - Hardware 1 08-14-2009 01:36 AM
CUDA on Jaunty, Installation successful, but cannot run? beaute Ubuntu 0 06-01-2009 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration