How to compile MuMax 3.9c for Windows

578 views
Skip to first unread message

tfeg...@googlemail.com

unread,
Jul 1, 2015, 8:43:35 AM7/1/15
to mum...@googlegroups.com
Hello,

which compiler (I think probably a go compiler) should I use to compile MuMax 3.9c for Windows. Do I have to choose special compiler settings?

Thank you

Best regards

Thomas

Mykola Dvornik

unread,
Jul 1, 2015, 9:01:26 AM7/1/15
to mum...@googlegroups.com
mumax3 can be compiled either by go or gcc-go compilers.

Please note that performance of mumax3 is mainly limited by proprietary binary-only cuFFT library (which is actually an extremely optimized software). So there is almost nothing host code compilers can do with mumax3 performance.

Go compiler is the safest solution since it is virtually bugs free and, obviously, is always up to date with Golang specification) 

Compiling with gccgo using extreme levels of optimization might give you shorter demag kernel initialization times, but this comes at the expense of precision. Gccgo is also not that well tested and is typically not up-to date with language specification. 
 
Anyway, if you think that you might get some performance boost compiling mumax3 yourself (that is actually a valid assumption for OOMMF), then I would suggest you not to bother and use pre-compiled binaries instead.

-Mykola
--
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.

Felipe Garcia

unread,
Jul 1, 2015, 9:12:17 AM7/1/15
to mum...@googlegroups.com
Dear Mykola, thank you for the information. I think his question comes from the fact that there are no binaries for version 3.9. To get the binaries for linux is quite easy but I am not sure for windows and this is reason for his question for a good enviroment to compile it in windows.

Regards,
Felipe

Mykola Dvornik

unread,
Jul 1, 2015, 9:27:34 AM7/1/15
to mum...@googlegroups.com
Ok, I see now.

In this case one needs to 

(a) install CUDA 6.5 (for Maxwell) into default location;
(c) make sure GOROOT and GOPATH environment variable are set according to your needs (see more at https://golang.org/doc/code.html, the installer should set GOROOT automatically);
(d) install msysgit https://msysgit.github.io/;
(e) open msysgit command prompt;
(f) type 'go version'
(g) if it says 'go version go1.4.2 ...' then type 'go get -u -v github.com/mumax/3/...';
(h) if it complains that go command is not found then re-install golang or add %GOROOT%\bin to the %PATH% manually;
(i) if (g) is successful, then type 'mumax3' and the interactive session should emerge in your default web browser;
(j) if (g) is not successful, then come back to this thread with the detailed output of (g).

-Mykola

tfeg...@googlemail.com

unread,
Jul 1, 2015, 10:51:13 AM7/1/15
to mum...@googlegroups.com
Thank you everyone!

SAMIK DUTTAGUPTA

unread,
Sep 29, 2016, 11:43:12 AM9/29/16
to mumax2


Hi,

Sorry to revive this old thread again, but I am trying to compile Mumax 3.9.1 for windows. According to the procedure outlined for compiling Mumax for windowd, till step (g) everything works fine in my case and after typing 'go get -u -v github.com/mumax/3/9.1' it says that package github.com/mumax/3/9.1: cannot download. $GOPATH not set. Can anyone let me know how to solve this. I am not so familiar with programming in go so help will be highly appreciated.

PS.: I have attached a screenshot of the output I get.

Regards
Samik
Go_MUmax 3.9.1.bmp

Mykola Dvornik

unread,
Sep 29, 2016, 11:47:22 AM9/29/16
to mum...@googlegroups.com
The line 'github.com/mumax/3/...' has to be written like this literally. This will pull and install mumax3 and all the additional utilities like mumax3-convert, mumax3-fft, etc.

To unsubscribe from this group and stop receiving emails from it, send an email to mumax2+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
 Mykola 

Mateusz Zelent

unread,
Jan 11, 2017, 6:05:36 PM1/11/17
to mumax2
https://box.psnc.pl/f/15f1b6ec06/ here you can find compiled Mumax 3.10 for Windows.
Reply all
Reply to author
Forward
0 new messages