Multi-task of Mumax3

219 views
Skip to first unread message

DongHi Yang

unread,
Jun 2, 2024, 4:27:54 PM6/2/24
to mumax2
Hi everyone, here I have a question about the mumax task on Windows/Linux:

 If I run a mumax task, it will use the cuda, but the problem is that the GPU usage of mumax is too small.  I hope to know if I run the mumax, can I run another software which using cuda? Does mumax conflict with other CUDA-using software at the same time? Can people run two or more mumax tasks at the same time on Windows or Linux?

very thanks for your help!

Josh Lauzier

unread,
Jun 2, 2024, 8:24:59 PM6/2/24
to mumax2
Hi,

You can run 2 more or tasks without conflicts, but you won't get any speed benefits on consumer grade GPUs, and you might even get a speed penalty. For instance, if you run 2 mumax scripts that normally take 5 minutes at the same time, they will both take at least 10 minutes running in parallel- the same as if you had just run them back to back ( it'll be slightly more than 10 minutes, as the GPU scheduler will have to coordinate the 2 tasks, which is a bit of extra overhead and they will fight for resources). It won't cause any errors, but there isn't any benefit to doing so.

If you have multiple users, you might consider using the mumax3-server software https://pkg.go.dev/github.com/mumax/3/cmd/mumax3-server to coordinate them. It's pretty handy, and can be run on normal windows/linux, it does not require a server. Although it is also not necessary.

If you have access to a commercial GPU, their task schedulers can handle multiple tasks at the same time. Unfortunately, Nvidia now paywalls this feature to enterprise level GPUs. (This may or may not be beneficial, as programs will still have to share resources. But it is at least doable).

Best,
Josh L.

MD SALIM EQUBAL

unread,
Jun 2, 2024, 8:52:39 PM6/2/24
to mum...@googlegroups.com
Can I run multiple mumax3 files one after another using single mumax3 script? Lets say I have 10 mumax3 scripts and I want the 2nd mumax3 script to start running after the simulation of the 1st mumax3 script has been completed.
Thanks

  

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/mumax2/1b16a897-7630-4aea-aed8-16b093d0cb22n%40googlegroups.com.

Josh Lauzier

unread,
Jun 2, 2024, 10:42:21 PM6/2/24
to mumax2
Hi,

You can queue up multiple consecutive mumax scripts when you call mumax on the command line (or terminal, on linux). Normally, to run one mumax script, you would do something like:

mumax3 script1.mx3

You can queue multiple scripts simply by listing multiple scripts when you call mumax3. Something like:

mumax3 script1.mx3 script2.mx3 script3.mx3

etc. You can queue an entire batch this way, and it will consecutively go through each in the order that they're listed as inputs. I only listed 3 in this example, but you can queue up as many as you want, 10+ is fine. When you do a batch, it will also tell you as it completes each script, and at the end how many scripts finished OK and if any failed (if one fails due to some error, it will also proceed to the next one).

Mumax3-server has some extra features that are nice for batching (like restarting automatically after a reboot, being able to scan for new scripts, etc), but it's not needed for the batching feature if that is all you want, you can batch run with just normal mumax by itself.

Cheers,
Josh L.

MD SALIM EQUBAL

unread,
Jun 2, 2024, 11:32:58 PM6/2/24
to mum...@googlegroups.com
Thanks a lot Josh Lauzier for your help. Grateful for your kindness.

Reply all
Reply to author
Forward
0 new messages