mersenneforum.org  

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

Reply
 
Thread Tools
Old 2011-05-25, 17:11   #1
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

947 Posts
Default Putting it all together?

Hello,

Christenson over in the Operation Billion Digits forum has intrigued me with the idea of getting a GPU to perform various GIMPS/OBD functions.

But in here I see threads with 939, 466, and 266 posts in them. I've spent an hour browsing through them, and the info is all over the place. Not surprising, really, since it seems to be a fast-developing area, but still intimidating if you're just starting to think about the concept.

Umm, is anybody (pretty please?) working on distilling the knowledge that's been accumulated on this subject, into some kind of manual? Ideally it would provide guidance on the "What" and the "How" of doing this:

1. Which graphics cards can be used (maybe as a range, if there are too many to list individually).
2. What kinds of PCs/CPUs can handle which relevant GPUs. (Especially for older systems.)
3. Which all programs are available to use, and on which OS's.
4. What types of GIMPS/OBD work can currently be performed.
5. When shopping, what to look for both in your PC and the prospective GPU so that you don't end up buying the wrong thing. (I'm thinking of technical factors that aren't self-evident to someone who's not an electrical engineer, such as amperage, "rails" and the like.) Maybe even guidelines for determining the most powerful graphics card someone can buy without having to perform major surgery such as changing the PSU.
6. How to load/install/use the software.
7. And so on. This isn't meant to be an exhaustive list!

I found this page http://mersennewiki.org/index.php/Mfaktc which is a start, but only that.

Motive: I read around here that GPUs can output several times the yield of even the fastest CPUs available today. Preparation of a manual like this -- where all the most current information is put together systematically -- would lower considerably the time investment needed to get into GPU computing, thus helping to advance GIMPS/OBD (and other computing projects here, sorry I don't know that much about you) by that much.

Or maybe the whole field is as yet too new and experimental, wild and woolly, to be susceptible to such systematization? That would be perfectly understandable.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2011-05-25, 22:22   #2
lavalamp
 
lavalamp's Avatar
 
Oct 2007
Manchester, UK

55F16 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
2. What kinds of PCs/CPUs can handle which relevant GPUs. (Especially for older systems.)
There are two types of expansion socket that can be used for graphics cards, AGP and PCIe. AGP is very old now and completely obsolete. If you have an AGP socket, don't even bother trying to get a graphics card for crunching.

Almost all PCIe graphics cards are 16x slot cards, this means you will either need a 16x physical slot to put it in, or an open ended slot so that the card can hang out the back of it. Most motherboards that use PCIe will have at least one 16x slot though.

There are several versions of PCIe, however any PCIe graphics card should work in any PCIe slot (so long as the card will physically fit into the slot).

GPGPU computing doesn't require a specific CPU to work, however some programs use the CPU and GPU to perform tasks, while some use only the GPU and barely touch the CPU. Depending on the application used, your mileage may vary.


Quote:
Originally Posted by Rodrigo View Post
5. When shopping, what to look for both in your PC and the prospective GPU so that you don't end up buying the wrong thing. (I'm thinking of technical factors that aren't self-evident to someone who's not an electrical engineer, such as amperage, "rails" and the like.) Maybe even guidelines for determining the most powerful graphics card someone can buy without having to perform major surgery such as changing the PSU.
The ATX specification currently allows for cards to draw no more than 75 W of power from the PCIe socket. This is fine for most things, but not graphics cards. So there are two types of PCIe power connector, the 6 pin and 8 pin connector.

If you are planning on getting a graphics card that requires either of these connectors, and many graphics cards require both, make sure your PSU has them, or that you at least get some converter cables.

Power supplies will sometimes say they have a 6+2 pin connector instead of an 8 pin connector, this is because it will have two detachable pins so that it can function as both a 6 pin and 8 pin connector, but not at the same time.

Do not confuse the PCIe 8 pin connector with the 8 pin CPU +12V connector, the latter is sometimes refered to as a 4+4 pin connector, for similar reasons as above. They are NOT interchangeable as they are keyed differently.

The 6 pin connector can supply up to 75 W of power, the 8 pin connector can supply up to 150 W of power. The ATX specification places a limit on the maximum power a single card can draw of 300 W but the recent top end dual GPU ATI cards (Radeon HD 6990) blow way past this limit and violate the ATX specification. More cards may continue this trend in future.

