mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2019-08-13, 23:46   #1
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

23×313 Posts
Default problem installing CUDA on Debian

I recently got access to a few spare servers (all running Debian 8 Jessie) with multiple Nvidia cards. However, I'm having trouble setting up CUDA even after enabling the contrib and non-free packages and installing the required libraries. When I try to install the nvidia-cuda-toolkit package, the installer tries to run nvidia-installer-cleanup and asks whether to run nvidia-xconfig --restore-original-backup to restore the original X configuration file. Answering "Yes" causes the terminal to completely lock up while saying "No" simply terminates the installation.

I've found several threads elsewhere that mention this issue but no working solutions:

I tried using different servers but ran into the same problem every time. Anyone know how to resolve this issue?

Can I compile mfaktc on another computer and copy the binary over? Or must I have CUDA installed to run mfaktc?

Last fiddled with by ixfd64 on 2019-08-13 at 23:49
ixfd64 is offline   Reply With Quote
Old 2019-08-14, 01:33   #2
hansl
 
hansl's Avatar
 
Apr 2019

110011012 Posts
Default

Quote:
Originally Posted by ixfd64 View Post
Can I compile mfaktc on another computer and copy the binary over? Or must I have CUDA installed to run mfaktc?
I think you still need the cuda shared libraries (same version it is compiled for) but yeah you should be able to compile on one and run on another.

I would try copying the runtime lib from the compiling machine ( "/usr/local/cuda/lib64/libcudart.so" is the path on mine) into the directory with mfaktc executable and see if that works. You might need some of the other files too like libcufft.so, etc. I'm not sure what all mfaktc uses.
hansl is offline   Reply With Quote
Old 2019-08-14, 01:45   #3
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

2×2,927 Posts
Default

In my experience, a working CUDA install is necessary in order to run any CUDA binary. You don't need to build all the tools to compile, but you do need a functioning CUDA.
VBCurtis is offline   Reply With Quote
Old 2019-08-14, 16:08   #4
chris2be8
 
chris2be8's Avatar
 
Sep 2009

25·7·11 Posts
Default

See https://mersenneforum.org/showthread.php?t=23561 for details of what I had to do to get CUDA working in Devuan (that's a Debian variant without systemd so should be relevant).

Chris
chris2be8 is offline   Reply With Quote
Old 2019-08-16, 22:21   #5
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

23×313 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
See https://mersenneforum.org/showthread.php?t=23561 for details of what I had to do to get CUDA working in Devuan (that's a Debian variant without systemd so should be relevant).

Chris
Thanks for the information. However, my situation seems to be a bit different. From what I gather, your system already had CUDA installed whereas I'm not able to install it at all. I get an error saying that NVCC could not be found when I try to build mfaktc.
ixfd64 is offline   Reply With Quote
Old 2019-08-17, 16:00   #6
chris2be8
 
chris2be8's Avatar
 
Sep 2009

1001101000002 Posts
Default

I had to start from scratch by installing CUDA before I started trying to get ECM installed.

Also search https://dev1galaxy.org/index.php (the Devuan forum) for references to CUDA (I was probably the first person to get it working on Devuan).

Chris
chris2be8 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any Free cuda-capable drivers for Debian? alexvong1995 GPU Computing 22 2015-01-15 13:56
Problem in running msieve with CUDA mohamed Msieve 20 2013-08-01 08:27
Installing gmp under Ubuntu R. Gerbicz Software 3 2009-03-13 15:49
Installing GGNFS Zeta-Flux Factoring 33 2005-06-10 21:19
Problem running prime-net on debian (woody) dual processor thedagit Software 3 2002-10-19 05:57

All times are UTC. The time now is 15:25.


Fri Jul 7 15:25:30 UTC 2023 up 323 days, 12:54, 0 users, load averages: 1.37, 1.18, 1.12

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