mersenneforum.org Installation and running of mkfactc
 Register FAQ Search Today's Posts Mark Forums Read

 2018-01-05, 02:48 #1 daxmick     Feb 2014 22·3·7 Posts Installation and running of mkfactc I've downloaded v0.21 and read the README. It appears that some knowledge of using CUDA is needed prior to using this software. (Knowledge that, alas, I don't have.) I have CUDA 9.0 installed (I think) on a Ubuntu 17.10 machine but I don't know where to go from here. The README references a /src directory but there is no such directory in the v0.21 directory. What am I missing? Does someone have a more detailed set of instructions on how to get this up and running? :-)
 2018-01-05, 04:35 #2 Mark Rose     "/X\(‘-‘)/X\" Jan 2013 2×5×13×23 Posts If you already have an mfaktc.exe, you can just run that. Otherwise there should be a src directory. In that you made need to edit the Makefile to point a couple of variables to the right place, before you run make.
2018-01-05, 04:55   #3
daxmick

Feb 2014

22×3×7 Posts

Quote:
 Originally Posted by Mark Rose If you already have an mfaktc.exe, you can just run that. Otherwise there should be a src directory. In that you made need to edit the Makefile to point a couple of variables to the right place, before you run make.
I’m not in front of that computer right now but I did run “mfaktc.exe -h” and got an error.

Try untar’ing the v0.21 Linux 64 file. There is no src directory. There is a lib directory though but that didn’t help.

 2018-01-05, 15:19 #4 Luis     Oct 2014 Bari, Italy 3910 Posts You should run Code: ./mfaktc.exe -h or try this command Code: LD_LIBRARY_PATH="./lib:${LD_LIBRARY_PATH}" ./mfaktc.exe -h 2018-01-05, 15:40 #5 daxmick Feb 2014 5416 Posts Quote:  Originally Posted by Luis You should run Code: ./mfaktc.exe -h or That is what I tried before. Quote:  Originally Posted by Luis try this command Code: LD_LIBRARY_PATH="./lib:${LD_LIBRARY_PATH}" ./mfaktc.exe -h
This appears to have worked! I at least got the HELP output. :-) On to the next phase. <insert dramatic music here>

 2018-01-05, 17:43 #6 daxmick     Feb 2014 22×3×7 Posts It appears that mfaktc v0.21 is compiled for CUDA 6.5. I have CUDA 9.0. So, should I uninstall 9.0 and install 6.5 instead? Or where do I get the source of mfaktc so I can build a binary for CUDA 9.0. (Assuming I can figure out how to do that.)
2018-01-05, 17:49   #7
chalsall
If I May

"Chris Halsall"
Sep 2002

22×2,719 Posts

Quote:
 Originally Posted by daxmick It appears that mfaktc v0.21 is compiled for CUDA 6.5. I have CUDA 9.0. So, should I uninstall 9.0 and install 6.5 instead?
If mfaktc successfully completes the full self-test
Code:
./mfaktc.exe -st
...there should be no need to down-grade your CUDA, nor recompile against 9.0.

 2018-01-05, 17:52 #8 daxmick     Feb 2014 22·3·7 Posts That is where I learned what it was looking for. Here is the output of running with the "-st" arg: (Note the last line.) Code: daxm@ultraman:~/mersenne/mfaktc-0.21$./runme.sh -st mfaktc v0.21 (64bit built) Compiletime options THREADS_PER_BLOCK 256 SIEVE_SIZE_LIMIT 32kiB SIEVE_SIZE 193154bits SIEVE_SPLIT 250 MORE_CLASSES enabled Runtime options SievePrimes 25000 SievePrimesAdjust 1 SievePrimesMin 5000 SievePrimesMax 100000 NumStreams 3 CPUStreams 3 GridSize 3 GPU Sieving enabled GPUSievePrimes 82486 GPUSieveSize 64Mi bits GPUSieveProcessSize 16Ki bits Checkpoints enabled CheckpointDelay 30s WorkFileAddDelay 600s Stages enabled StopAfterFactor bitlevel PrintMode full V5UserID (none) ComputerID (none) AllowSleep no TimeStampInResults no CUDA version info binary compiled for CUDA 6.50 CUDA runtime version -104.-5 CUDA driver version 9.0 ERROR: CUDA runtime version must match the CUDA toolkit version used during compile! Here is my bash script to account for the library requirement: Code: daxm@ultraman:~/mersenne/mfaktc-0.21$ cat runme.sh #!/bin/bash LD_LIBRARY_PATH="./lib:${LD_LIBRARY_PATH}" ./mfaktc.exe$1
2018-01-05, 18:00   #9
chalsall
If I May

"Chris Halsall"
Sep 2002

22×2,719 Posts

Quote:
 Originally Posted by daxmick That is where I learned what it was looking for. Here is the output of running with the "-st" arg: (Note the last line.)
Hmmm... OK.

I would next try compiling mkfactc in your enviromment; it's not that hard.

Downgrading CUDA is also an option, but I've found it can be a royal pain in the butt (I've burnt through many an Amazon VM with failed attempts).

2018-01-05, 18:09   #10
daxmick

Feb 2014

22×3×7 Posts

Quote:
 Originally Posted by chalsall Hmmm... OK. I would next try compiling mkfactc in your enviromment; it's not that hard. Downgrading CUDA is also an option, but I've found it can be a royal pain in the butt (I've burnt through many an Amazon VM with failed attempts).
Do you have source code? The link http://www.mersenneforum.org/mfaktc/ doesn't provide source (and it's the only link I know of for getting mfaktc code).

2018-01-05, 18:12   #11
chalsall
If I May

"Chris Halsall"
Sep 2002

22·2,719 Posts

Quote:
 Originally Posted by chalsall I would next try compiling mkfactc in your enviromment; it's not that hard.
Actually, this brings up a point...

@Oliver... Perhaps it's time to update http://www.mersenneforum.org/mfaktc/ and make it possible to find precompiled executables for CUDA 9, and easier to find the source code?

For example, perhaps mfaktc-0.21.tar.gz could be renamed mfaktc-0.21_src.tar.gz?

 Similar Threads Thread Thread Starter Forum Replies Last Post LegionMammal978 Msieve 17 2017-01-20 19:49 ThomRuley GMP-ECM 2 2017-01-06 16:54 wildrabbitt Linux 5 2015-12-22 16:51 jinydu Information & Answers 10 2009-10-14 01:29 Andi47 GMP-ECM 5 2008-04-30 17:46

All times are UTC. The time now is 02:40.

Fri Dec 9 02:40:25 UTC 2022 up 113 days, 8 mins, 0 users, load averages: 1.07, 1.23, 1.29