Other high end graphics cards can really push the 300 W limit when under load, and high end CPUs can hit 150 W with a little overclocking. This is before accounting for any other parts in the system. This means a high end system with a single graphics card can easily drink 500 W of juice under full load. If you plan to upgrade, you absolutely must make sure your PSU is capable of supplying the power needed, and ideally more so there's some overhead.

Generally speaking PSUs are most efficient when supplying around half their peak load, so if you build a system from scratch and you expect it to be drawing 400 - 500 W, getting a 1 kW PSU is not unreasonable. If you want to build a system with two high end GPUs in, then a 1 kW PSU should be the minimum. In some configurations you can have up to four GPUs in a single system, and in that situation you will need to think long and hard about how to power it all.

Remember though, not all graphics cards will draw 300 W, so do a little research on power draw before deciding what PSU to buy.
lavalamp is offline   Reply With Quote
Old 2011-05-26, 00:22   #3
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

34038 Posts
Default

I'm with rodrigo: we need a sticky on GPU computing with pointers to the latest codes (not just mfaktc, but also CUDAlucas), and a quick hardware guide with the basic pointers. I'd vote for something that works like the "Server Problems " thread, where the mods trim it every time the server gets itself fixed. 30+ pages on mfaktc, with the latest code 5-6 pages back, is a significant deterrent. Rodrigo doesn't need the discussion on implementation internals...

NVIDIA addresses the power limits by using multiple power connectors, probably a good idea anyway. ATI has always been a lot less friendly to programmers than NVIDIA; NVIDIA supports CUDA, and now OpenCL. ATI only supports OpenCL.

Finally, 500W (10 lightbulbs) all the time is definitely going to show up on your electric bill.

Current mfaktc does use the CPU quite a bit for sieving; you will need a whole core to do this if you have a top of the line GPU; someone on one of the threads has dissed this approach and said he's writing a GPU only version, but we haven't seen it.

Last fiddled with by Christenson on 2011-05-26 at 00:24
Christenson is offline   Reply With Quote
Old 2011-05-26, 08:34   #4
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

2E1616 Posts
Default

Quote:
Originally Posted by Christenson View Post
Current mfaktc does use the CPU quite a bit for sieving; you will need a whole core to do this if you have a top of the line GPU
I fi8nd I need two cores on a 3.8GHz AMD just to drive a GTX460, which is far from being a top of the line GPU. One code of a 2.5GHz Xeon is enough to drive a Tesla C1060.

Paul
xilman is offline   Reply With Quote
Old 2011-05-26, 10:30   #5
lavalamp
 
lavalamp's Avatar
 
Oct 2007
Manchester, UK

53·11 Posts
Default

Quote:
Originally Posted by Christenson View Post
NVIDIA supports CUDA, and now OpenCL. ATI only supports OpenCL.
Might want to check your facts here, ATI has Firestream.

I believe the first applications of GPGPU were with Firestream for the Folding @ Home project way back in 2006, but I could well be mistaken here.
lavalamp is offline   Reply With Quote
Old 2011-05-26, 11:51   #6
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

34038 Posts
Default

Quote:
Originally Posted by lavalamp View Post
Might want to check your facts here, ATI has Firestream.

I believe the first applications of GPGPU were with Firestream for the Folding @ Home project way back in 2006, but I could well be mistaken here.
Yup, but Firestream is significantly less popular than CUDA, with wider support. For example, it's not clear if I can run Firestream on *any* ATI/AMD Radeon GPU, and ATI drivers for *ix are slow to come compared to Windows.
Christenson is offline   Reply With Quote
Old 2011-05-26, 16:33   #7
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

947 Posts
Default

Quote:
Originally Posted by lavalamp View Post
Generally speaking PSUs are most efficient when supplying around half their peak load, so if you build a system from scratch and you expect it to be drawing 400 - 500 W, getting a 1 kW PSU is not unreasonable.
lavalamp,

Thanks for the entire rundown, it was VERY informative (like the snip above) and cleared up a number of issues. I can use this as a guide as I look into what cards my PCs could take.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2011-05-26, 17:08   #8
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

947 Posts
Default

Quote:
Originally Posted by Christenson View Post
NVIDIA addresses the power limits by using multiple power connectors, probably a good idea anyway. ATI has always been a lot less friendly to programmers than NVIDIA; NVIDIA supports CUDA, and now OpenCL. ATI only supports OpenCL.

Finally, 500W (10 lightbulbs) all the time is definitely going to show up on your electric bill.

