![]() |
|
|
#1 |
|
Jun 2010
Pennsylvania
947 Posts |
Last night I decided to see how to run MFAKTC on a Linux machine, but ran into an obstacle that I hope you will help with.
For purposes of this experiment, I wanted to use an Nvidia GT630 on Netrunner 16. Using @Brain's GPU Computing Cheat Sheet, I downloaded the Linux 64-bit version from here, then extracted the files. The README.TXT makes it sound like it's a simple matter of typing "./mfaktc.exe", but this seems to be true only for the Windows version. (It's possible that I've forgotten some part of what I needed to do to get MFAKTC going in Windows.) In Windows, you can extract the archives to their own directory in no particular place (I have it in the Downloads folder) and MFAKTC runs in the DOS box from there without a hitch. But following the same procedure in Netrunner, I keep getting this error: Code:
error while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory ) and what do I need to do to fix it?I don't remember it being so difficult to get MFAKTC working in Windows, but then it's been a while. I spent some time researching this on the Web, but ran into quite a variety of ideas of varying degrees of exoticism. As a Linux noob, I figured the wisest course would be to ask people who know. ![]() TIA Rodrigo Last fiddled with by Rodrigo on 2016-06-11 at 16:31 Reason: conciseness, correction |
|
|
|
|
|
#2 |
|
"David"
Jul 2015
Ohio
11×47 Posts |
Do you have CUDA installed on this machine?
If so, you may need to run the following first: export LD_LIBRARY_PATH=/usr/local/cuda/lib64 |
|
|
|
|
|
#3 |
|
Jun 2010
Pennsylvania
947 Posts |
Is that something that would need to be installed in addition to what comes with the MFAKTC tar.gz?
It's been a while since I added a new machine for TF purposes, and never a Linux machine 'til now. Rodrigo |
|
|
|
|
|
#4 |
|
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/
24×199 Posts |
First question, do you have the Nvidia driver installed?
You also need to have the CUDA libraries installed. They are often packaged separately in distributions, so you may need to install a second package. As AirSquirrels alluded to, you need to have the CUDA libraries in your library path. I recommend making sure the directory they are installed in is listed in a file inside /etc/ld.so.conf.d . Then run `ldconfig` as root. |
|
|
|
|
|
#5 |
|
"Oliver"
Mar 2005
Germany
5·223 Posts |
Hi,
|
|
|
|
|
|
#6 |
|
Jun 2010
Pennsylvania
947 Posts |
I do have the latest Nvidia driver (352.63) for that distribution.
And it was the precompiled binary that I downloaded. Where to add the line... Code:
LD_LIBRARY_PATH="./lib:${LD_LIBRARY_PATH}" ./mfaktc.exe
Rodrigo |
|
|
|
|
|
#7 |
|
"Oliver"
Mar 2005
Germany
100010110112 Posts |
Hi Rodrigo,
that is just an example of a command. E.g. run in your shell in the directory where you untared the tarball. Oliver |
|
|
|
|
|
#8 |
|
Jun 2010
Pennsylvania
947 Posts |
Ah, thanks very much, Oliver. I'll try that.
Rodrigo |
|
|
|
|
|
#9 |
|
Jun 2010
Pennsylvania
16638 Posts |
UPDATE: There has been progress. MFAKTC started, and it ran fine with the -h switch.
But when I tried to perform the self-test, it aborted with the following message: Code:
ERROR: CUDA runtime version must match the CUDA toolkit version used during compile! What's the next step? Rodrigo |
|
|
|
|
|
#10 |
|
Jun 2010
Pennsylvania
947 Posts |
Addendum to the above post:
In case it helps, here's the information relating to the installed CUDA version: Code:
binary compiled for CUDA 4.20 CUDA runtime version 0.0 CUDA driver version 4390.89 |
|
|
|
|
|
#11 |
|
"Oliver"
Mar 2005
Germany
5×223 Posts |
Hi Rodrigo,
this looks like the wrong CUDA runtime library is used. And Nvidia says using the wrong runtime library is not supported in any way, even reading the version of the runtime library doesn't work... So next I would
Oliver |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mfaktc, linux & laptop temperatures | ric | GPU Computing | 8 | 2017-08-31 20:01 |
| mfaktc on Linux and misfit on Windows | bgbeuning | GPU Computing | 3 | 2016-01-25 05:20 |
| mfaktc on a Mac | bayanne | GPU Computing | 0 | 2013-10-18 09:59 |
| mfaktc (0.20) | fairsky | Software | 9 | 2013-09-24 12:58 |
| mfaktc | tichy | GPU Computing | 4 | 2010-12-03 21:51 |