mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2013-09-16, 09:26   #1
fairsky
 
Sep 2013

41 Posts
Default mfaktc (0.20)

Hi,
I downloaded its executable, but I got error msg:
Quote:
./mfaktc.exe: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./mfaktc.exe)
Then I think I need to compile it from source. But anyone compiled mfaktc 0.20 successfully?

I tried to compile it, but I also got wrong:
Quote:
gcc -Wall -Wextra -O2 -I/usr/local/cuda/include/ -malign-double -funroll-all-loops -c sieve.c -o sieve.o
sieve.c: In function ‘sieve_init_class’:
sieve.c:224: warning: comparison between signed and unsigned integer expressions
sieve.c: In function ‘sieve_candidates’:
sieve.c:376: warning: comparison between signed and unsigned integer expressions
gcc -Wall -Wextra -O2 -I/usr/local/cuda/include/ -malign-double -c timer.c -o timer.o
gcc -Wall -Wextra -O2 -I/usr/local/cuda/include/ -malign-double -c parse.c -o parse.o
gcc -Wall -Wextra -O2 -I/usr/local/cuda/include/ -malign-double -c read_config.c -o read_config.o
read_config.c:22:26: error: cuda_runtime.h: No such file or directory
In file included from read_config.c:25:
my_types.h:70: error: expected specifier-qualifier-list before ‘cudaStream_t’
read_config.c: In function ‘read_config’:
read_config.c:82: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:102: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:103: error: ‘mystuff_t’ has no member named ‘sieve_primes’
read_config.c:117: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:118: error: ‘mystuff_t’ has no member named ‘sieve_primes_adjust’
read_config.c:129: error: ‘mystuff_t’ has no member named ‘sieve_primes’
read_config.c:135: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:136: error: ‘mystuff_t’ has no member named ‘sieve_primes_min’
read_config.c:147: error: ‘mystuff_t’ has no member named ‘sieve_primes’
read_config.c:153: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:154: error: ‘mystuff_t’ has no member named ‘sieve_primes_max’
read_config.c:176: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:177: error: ‘mystuff_t’ has no member named ‘num_streams’
read_config.c:199: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:200: error: ‘mystuff_t’ has no member named ‘cpu_streams’
read_config.c:222: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:223: error: ‘mystuff_t’ has no member named ‘threads_per_grid_max’
read_config.c:224: error: ‘mystuff_t’ has no member named ‘threads_per_grid_max’
read_config.c:225: error: ‘mystuff_t’ has no member named ‘threads_per_grid_max’
read_config.c:226: error: ‘mystuff_t’ has no member named ‘threads_per_grid_max’
read_config.c:243: error: ‘mystuff_t’ has no member named ‘gpu_sieving’
read_config.c:245: error: ‘mystuff_t’ has no member named ‘gpu_sieving’
read_config.c:247: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:269: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:270: error: ‘mystuff_t’ has no member named ‘gpu_sieve_primes’
read_config.c:292: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:293: error: ‘mystuff_t’ has no member named ‘gpu_sieve_size’
read_config.c:321: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:322: error: ‘mystuff_t’ has no member named ‘gpu_sieve_processing_size’
read_config.c:326: error: ‘mystuff_t’ has no member named ‘workfile’
read_config.c:328: error: ‘mystuff_t’ has no member named ‘workfile’
read_config.c:329: error: ‘mystuff_t’ has no member named ‘workfile’
read_config.c:331: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:331: error: ‘mystuff_t’ has no member named ‘workfile’
read_config.c:345: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:350: error: ‘mystuff_t’ has no member named ‘checkpoints’
read_config.c:369: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:370: error: ‘mystuff_t’ has no member named ‘checkpointdelay’
read_config.c:384: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:389: error: ‘mystuff_t’ has no member named ‘stages’
read_config.c:403: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:409: error: ‘mystuff_t’ has no member named ‘stopafterfactor’
read_config.c:423: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:428: error: ‘mystuff_t’ has no member named ‘printmode’
read_config.c:432: error: ‘mystuff_t’ has no member named ‘V5UserID’
read_config.c:435: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:436: error: ‘mystuff_t’ has no member named ‘V5UserID’
read_config.c:440: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:440: error: ‘mystuff_t’ has no member named ‘V5UserID’
read_config.c:445: error: ‘mystuff_t’ has no member named ‘ComputerID’
read_config.c:448: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:449: error: ‘mystuff_t’ has no member named ‘ComputerID’
read_config.c:453: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:453: error: ‘mystuff_t’ has no member named ‘ComputerID’
read_config.c:458: error: ‘mystuff_t’ has no member named ‘stats’
read_config.c:459: error: ‘mystuff_t’ has no member named ‘stats’
read_config.c:462: error: ‘mystuff_t’ has no member named ‘stats’
read_config.c:465: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:465: error: ‘mystuff_t’ has no member named ‘stats’
read_config.c:469: error: ‘mystuff_t’ has no member named ‘stats’
read_config.c:470: error: ‘mystuff_t’ has no member named ‘stats’
read_config.c:473: error: ‘mystuff_t’ has no member named ‘stats’
read_config.c:476: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:476: error: ‘mystuff_t’ has no member named ‘stats’
read_config.c:490: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:495: error: ‘mystuff_t’ has no member named ‘allowsleep’
read_config.c:509: error: ‘mystuff_t’ has no member named ‘verbosity’
read_config.c:514: error: ‘mystuff_t’ has no member named ‘print_timestamp’
make: *** [read_config.o] Error 1


