The officially official Devuan Forum!

You are not logged in.

#1 2018-06-26 20:09:39

stierlitz
Member
Registered: 2018-06-24
Posts: 2  

How to install nvidia CUDA on ASCII?

Guys can anyone help me (or point me to working procedure) to install all what is needed for GPU computing on nvidia cards? I was able to install nvidia proprietary driver (using deb provided by nvidia) but I am stuck on installing cuda. I get dependencies error like this:

# apt-get install cuda
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 cuda : Depends: cuda-9-2 (>= 9.2.88) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

while the GPU seems to be present and bored of idling:

# nvidia-smi
Tue Jun 26 22:03:22 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.82                 Driver Version: 375.82                    |
|-------------------------------+----------------------+----------------------+
| 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 4000         Off  | 0000:05:00.0      On |                  N/A |
| 40%   46C   P12    N/A /  N/A |     78MiB /  1984MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

I would be very thankful any hint, help or reference to good resources to get this nice quadro card working.

Last edited by stierlitz (2018-06-27 11:20:59)

Offline

#2 2018-06-26 20:19:02

devuser
Member
Registered: 2018-04-30
Posts: 176  

Re: How to install nvidia CUDA on ASCII?

I don't really have an answer but do you really have to use the .deb file from nvidia? If not switching to the official Devuan version might help with your dependency problems.

Offline

#3 2018-06-26 20:59:23

msi
Member
Registered: 2017-02-04
Posts: 115  

Re: How to install nvidia CUDA on ASCII?

@stierlitz:

First, please use [ code ] tags instead of just [ c ] for code blocks. Thanks.

On topic:

1. Which Devuan distribution are you using? Jessie, ASCII, Beowulf, Ceres?

2. What does apt-cache search cuda give you?

Offline

#4 2018-06-27 07:01:57

Dutch_Master
Member
Registered: 2018-05-31
Posts: 21  

Re: How to install nvidia CUDA on ASCII?

@msi: he'd already stated he's on Ascii, as per the title of the thread tongue

