mersenneforum.org  

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

Reply
 
Thread Tools
Old 2013-09-01, 21:46   #1
dozba
 
"Ted Dziuba"
Sep 2013
San Francisco, CA

102 Posts
Default Compiling mfaktc on Mac OS X

I managed to get mfaktc 0.20 compiled and running on Mac OS X 10.8.4.

I've attached the relevant Makefile for other Mac users.

Step 1: Install the Mac CUDA Toolkit from NVIDIA: https://developer.nvidia.com/cuda-downloads

Step 2: Get the source code to mfaktc-0.20 here: http://www.mersenneforum.org/mfaktc/...tc-0.20.tar.gz


Step 3: Set a couple of environment variables:

Code:
export PATH=/Developer/NVIDIA/CUDA-5.5/bin:$PATH
export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-5.5/lib:$DYLD_LIBRARY_PATH
Step 4: Replace the Makefile in the mfaktc-0.20/src with the Makefile.macosx.txt attached here

Step 5: Compile mfaktc

Step 6: Run the mfaktc self-tests (they should all pass, at least they do on my iMac), then get factoring!



My iMac is now GPU272ing all day long. It's got a built-in GeForce GTX 680MX that can crunch 200 GHz-days/day, so I checked M63475199 from 2^73 to 2^74 in 3.5 hours.
Attached Files
File Type: txt Makefile.macosx.txt (3.2 KB, 295 views)
dozba is offline   Reply With Quote
Old 2013-09-02, 09:58   #2
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

2×11×397 Posts
Default

Welcome!
And a big thumb up! (in spite of the fact that I am not a mac user)
Kotgw!
LaurV is offline   Reply With Quote
Old 2013-09-20, 10:27   #3
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

311 Posts
Default Help please

How easy is it to run trial factoring just on the GPU on my Mac, but not be running P95 on any of the cpu cores?

How would you initiate the factoring to take place?
I am presuming in Terminal

Thanks
bayanne is offline   Reply With Quote
Old 2013-09-20, 11:40   #4
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

97·103 Posts
Default

Quote:
Originally Posted by bayanne View Post
How easy is it to run trial factoring just on the GPU on my Mac, but not be running P95 on any of the cpu cores?

How would you initiate the factoring to take place?
I am presuming in Terminal

Thanks
mfaktc and P95 are independent programs. Either can be run without the other.

mfaktc is a command line program in Widows and Linux, so I imagine the same would be true in OSX.
kladner is offline   Reply With Quote
Old 2013-09-20, 11:43   #5
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

1001101112 Posts
Default

Thanks

I did just try compiling mfaktc but failed miserably.
I really need a refresher on how to do it, so hopefully there will be a Mac user able to assist
bayanne is offline   Reply With Quote
Old 2013-09-20, 14:51   #6
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

311 Posts
Default

Quote:
Originally Posted by bayanne View Post
Thanks

I did just try compiling mfaktc but failed miserably.
I really need a refresher on how to do it, so hopefully there will be a Mac user able to assist
I've just realised that I may not have the latest version of Xcode, so I am downloading it now to see if that helps
bayanne is offline   Reply With Quote
Old 2013-09-20, 17:53   #7
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

311 Posts
Default

Quote:
Originally Posted by bayanne View Post
I've just realised that I may not have the latest version of Xcode, so I am downloading it now to see if that helps
Nope
bayanne is offline   Reply With Quote
Old 2013-09-21, 10:44   #8
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

311 Posts
Default

The source code is only 178 kb which seems very small, considering those for Linux and Windows versions ...

Last fiddled with by bayanne on 2013-09-21 at 10:45
bayanne is offline   Reply With Quote
Old 2013-09-24, 02:17   #9
dozba
 
"Ted Dziuba"
Sep 2013
San Francisco, CA

2 Posts
Default

Bayanne, what errors are you getting?
dozba is offline   Reply With Quote
Old 2013-09-24, 05:52   #10
bayanne
 
bayanne's Avatar
 
"Tony Gott"
Aug 2002
Yell, Shetland, UK

311 Posts
Default

Quote:
Originally Posted by dozba View Post
Bayanne, what errors are you getting?
I have cd into src in mfaktc-0.20 folder
Then when I try to Make I just getting the following, having tried a number of different commands:

Bilbo:src tony$ ./make
-bash: ./make: No such file or directory
Bilbo:src tony$ Makefile.macosx
-bash: Makefile.macosx: command not found
Bilbo:src tony$ Make Makefile.macosx
-bash: Make: command not found

As I said not sure what to do for sure ...
bayanne is offline   Reply With Quote
Old 2013-09-24, 15:40   #11
chris2be8
 
chris2be8's Avatar
 
Sep 2009

35428 Posts
Default

Try cd'ing into the directory and typing "make" (without the quotes). UNIX is case sensitive so make and Make are different commands.

Also try ls which will list the files in the directory, there should be one called Makefile.

I don't have a Mac so I'm just guessing it's similar to other UNIX systems. But I hope this helps.

Chris
chris2be8 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling GMP-ECM ATH GMP-ECM 69 2017-01-04 12:03
mfaktc on a Mac bayanne GPU Computing 0 2013-10-18 09:59
mfaktc (0.20) fairsky Software 9 2013-09-24 12:58
mfaktc tichy GPU Computing 4 2010-12-03 21:51
Compiling 24.14 CBoland Software 6 2007-08-01 00:11

All times are UTC. The time now is 07:25.

Mon Sep 21 07:25:29 UTC 2020 up 11 days, 4:36, 0 users, load averages: 1.55, 1.64, 1.55

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.