Also, my another question on multi-gpu support!
I have 3 gpu units (in 2 cards), how can I run one single job on 3 gpus (this is a cross gpu work!!!!, so dont tell me the readme file or Q/A has given the answer. If I understood this file correctly, it ONLY tells us that each gpu works for a single job, NOT my concern here).
fairsky is offline   Reply With Quote
Old 2013-09-16, 09:47   #2
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

2×3×5×37 Posts
Default

Quote:
Originally Posted by fairsky View Post
Then I think I need to compile it from source. But anyone compiled mfaktc 0.20 successfully?
Yes, I did!

Quote:
Originally Posted by fairsky View Post
I tried to compile it, but I also got wrong:
Code:
[...]
read_config.c:22:26: error: cuda_runtime.h: No such file or directory
[...]
CUDA toolkit installed (and added to environment)?

Quote:
Originally Posted by fairsky View Post
Also, my another question on multi-gpu support!
I have 3 gpu units (in 2 cards), how can I run one single job on 3 gpus (this is a cross gpu work!!!!, so dont tell me the readme file or Q/A has given the answer. If I understood this file correctly, it ONLY tells us that each gpu works for a single job, NOT my concern here).
You'll need to patch the code (add multi GPU support), currently this is NOT POSSIBLE (as written in README.txt). And there are no plans to add support for this.

Oliver

Last fiddled with by TheJudger on 2013-09-16 at 09:48
TheJudger is offline   Reply With Quote
Old 2013-09-16, 10:00   #3
fairsky
 
Sep 2013

41 Posts
Default

Quote:
Originally Posted by TheJudger View Post
Yes, I did!


CUDA toolkit installed (and added to environment)?
Oh, thank you. I think had blind eyes..
But I loaded my cuda4.2
Well, I will double check the file you pointed out.

Quote:
You'll need to patch the code (add multi GPU support), currently this is NOT POSSIBLE (as written in README.txt). And there are no plans to add support for this.

Oliver
well, i just read the doc from nvidia, but I am not sure how can i patch it.
(i just noticed the stream mechanism there....)
fairsky is offline   Reply With Quote
Old 2013-09-16, 10:13   #4
fairsky
 
Sep 2013

41 Posts
Default

wow...I checked the Makefile.
Then user who wants to compile it should modify the dir for cuda installed.

So, now it is done with cuda 4.2.9.

thanks oliver for pointing out my mistake.
fairsky is offline   Reply With Quote
Old 2013-09-16, 10:42   #5
fairsky
 
Sep 2013

41 Posts
Default

Quote:
Originally Posted by fairsky View Post
wow...I checked the Makefile.
Then user who wants to compile it should modify the dir for cuda installed.

So, now it is done with cuda 4.2.9.

thanks oliver for pointing out my mistake.
Ohhhh my dear.....
I should have started using mfaktc month before.
I found now mfaktc reduces time largely.
mprime will complete a 320M TF job within one (and more) month with one cpu/thread, about 16days within 8threads, but mfaktc will do it within just 2hrs10mins......

(sorry, my job is 32x,xxx,xxx 75,76).

Last fiddled with by fairsky on 2013-09-16 at 10:57
fairsky is offline   Reply With Quote
Old 2013-09-16, 16:27   #6
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

21268 Posts
Default

Quote:
Originally Posted by fairsky View Post
well, i just read the doc from nvidia, but I am not sure how can i patch it.
(i just noticed the stream mechanism there....)
Take this more as a joke. Won't be an trivial task (but it is possible, I just don't see the need to do so).

Quote:
Originally Posted by fairsky View Post
Ohhhh my dear.....
I should have started using mfaktc month before.
I found now mfaktc reduces time largely.
mprime will complete a 320M TF job within one (and more) month with one cpu/thread, about 16days within 8threads, but mfaktc will do it within just 2hrs10mins......

