mersenneforum.org  

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

Reply
 
Thread Tools
Old 2016-04-04, 16:44   #1
David C Mackay
 
Jan 2016

2 Posts
Default Mac OSX, GPU/CUDA Usage

I have tried going via FAQs for help here but got swamped by Windows solutions. Can anyone tell me whether or not I can boost my Prime95 efforts by exploiting the NVIDIA GeForce GT750M card on my MacBook Pro? I do have some CUDA bits and pieces installed to support an application called Mathematica.
David C Mackay is offline   Reply With Quote
Old 2016-04-04, 17:54   #2
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

11100110001002 Posts
Default

You cannot speed up prime95 with the GPU.

You could run mfaktc to do trial factoring, but I believe that will cause prime95 to slow down as the OS clocks the CPU down to keep power usage under the Apple-approved value.
Prime95 is offline   Reply With Quote
Old 2016-04-04, 18:06   #3
David C Mackay
 
Jan 2016

2 Posts
Default

Many thanks for the prompt response. I shall just let the CPU cores do their best.
David C Mackay is offline   Reply With Quote
Old 2016-04-04, 19:22   #4
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

22×7×263 Posts
Default

Did you look in the preferences dialog box. There is an OS X specific option you can set.
Prime95 is offline   Reply With Quote
Old 2016-04-04, 21:09   #5
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2·7·757 Posts
Default

Quote:
Originally Posted by Prime95 View Post
You cannot speed up prime95 with the GPU.
True.

You can, however, use the GPU to speed up other factoring work. In the past I've successfully used my MacBook with GMP-ECM and polynomial finding with msieve.

If you're interested in non-Mersenne work a number of people will willingly help you.


Paul
xilman is offline   Reply With Quote
Old 2016-05-09, 10:52   #6
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

11×29 Posts
Default

I was running mfaktc on my MacPro for awhile, and then changed to an iMac, and have started running it again.
I obtained a compiled copy of mfaktc from another contributer, who I don't think is crunching Prime95 at the moment.
It of course only does trail-factoring ...

Last fiddled with by bayanne on 2016-05-09 at 10:52
bayanne is offline   Reply With Quote
Old 2016-05-09, 10:55   #7
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

11×29 Posts
Default

I am running it with NVIDIA Web Driver: 346.03.06f01 with MAC OSX El Capitan

Last fiddled with by bayanne on 2016-05-09 at 10:56
bayanne is offline   Reply With Quote
Old 2016-05-11, 06:13   #8
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

11·29 Posts
Default

I have been trying to get mfaktc-0.21 compiled but without success. I have CUDA 7.5 downloaded, but when I run gcc mfaktc.c it cannot find cuda.h which I know is in the CUDA 7.5 directory.

Can anyone with compiling skills on a Mac help me out?
bayanne is offline   Reply With Quote
Old 2016-05-11, 09:19   #9
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

245468 Posts
Default

Quote:
Originally Posted by bayanne View Post
I have been trying to get mfaktc-0.21 compiled but without success. I have CUDA 7.5 downloaded, but when I run gcc mfaktc.c it cannot find cuda.h which I know is in the CUDA 7.5 directory.

Can anyone with compiling skills on a Mac help me out?
I need to fire up the Mac and see how the latest Xcode works first. Not used CUDA for Mac in a few years. Guess is that a -I somewhere should do it. If all fails, try #include "/explicit/path/to/cuda.h" change to the src.
xilman is offline   Reply With Quote
Old 2016-05-11, 09:52   #10
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

11·29 Posts
Default

I have used the following:

export PATH=/Developer/NVIDIA/CUDA-7.5/bin:$PATH
export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-7.5/lib:$DYLD_LIBRARY_PATH

This works fine with mfaktc-0.20 and specifying CUDA-5.5, but the file cuda.h (if that is what I should be referencing) is in /Developer/NVIDIA/CUDA-7.5/include rather than /bin

What is actually being said in that export statement and what should I be saying to compile mfaktc - hopefully
bayanne is offline   Reply With Quote
Old 2016-05-11, 18:08   #11
diep
 
diep's Avatar
 
Sep 2006
The Netherlands

26×11 Posts
Default

Quote:
Originally Posted by David C Mackay View Post
I have tried going via FAQs for help here but got swamped by Windows solutions. Can anyone tell me whether or not I can boost my Prime95 efforts by exploiting the NVIDIA GeForce GT750M card on my MacBook Pro? I do have some CUDA bits and pieces installed to support an application called Mathematica.
hi David!

the macbookpro (17'') here basically overheats if it's eating more than 50 watt roughly. It's simply melting things underneath it. That happens when the cpu cores are at full load and the gpu isn't yet.

The GPU under full load will add another 40 watt to that so it's crucial to keep the CPU cores idle while running the CUDA cores at full throttle otherwise you'll melt a hole in the table.

I tried additional cooling here for the macbookpro, as the 2 delta fans even at full throttle making stupid high noise, can't remove enough watts. Underneath it i put copper heatsinks against the hot bottom of the laptop and active cooling. That removes a little yet not enough.

As a result, i do not crunch on the laptop.

p.s. the maximum i could achieve with that additional cooling on the bottom of the laptop was with 1 core busy running HD video. So the GPU must've eaten a watt or 25-30 or so then. Temperature then would be nearby 90C.

The lithium ion battery would be removed in such occasion - as even despite that i'm busy with my 4th laptop battery.

Last fiddled with by diep on 2016-05-11 at 18:11
diep is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Low CPU/GPU usage? GeoffreyY Msieve 23 2017-02-17 18:01
yafu.pl Usage Currently EdH FactorDB 37 2016-09-11 18:37
GPU Usage Brain GPU Computing 9 2011-04-12 22:25
Usage of GMP-ECM ECMFreak Factoring 13 2007-07-20 17:34
CPU usage Unregistered Software 6 2003-11-19 07:05

All times are UTC. The time now is 01:10.

Tue Mar 9 01:10:14 UTC 2021 up 95 days, 21:21, 0 users, load averages: 1.91, 2.12, 2.17

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.