Current mfaktc does use the CPU quite a bit for sieving; you will need a whole core to do this if you have a top of the line GPU; someone on one of the threads has dissed this approach and said he's writing a GPU only version, but we haven't seen it.
Christenson,

Thanks for the additional details. I'd read somewhere around here that one should look to get an NVIDIA card to do this sort of thing.

I'll keep an eye on this thread and check out the other ones... starting with the short threads.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2011-05-26, 18:48   #9
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

331 Posts
Default Hope that helps

This is my private personal tiny one sheet reference. Thread's essence.
Attached Files
File Type: pdf GIMPS_GPU_Computing_Guide.pdf (147.0 KB, 473 views)
Brain is offline   Reply With Quote
Old 2011-05-26, 19:06   #10
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

947 Posts
Default

Quote:
Originally Posted by Brain View Post
This is my private personal tiny one sheet reference. Thread's essence.
This is a big piece of the puzzle, thank you! Links and everything. I'm saving this page and printing it out.

One quick question. (I haven't gotten deep enough into the threads yet.) Under mfaktc where it refers to "Compute Capability Needed" being 1.0, 1.1, or 1.2 -- what is that?

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2011-05-26, 20:09   #11
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

1010010112 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
One quick question. (I haven't gotten deep enough into the threads yet.) Under mfaktc where it refers to "Compute Capability Needed" being 1.0, 1.1, or 1.2 -- what is that?

Rodrigo
Compute capability table (version of CUDA supported): http://en.wikipedia.org/wiki/CUDA#Supported_GPUs
Brain is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Putting more than one computer in a pine box fivemack Hardware 9 2012-08-22 19:47
Putting prime 95 on a large number of machines moo Software 10 2004-12-15 13:25

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


Fri Jul 7 15:15:24 UTC 2023 up 323 days, 12:43, 0 users, load averages: 1.13, 1.23, 1.16

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.

โ‰  ยฑ โˆ“ รท ร— ยท โˆ’ โˆš โ€ฐ โŠ— โŠ• โŠ– โŠ˜ โŠ™ โ‰ค โ‰ฅ โ‰ฆ โ‰ง โ‰จ โ‰ฉ โ‰บ โ‰ป โ‰ผ โ‰ฝ โŠ โА โŠ‘ โŠ’ ยฒ ยณ ยฐ
โˆ  โˆŸ ยฐ โ‰… ~ โ€– โŸ‚ โซ›
โ‰ก โ‰œ โ‰ˆ โˆ โˆž โ‰ช โ‰ซ โŒŠโŒ‹ โŒˆโŒ‰ โˆ˜ โˆ โˆ โˆ‘ โˆง โˆจ โˆฉ โˆช โจ€ โŠ• โŠ— ๐–• ๐–– ๐–— โŠฒ โŠณ
โˆ… โˆ– โˆ โ†ฆ โ†ฃ โˆฉ โˆช โІ โŠ‚ โŠ„ โŠŠ โЇ โŠƒ โŠ… โŠ‹ โŠ– โˆˆ โˆ‰ โˆ‹ โˆŒ โ„• โ„ค โ„š โ„ โ„‚ โ„ต โ„ถ โ„ท โ„ธ ๐“Ÿ
ยฌ โˆจ โˆง โŠ• โ†’ โ† โ‡’ โ‡ โ‡” โˆ€ โˆƒ โˆ„ โˆด โˆต โŠค โŠฅ โŠข โŠจ โซค โŠฃ โ€ฆ โ‹ฏ โ‹ฎ โ‹ฐ โ‹ฑ
โˆซ โˆฌ โˆญ โˆฎ โˆฏ โˆฐ โˆ‡ โˆ† ฮด โˆ‚ โ„ฑ โ„’ โ„“
๐›ข๐›ผ ๐›ฃ๐›ฝ ๐›ค๐›พ ๐›ฅ๐›ฟ ๐›ฆ๐œ€๐œ– ๐›ง๐œ ๐›จ๐œ‚ ๐›ฉ๐œƒ๐œ— ๐›ช๐œ„ ๐›ซ๐œ… ๐›ฌ๐œ† ๐›ญ๐œ‡ ๐›ฎ๐œˆ ๐›ฏ๐œ‰ ๐›ฐ๐œŠ ๐›ฑ๐œ‹ ๐›ฒ๐œŒ ๐›ด๐œŽ๐œ ๐›ต๐œ ๐›ถ๐œ ๐›ท๐œ™๐œ‘ ๐›ธ๐œ’ ๐›น๐œ“ ๐›บ๐œ”