mersenneforum.org  

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

Reply
 
Thread Tools
Old 2011-08-14, 21:05   #1167
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

179510 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Two questions: is there any work to getting mfaktc CPU independent?

And two, more complicated: I have 4 cores, 8 threads. I have 3 P95 workers running on two threads apiece, occupying logical CPU's 3-8. I had the last worker running only on logical CPU 1, leaving 2 empty for mfaktc. When I started mfaktc, it started taking cycles from all of the other CPU's, affecting their performance and not making use of logical thread 2. Is there anyway to set mfaktc onto one particular core/thread?
Right now, making mfaktc more CPU-independent by doing sieving on the card is on my wish list. It's taking me longer than I would like to make mfaktc talk to primenet, so I'll be happy if someone comes along and scoops me (does the job first). Oliver might do the job, too, so check with him.

Second, from the standpoint of either Windows or Linux, mfaktc is "just a program", not really using threads. If you want to lock it to a particular CPU core, ask your OS to do that. If you want to set its priority, ask your OS to do that. I think it's part of task manager in Windows.

Oh, and I'm pretty sure that it is not effective to try to use more logical cores than you have physical cores -- you just waste less time in context switching than if you ran twice as many threads as you had CPU -- but you still pay for the context switches.
Christenson is offline   Reply With Quote
Old 2011-08-14, 22:33   #1168
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

350410 Posts
Default

Quote:
Originally Posted by Christenson View Post
If you want to lock it to a particular CPU core, ask your OS to do that. If you want to set its priority, ask your OS to do that. I think it's part of task manager in Windows.
It is. Processes tab, right-click on mfaktc.exe and choose either "Set Priority" or "Set Affinity..." as appropriate.
James Heinrich is offline   Reply With Quote
Old 2011-08-15, 10:31   #1169
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

3·1,609 Posts
Default

Quote:
Originally Posted by frmky View Post
You can use CUDA 4.0 on your GTX 275, you just can't take advantage of the fancy new features that require CC 2.x. I'm stuck in the same boat with the Tesla S1070.

But yes, the 4.0 driver will run code compiled with 3.x.
Thank you very much!

Luigi
ET_ is offline   Reply With Quote
Old 2011-08-19, 17:27   #1170
MrHappy
 
MrHappy's Avatar
 
Dec 2003
Paisley Park & Neverland

5×37 Posts
Default

What does "avg. wait" mean? I get values from ca. 100 to ca. 3000 alternating... and 60M/s on my GT555M.
MrHappy is offline   Reply With Quote
Old 2011-08-19, 17:41   #1171
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

331 Posts
Default

Quote:
Originally Posted by MrHappy View Post
What does "avg. wait" mean? I get values from ca. 100 to ca. 3000 alternating... and 60M/s on my GT555M.
CPU average waiting time for GPU "hunger" (sieving part done in CPU). Values < 100 indicate process is CPU limited, values > 1000 indicate GPU being saturated.
Brain is offline   Reply With Quote
Old 2011-08-22, 17:17   #1172
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

1095610 Posts
Thumbs up

Quote:
Originally Posted by xilman View Post
Miserable failure here
Success.

The 280 series driver turned up and installed fine. Most of the SDK built and run once the gcc version check had been disabled. The only thing missing are the graphical demos and that only because I haven't installed the GL libraries yet.

Thanks, everyone, for your help and/or encouragement.

Paul
xilman is offline   Reply With Quote
Old 2011-09-01, 16:03   #1173
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
It is. Processes tab, right-click on mfaktc.exe and choose either "Set Priority" or "Set Affinity..." as appropriate.
Thanks, I'll give it a shot next time I'm in Windows. Now, on to the next problem: I can't compile the source in Linux, as detailed above; it doesn't support my newer GCC version. I removed the line that checks the GCC version, and then it compiled, but didn't run anyways. Can somebody zip up a working Linux64 executable for me? (Or anybody else either having compiling problems or not technical enough to try.)
Dubslow is offline   Reply With Quote
Old 2011-09-02, 09:20   #1174
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

111110 Posts
Default

Hi!

Quote:
Originally Posted by Dubslow View Post
Now, on to the next problem: I can't compile the source in Linux, as detailed above; it doesn't support my newer GCC version. I removed the line that checks the GCC version, and then it compiled, but didn't run anyways. Can somebody zip up a working Linux64 executable for me? (Or anybody else either having compiling problems or not technical enough to try.)
can you describe the problem? "didn't run anyways" doesn't help.
I uncommented the version check once on a openSUSE 11.4 with CUDA 4.0 and it seems to work fine for mfaktc.
Anyway I'll try to provide a Linux64 binary later.

Oliver
TheJudger is offline   Reply With Quote
Old 2011-09-02, 19:45   #1175
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

11×101 Posts
Default

Hi,

you can find a Linux x86-64 binary here: http://www.mersenneforum.org/mfaktc/...linux64.tar.gz
let me know if this works. If it tells you that it can't find libcudart.so.3 you can try to run 'LD_LIBRARY_PATH=./lib ./mfaktc.exe'.

Oliver

Last fiddled with by TheJudger on 2011-09-02 at 19:45
TheJudger is offline   Reply With Quote
Old 2011-09-06, 22:38   #1176
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Cool, thanks. Do you have any idea how to get one worker thread to stop in Linux? It was in the GUI in Windows, but I can't find it anywhere in the -m menu.
Dubslow is offline   Reply With Quote
Old 2011-09-06, 22:47   #1177
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

11100001101012 Posts
Default

Hmm. It runs fine except that it throws errors reading the worktodo.txt file. I'm using the same file as in Windows, and it has the right number of lines, so I know it's reading the same file, but I can't tell why it won't work. The file looks just fine in gedit. It says WARNING: ignoring line () Reason: invalid data

Last fiddled with by Dubslow on 2011-09-06 at 22:49
Dubslow is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
mfakto: an OpenCL program for Mersenne prefactoring Bdot GPU Computing 1680 2021-09-13 17:01
The P-1 factoring CUDA program firejuggler GPU Computing 753 2020-12-12 18:07
gr-mfaktc: a CUDA program for generalized repunits prefactoring MrRepunit GPU Computing 32 2020-11-11 19:56
mfaktc 0.21 - CUDA runtime wrong keisentraut Software 2 2020-08-18 07:03
World's second-dumbest CUDA program fivemack Programming 112 2015-02-12 22:51

All times are UTC. The time now is 00:00.


Sat Oct 23 00:00:38 UTC 2021 up 91 days, 18:29, 0 users, load averages: 1.26, 1.72, 1.86

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