detailed mumax3 installation guide for non-experts with mac

392 views
Skip to first unread message

Emrah Turgut

unread,
Nov 12, 2015, 12:29:56 PM11/12/15
to mumax2
Hello, 

I am wondering if there is a detailed installation guide for mumax3. 
The one in online is really short and I can not get it working. 
If there is one detailed manual that explains to dummies with mac, that would be very helpful. 

Best Regards

Emrah

Arne Vansteenkiste

unread,
Nov 12, 2015, 2:35:39 PM11/12/15
to mumax2
Could you specify what you mean with 'the one online'?

--
You received this message because you are subscribed to the Google Groups "mumax2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mumax2+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Emrah Turgut

unread,
Nov 12, 2015, 3:44:35 PM11/12/15
to mumax2
mumax3 GPU micromagnetic simulator
==================================

  * You can download binaries from http://mumax.github.io
  * You can fetch and compile the source with `go get -u -v github.com/mumax/3/...`
  * If you already have the source you can rebuild with `go install github.com/mumax/3/...`
  * If you have modified CUDA sources, rebuild with `./make.bash`



This is the one online. 

Bests

Arne Vansteenkiste

unread,
Nov 12, 2015, 3:52:23 PM11/12/15
to mumax2
I suggest to look at  https://github.com/mumax/3/releases/tag/v3.8: "To install from source in Ubuntu 15.04"
The first line will obviously have to be replaced by you manually installing go, a c compiler and cuda.
The second line is cross platform :-)

Cheers,
-Arne;


Arne Vansteenkiste

unread,
Nov 13, 2015, 4:47:01 AM11/13/15
to mumax2

More detailed steps would be:
Install apple xcode
Install cuda
Install go and set GOPATH to some destination
Open terminal and type:  go get -u -v github.com/mumax/3/cmd/mumax3
In case of errors copy paste your full command and output here for help.

tfeg...@googlemail.com

unread,
Nov 13, 2015, 5:47:04 AM11/13/15
to mumax2
Hello,

I have a problem compiling MuMax3 on a Mac with OS X 10.11. Go is installed, go path is set, CUDA is installed. The output says:

Macintosh:~ tf$ go get -u -v github.com/mumax/3/...
github.com/mumax/3 (download)
clang: error: unknown argument: '-malign-double'
clang: warning: optimization flag '-fno-schedule-insns' is not supported
clang: error: unknown argument: '-malign-double'
clang: warning: optimization flag '-fno-schedule-insns' is not supported
ld: warning: directory not found for option '-L/usr/local/cuda/lib64'
ld: warning: directory not found for option '-L/usr/local/cuda-6.0/lib64'
ld: warning: directory not found for option '-L/usr/local/cuda-6.0/lib'
ld: warning: directory not found for option '-L/usr/local/cuda-5.5/lib64'
ld: warning: directory not found for option '-L/usr/local/cuda-5.5/lib'
ld: warning: directory not found for option '-L/usr/local/cuda-5.0/lib64'
ld: warning: directory not found for option '-L/usr/local/cuda-5.0/lib'
ld: warning: directory not found for option '-L/usr/lib/x86_64-linux-gnu/'
ld: warning: directory not found for option '-L/opt/cuda/lib64'
ld: warning: directory not found for option '-L/opt/cuda/lib'
ld: file not found: @rpath/CUDA.framework/Versions/A/CUDA for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thank you

Thomas

Mykola Dvornik

unread,
Nov 13, 2015, 6:26:26 AM11/13/15
to mum...@googlegroups.com
Enjoy http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-mac-os-x/

In addition, I would suggest you to use cuda7.5.20 for mac.

--
You received this message because you are subscribed to the Google Groups "mumax2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mumax2+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
 Mykola 

Mykola Dvornik

unread,
Nov 13, 2015, 6:48:45 AM11/13/15
to mum...@googlegroups.com
as for the '-malign-double' issue - it is a bit more complected since the version of clang Apple provides does not support this option.

So some trivial workaround is needed on the github.com/barnex/fftw/ side.

@barnex do you think is it reasonable to have a separate '#cgo darwin ...' entries in fftw go wrappers?

--
 Mykola 

Arne Vansteenkiste

unread,
Nov 13, 2015, 1:21:54 PM11/13/15
to mum...@googlegroups.com

Mykola Dvornik

unread,
Nov 13, 2015, 1:54:23 PM11/13/15
to mum...@googlegroups.com
@barnex oh, so damn simple)

Arne Vansteenkiste

unread,
Nov 13, 2015, 3:49:12 PM11/13/15
to mum...@googlegroups.com
I've updated the instructions on https://github.com/mumax/3 to be somewhat more pedantic.

Emrah Turgut

unread,
Nov 16, 2015, 5:01:10 PM11/16/15
to mumax2
Hi, 

Thank you very much for the instruction. I learn a lot yet I can't get ti working. 
One problem could be that I have 

 Chipset Model: Intel Iris

  Type: GPU

  Bus: Built-In

  VRAM (Dynamic, Max): 1536 MB

  Vendor: Intel (0x8086)

  Device ID: 0x0a2e

  Revision ID: 0x0009


as a graphical card. Is that be issue?
Bests

Emrah

Mykola Dvornik

unread,
Nov 16, 2015, 6:14:10 PM11/16/15
to mum...@googlegroups.com
mumax3 relies on CUDA platform and thus runs exclusively on NVidia GPUs.

Intel and AMD GPUs are not supported.

Emrah Turgut

unread,
Nov 17, 2015, 9:41:25 AM11/17/15
to mumax2
That explains it. Thank you very much. 

tfeg...@googlemail.com

unread,
Nov 19, 2015, 5:10:31 AM11/19/15
to mumax2
Thank you for your response. I installed CUDA 7.5.20, set the paths as mentioned in the setup document. Now I get the message:

ld: warning: directory not found for option '-L/usr/local/cuda/lib64'
ld: warning: directory not found for option '-L/usr/local/cuda-6.0/lib64'
ld: warning: directory not found for option '-L/usr/local/cuda-6.0/lib'
ld: warning: directory not found for option '-L/usr/local/cuda-5.5/lib64'
ld: warning: directory not found for option '-L/usr/local/cuda-5.5/lib'
ld: warning: directory not found for option '-L/usr/local/cuda-5.0/lib64'
ld: warning: directory not found for option '-L/usr/local/cuda-5.0/lib'
ld: warning: directory not found for option '-L/usr/lib/x86_64-linux-gnu/'
ld: warning: directory not found for option '-L/opt/cuda/lib64'
ld: warning: directory not found for option '-L/opt/cuda/lib'
ld: file not found: @rpath/CUDA.framework/Versions/A/CUDA for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'd be happy if someone can help.

Best regards

Thomas

Arne Vansteenkiste

unread,
Nov 19, 2015, 2:50:16 PM11/19/15
to mumax2

Where is cuda installed?


--

tfeg...@googlemail.com

unread,
Nov 25, 2015, 12:42:48 PM11/25/15
to mumax2
Sorry for the late answer. The install path is:

/Developer/NVIDIA/CUDA-7.5/

with the corresponding sub folders (bin, lib, etc.).

Arne Vansteenkiste

unread,
Nov 26, 2015, 2:53:31 AM11/26/15
to mumax2

Could you add that to mumax/3/cuda/*/cgoflags.go? There's 3 such files.

Reply all
Reply to author
Forward
0 new messages