![]() |
Compiling mfaktc on Mac OS X
1 Attachment(s)
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. [B]Step 1:[/B] Install the Mac CUDA Toolkit from NVIDIA: [URL]https://developer.nvidia.com/cuda-downloads[/URL] [B]Step 2:[/B] Get the source code to mfaktc-0.20 here: [URL]http://www.mersenneforum.org/mfaktc/mfaktc-0.20/mfaktc-0.20.tar.gz[/URL] [B]Step 3:[/B] 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[/CODE]Step 4: Replace the Makefile in the mfaktc-0.20/src with the Makefile.macosx.txt attached here [B]Step 5:[/B] Compile mfaktc [B]Step 6:[/B] 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. |
Welcome!
And a big thumb up! :tu: (in spite of the fact that I am not a mac user) Kotgw! |
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 |
[QUOTE=bayanne;353550]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[/QUOTE] 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. |
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 :smile: |
[QUOTE=bayanne;353571]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 :smile:[/QUOTE] 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 |
[QUOTE=bayanne;353591]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[/QUOTE]
Nope |
The source code is only 178 kb which seems very small, considering those for Linux and Windows versions ...
|
Bayanne, what errors are you getting?
|
[QUOTE=dozba;353934]Bayanne, what errors are you getting?[/QUOTE]
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 ... |
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 |
| All times are UTC. The time now is 13:04. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.