how to install magneto-elastic extension?

193 views
Skip to first unread message

Tingyu Su

unread,
May 31, 2022, 10:59:48 AM5/31/22
to mumax2
Hi All.
I am new to Mumax3 and Git Hub. Can anyone tells me how to install the Mumax3 magneto-elastic extension? 


Tingyu Su

unread,
May 31, 2022, 3:27:17 PM5/31/22
to mumax2
a follow up
Screen Shot 2022-05-31 at 3.26.37 PM.png

Josh Lauzier

unread,
May 31, 2022, 5:10:54 PM5/31/22
to mumax2
Hello,

Have you tried following this post ? I walk through how to do the installation step by step from scratch. I would give that a go.

For that specific error, my memory is a bit rusty, but I would suspect either your cuda is out of date (and not using a 64bit version), or you're doing it in a 32bit version of git/mingw, and not 64-bit. Can you post the full details of how you're trying to install it?

Best,
Josh L.

Tingyu Su

unread,
May 31, 2022, 5:39:15 PM5/31/22
to mumax2
Hi Josh,
the tutorial is great.

I stuck in the (g) step. It 's saying could not find gcc compiler.

You are correct my MinGW is 32 version not 64. But I could not find a 64 version online. Could you help me with that ?

Tingyu Su

unread,
May 31, 2022, 5:43:17 PM5/31/22
to mumax2
Screen Shot 2022-05-31 at 5.42.49 PM.png

Josh Lauzier

unread,
May 31, 2022, 8:08:11 PM5/31/22
to mumax2
It has been awhile, so my memory is a bit rusty. But if I recall, you shouldn't need to install mingw separately at all, those instructions should be self-contained. That particular version of msysgit comes with a version of 64bit mingw bundled with it, I believe. In fact, if you have a 32-bit version of mingw installed from previous projects, you will want to uninstall it and/or remove it from your paths, because it will default to the 32bit mingw instead of 64.

Alternatively, you can probably fix the issue by specifically pointing git to your 64bit mingw in your PATH variables (your path variables you can access under "system properties> environment variables" in windows). You can check by typing 'where gcc' to see what mingw gcc it is defaulting to. I think the normal path is something like 'C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin' . But this is probably more tricky than just removing it completely to be safe.

I helped someone who had a similar issue here , when my memory was more fresh

Tingyu Su

unread,
May 31, 2022, 8:31:15 PM5/31/22
to mumax2
Hi Josh,
Under your help i fixed the path, gcc issues.
I followed you step by step guidance but in the end it still didnot work. 

However, i download the binary file which works on my Cuda 11.7 version.

Tingyu Su

unread,
May 31, 2022, 8:32:15 PM5/31/22
to mumax2
i think there might be some bug in the magneto-elastic module and i could not install it very well

Tingyu Su

unread,
May 31, 2022, 8:45:47 PM5/31/22
to mumax2
Capture.PNG

Josh Lauzier

unread,
Jun 2, 2022, 6:26:53 AM6/2/22
to mumax2
The fact that it's asking for modules suggests to me that your go version might be too recent. Modules were only added in Go version 11 (optional in 11, but became mandatory in versions 15 or higher), and mumax was designed before this change. When you do step g), what version of golang do you get? It should say something like 'go version go10.8.1 windows/amd64'. If it is anything 11 or higher, it will not work, and you need to go back to step b) and reinstall an older version of go. There is a fix for normal mumax here to use modules, it is one extra step. I was not able to get it to work for the ME fork however (probably because of the workarounds i had to do with the folders), so I simply downgraded to an older version of golang to 10.8. It is probably doable to apply this fix, but i am not very familiar with git/golang.

However, I saw that you found the binary, so hopefully that is sufficient

Reply all
Reply to author
Forward
0 new messages