(sorry, my job is 32x,xxx,xxx 75,76).
Yes, currently TF on CPU is obsolete in most cases.

Oliver
TheJudger is offline   Reply With Quote
Old 2013-09-17, 04:40   #7
TheMawn
 
TheMawn's Avatar
 
May 2013
East. Always East.

11×157 Posts
Default

Compared to the hassle of adding multiple GPU support, it is so ridiculously easy to set up multiple instances of the program. SLI or CFX would only be good for trying to do ONE exponent two or three or four times faster, but they're so fast anyway for probably 99.9999% of the work we actually do that there's no reason for it. There is interest in maybe three or four specific exponents that are having massive TF work done on them, but for the rest, nobody cares if they have to get three exponents after three weeks versus one after one week.

I use a simple one-line batch file.

Quote:
start E:\...\mfaktc.exe -d 0
You can add some bells and whistles for more functionality, like the speed controller batch file http://mersenneforum.org/misfit/downloads/other/

I added -d 1 to the line

Quote:
set MF=MFAKTC.EXE -d 1
And that's all I need. In these cases, the 0 and 1 refer to the GPU slot values, so you will likely use 0 1 and 2 for a three-way GPU setup.

You'll have to ask someone here with actual SLI experience to hash out the finer details (i.e. does this still work if the GPU's are bridged and already set up in SLI or CFX?)
TheMawn is offline   Reply With Quote
Old 2013-09-17, 04:51   #8
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2·5,059 Posts
Default

AFAIK, SLI is not supported in any case. All the talk I remember centered around disabling it, even on GTX x90 boards. Let LaurV weigh in on this to be sure, but the chips have to be addressed separately.

Last fiddled with by kladner on 2013-09-17 at 04:53
kladner is offline   Reply With Quote
Old 2013-09-17, 12:56   #9
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

8,963 Posts
Default

Right, if you don't game, and I mean big game, like crisis or so, then SLI is completely unuseful, and it actually makes things slower (communication between cards over the SLI cable). Some "folders" claim benefits from SLI, but honestly, I do better for folding if I try two proteins in the same time with separate cards (I didn't do that for ages, there might be changes, but at the time I tried, I did not see any, I mean ANY, benefits of SLI. Even AutoCad, it is so fast with a single 580, that you won't need two, and other design programs like Altium Protel, OrCad, SolidWorks, they can't take fully advantage of SLI yet (bad/old drivers, AutoDesk is the most advanced in this direction).

For mfaktc, especially, there are no advantages. If you use 0.20, with GPU sieving, then one instance per card is enough to max it. If you use older versions, or use CPU sieving, then you may need more instances per card, for example if you have 3 cores free on your CPU, then you launch 3 instances of mfaktc with CPU sieving, and you will get some more speed, but at the penalty that the CPU cores are locked there, i.e. you can't use them to do P95 LL or P-1 work. I like mfaktc with GPU sieving, one instance per card, it has the merit that lets the CPU free for other tasks, and being only a single instance per card, does not require much maintenance (as opposite to older version of mfaktc, where you had to feed 8 or 12 instances, in different folders, etc). You guys, the newcomers, are spoiled with the new mfaktc, MISFIT, and other utilities which make your life easier. (and I use them too, and I am happy with them, but years ago, the life was much harder, hehe).

Last fiddled with by LaurV on 2013-09-17 at 12:59 Reason: /s/mfactk/mfaktc
LaurV is offline   Reply With Quote
Old 2013-09-24, 12:58   #10
Karl M Johnson
 
Karl M Johnson's Avatar
 
Mar 2010

1100110112 Posts
Default

Multi-gpu support may be required when having multiple gpus becomes mainstream.
That is not going to happen within a couple of years, as transistor miniaturization requires more and more investment.
Also, trial factoring a single exponent at a very high bit level may benefit from a bunch of gpus (but that needs to be justified versus a LL test).

So, fairsky, as you can see, a script that distributes the workload across N mfaktc instances is a an easier and a faster solution.
Karl M Johnson is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
MFAKTC wont run on a GTX 980 Peter GPU Computing 19 2014-10-19 15:26
mfaktc not starting in Mac OSX bayanne GPU Computing 0 2014-05-10 14:38
mfaktc on a Mac bayanne GPU Computing 0 2013-10-18 09:59
mfaktc hanging ?! NormanRKN GPU Computing 24 2012-07-29 15:25
mfaktc tichy GPU Computing 4 2010-12-03 21:51

All times are UTC. The time now is 03:19.

Sat Dec 5 03:19:20 UTC 2020 up 1 day, 23:30, 0 users, load averages: 1.83, 1.77, 1.64

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.