mersenneforum.org  

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

Reply
 
Thread Tools
Old 2018-01-05, 02:48   #1
daxmick
 
daxmick's Avatar
 
Feb 2014

22·3·7 Posts
Default 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? :-)
daxmick is offline   Reply With Quote
Old 2018-01-05, 04:35   #2
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

2×19×83 Posts
Default

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`.
Mark Rose is offline   Reply With Quote
Old 2018-01-05, 04:55   #3
daxmick
 
daxmick's Avatar
 
Feb 2014

22×3×7 Posts
Default

Quote:
Originally Posted by Mark Rose View Post
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.
daxmick is offline   Reply With Quote
Old 2018-01-05, 15:19   #4
Luis
 
Luis's Avatar
 
Oct 2014
Bari, Italy

1001112 Posts
Default

You should run
Code:
./mfaktc.exe -h
or

try this command
Code:
LD_LIBRARY_PATH="./lib:${LD_LIBRARY_PATH}" ./mfaktc.exe -h
Luis is offline   Reply With Quote
Old 2018-01-05, 15:40   #5
daxmick
 
daxmick's Avatar
 
Feb 2014

1248 Posts
Default

Quote:
Originally Posted by Luis View Post
You should run
Code:
./mfaktc.exe -h
or
That is what I tried before.

Quote:
Originally Posted by Luis View Post
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>

Thank you for your help.
daxmick is offline   Reply With Quote
Old 2018-01-05, 17:43   #6
daxmick
 
daxmick's Avatar
 
Feb 2014

22·3·7 Posts
Default

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.)
daxmick is offline   Reply With Quote
Old 2018-01-05, 17:49   #7
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·3·5·373 Posts
Default

Quote:
Originally Posted by daxmick View Post
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.
chalsall is offline   Reply With Quote
Old 2018-01-05, 17:52   #8
daxmick
 
daxmick's Avatar
 
Feb 2014

5416 Posts
Default

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
daxmick is offline   Reply With Quote
Old 2018-01-05, 18:00   #9
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·3·5·373 Posts
Default

Quote:
Originally Posted by daxmick View Post
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).
chalsall is offline   Reply With Quote
Old 2018-01-05, 18:09   #10
daxmick
 
daxmick's Avatar
 
Feb 2014

22·3·7 Posts
Default

Quote:
Originally Posted by chalsall View Post
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).
daxmick is offline   Reply With Quote
Old 2018-01-05, 18:12   #11
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·3·5·373 Posts
Default

Quote:
Originally Posted by chalsall View Post
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?
chalsall is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of GGNFS LegionMammal978 Msieve 17 2017-01-20 19:49
GMP-ECM - installation - how to compile - Ubuntu 15 ThomRuley GMP-ECM 2 2017-01-06 16:54
installation of OS trouble wildrabbitt Linux 5 2015-12-22 16:51
Don't know where installation folder went jinydu Information & Answers 10 2009-10-14 01:29
GMP-ECM 6.2-rc1 - installation under MinGW failed Andi47 GMP-ECM 5 2008-04-30 17:46

All times are UTC. The time now is 05:58.


Thu Mar 30 05:58:01 UTC 2023 up 224 days, 3:26, 0 users, load averages: 0.57, 0.61, 0.66

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.

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