@strierlitz: post your /etc/apt/sources.list, it should include the contrib and non-free repo's. If they don't, add these (synaptic has the option to do it for you, but as you're clearly capable of comfortable on the cli, a text editor will do too wink ) then update the package list: apt-get update.

HTH!

Offline

#5 2018-06-27 08:07:06

cynwulf
Member
Registered: 2017-10-09
Posts: 181  

Re: How to install nvidia CUDA on ASCII?

stierlitz wrote:

I was able to install nvidia proprietary driver (using deb provided by nvidia) but I am stuck on installing cuda. I get dependencies error like this:
[...]
The following packages have unmet dependencies:
cuda : Depends: cuda-9-2 (>= 9.2.88) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

The Debian package from the vendor breaks the dependency chain.  I hadn't realised that Nvidia provided a Debian package of the blob.  When I last used it, it was a still a shellscript.  Removing it and installing the blob from the repositories should be the first step to resolving this.

Looking at the  cuda version in Debian unstable, it's currently at version 9.1.85, so still older than the vendor version.  The version in the stable release is 8.0.44 - thus you cannot satisfy the 9.2.88 dependency via the repositories.

Last edited by cynwulf (2018-06-27 08:07:26)

Offline

#6 2018-06-27 10:59:03

stierlitz
Member
Registered: 2018-06-24
Posts: 2  

Re: How to install nvidia CUDA on ASCII?

@msi - it is ASCII and there is plenty apt can search:

# apt-cache search cuda
boinc-client-nvidia-cuda - metapackage for CUDA-savvy BOINC client and manager
caffe-cuda - Fast, open framework for Deep Learning (Meta)
caffe-tools-cuda - Tools for fast, open framework for Deep Learning (CUDA)
libcaffe-cuda-dev - development files for Caffe (CUDA)
libcaffe-cuda1 - library of Caffe, deep leanring framework (CUDA)
python-pycuda - Python module to access Nvidia‘s CUDA parallel computation API
python-pycuda-dbg - Python module to access Nvidia‘s CUDA API (debug extensions)
python-pycuda-doc - module to access Nvidia‘s CUDA computation API (documentation)
python3-caffe-cuda - Python3 interface of Caffe (CUDA)
python3-pycuda - Python 3 module to access Nvidia‘s CUDA parallel computation API
python3-pycuda-dbg - Python 3 module to access Nvidia‘s CUDA API (debug extensions)
libcuda1 - NVIDIA CUDA Driver Library
libcudart8.0 - NVIDIA CUDA Runtime Library
libcupti-dev - NVIDIA CUDA Profiler Tools Interface development files
libcupti-doc - NVIDIA CUDA Profiler Tools Interface documentation
libcupti8.0 - NVIDIA CUDA Profiler Tools Interface runtime library
libnvcuvid1 - NVIDIA CUDA Video Decoder runtime library
libnvidia-legacy-304xx-cuda1 - NVIDIA CUDA Driver Library (304xx legacy version)
libnvidia-legacy-304xx-nvcuvid1 - NVIDIA CUDA Video Decoder runtime library (304xx legacy version)
libnvidia-legacy-340xx-cuda1 - NVIDIA CUDA Driver Library (340xx legacy version)
libnvidia-legacy-340xx-nvcuvid1 - NVIDIA CUDA Video Decoder runtime library (340xx legacy version)
libnvrtc8.0 - CUDA Runtime Compilation (NVIDIA NVRTC Library)
nvidia-cuda-dev - NVIDIA CUDA development files
nvidia-cuda-doc - NVIDIA CUDA and OpenCL documentation
nvidia-cuda-gdb - NVIDIA CUDA Debugger (GDB)
nvidia-cuda-mps - NVIDIA CUDA Multi Process Service (MPS)
nvidia-cuda-toolkit - NVIDIA CUDA development toolkit
nvidia-profiler - NVIDIA Profiler for CUDA and OpenCL
nvidia-visual-profiler - NVIDIA Visual Profiler for CUDA and OpenCL
libcuda1-i386 - NVIDIA CUDA 32-bit runtime library
libnvidia-legacy-304xx-cuda1-i386 - NVIDIA CUDA 32-bit runtime library (304xx legacy version)
libnvidia-legacy-340xx-cuda1-i386 - NVIDIA CUDA 32-bit runtime library (340xx legacy version)
libcudart9.1 - NVIDIA CUDA Runtime Library
libcupti9.1 - NVIDIA CUDA Profiler Tools Interface runtime library
libnvrtc9.1 - CUDA Runtime Compilation (NVIDIA NVRTC Library)
cuda-nvdisasm-9-2 - CUDA disassembler
cuda-nvgraph-9-2 - NVGRAPH native runtime libraries
cuda-memcheck-9-2 - CUDA-MEMCHECK
cuda-cufft-dev-9-2 - CUFFT native dev links, headers
cuda-samples-9-2 - CUDA example applications
cuda-command-line-tools-9-2 - CUDA command-line tools
cuda-nvrtc-9-2 - NVRTC native runtime libraries
cuda-cublas-9-2 - CUBLAS native runtime libraries
cuda-cublas-dev-9-2 - CUBLAS native dev links, headers
cuda-misc-headers-9-2 - CUDA miscellaneous headers
libcuda1-375 - Transitional package for libcuda1-396
cuda-9-2 - CUDA 9.2 meta-package
cuda-npp-9-2 - NPP native runtime libraries
cuda-nvprof-9-2 - CUDA Profiler tools
cuda-minimal-build-9-2 - Minimal CUDA 9.2 toolkit build packages.cuda-tools-9-2 - CUDA Tools meta-package
cuda-libraries-9-2 - CUDA Libraries 9.2 meta-package
cuda-core-9-2 - CUDA core tools
cuda-visual-tools-9-2 - CUDA visual tools
cuda-curand-9-2 - CURAND native runtime libraries
cuda-nvrtc-dev-9-2 - NVRTC native dev links, headers
cuda-cupti-9-2 - CUDA profiling tools interface.
cuda-gpu-library-advisor-9-2 - CUDA GPU Library Advisor.
cuda-documentation-9-2 - CUDA documentation
cuda-nvvp-9-2 - CUDA nvvp
cuda-nvtx-9-2 - NVIDIA Tools Extension
cuda-nvprune-9-2 - CUDA nvprune
cuda-libraries-dev-9-2 - CUDA Libraries 9.2 development meta-package
libcuda1-396 - NVIDIA CUDA runtime library
cuda-toolkit-9-2 - CUDA Toolkit 9.2 meta-package
cuda-gdb-src-9-2 - Contains the source code for cuda-gdb
cuda-cusparse-dev-9-2 - CUSPARSE native dev links, headers
cuda-cusolver-dev-9-2 - CUDA solver native dev links, headers
cuda - CUDA meta-package
cuda-cuobjdump-9-2 - CUDA cuobjdump
cuda-drivers - CUDA Driver meta-package
cuda-nvml-dev-9-2 - NVML native dev links, headers
cuda-driver-dev-9-2 - CUDA Driver native dev stub library
cuda-nvcc-9-2 - CUDA nvcc
cuda-cufft-9-2 - CUFFT native runtime libraries
cuda-npp-dev-9-2 - NPP native dev links, headers
cuda-curand-dev-9-2 - CURAND native dev links, headers
cuda-compiler-9-2 - CUDA compiler
cuda-cusparse-9-2 - CUSPARSE native runtime libraries
cuda-cudart-dev-9-2 - CUDA Runtime native dev links, headers
cuda-nvgraph-dev-9-2 - NVGRAPH native dev links, headers
cuda-gdb-9-2 - CUDA-GDB
cuda-nsight-9-2 - CUDA nsight
cuda-cusolver-9-2 - CUDA solver native runtime libraries
cuda-license-9-2 - CUDA licenses
cuda-demo-suite-9-2 - Demo suite for CUDA
cuda-runtime-9-2 - CUDA Runtime 9.2 meta-package
cuda-cudart-9-2 - CUDA Runtime native Libraries
cuda-repo-ubuntu1604-9-2-local - cuda repository configuration files

@Dutch_Master this is my sources.list:

#deb cdrom:[devuan_ascii_2.0.0_amd64_netinst]/ ascii main non-free
#deb cdrom:[devuan_ascii_2.0.0_amd64_netinst]/ ascii main non-free

deb http://at.deb.devuan.org/merged ascii main contrib non-free
deb-src http://at.deb.devuan.org/merged ascii main contrib non-free

deb http://at.deb.devuan.org/merged ascii-security main contrib non-free
deb-src http://at.deb.devuan.org/merged ascii-security main contrib non-free

deb http://at.deb.devuan.org/merged ascii-updates main contrib non-free
deb-src http://at.deb.devuan.org/merged ascii-updates main contrib non-free

deb http://deb.devuan.org/merged ascii-backports main contrib non-free
deb-src http://deb.devuan.org/merged ascii-backports main contrib non-free

@cynwulf so I should uninstal nvidia's DEB and stick with devuan's repo, right? Can you tell me how please? smile

thanks a lot!

Offline

#7 2018-06-27 13:43:52

msi
Member
Registered: 2017-02-04
Posts: 115  

Re: How to install nvidia CUDA on ASCII?

Dutch_Master wrote:

@msi: he'd already stated he's on Ascii, as per the title of the thread tongue

Must have been concentrating on the small stuff so much that I totally overlooked that... big_smile

Offline

#8 2018-06-27 13:56:41

cynwulf
Member
Registered: 2017-10-09
Posts: 181  

Re: How to install nvidia CUDA on ASCII?

The cuda packages you installed were intended for an Ubuntu release.  You will probably have to purge all of those first and then install it from the repositories.

Offline

Board footer