hkroeger / insightcae

InsightCAE
http://silentdynamics.de
81 stars 15 forks source link

runs with 6 CPUs, but not with 8 / 12 #26

Closed j2l closed 2 years ago

j2l commented 2 years ago

Since cores are used at various moments by Ubuntu OS, I usually run mpirun -np 8 (or 10) --oversubscribe and it goes through, but using insightcae (without oversubscribe) snappyhexMes has to see idle CPUs. Would it be possible to add the option --oversubscribe?

hkroeger commented 2 years ago

The arguments for mpirun are hardcoded for now (in file src/toolkit/openfoam/openfoamcase.cpp, line 756 and 779).

Additional arguments could be specified using a mpirun wrapper script for example.

I will add the possibility for changing the mpirun command line.

j2l commented 2 years ago

Great! Thanks --oversubscribe could be easy to add and takes care of anything if you want.

hkroeger commented 2 years ago

added in 4.0.15 (next-release commit 5ff8815555): further arguments to mpirun command line can be specified by environment variable INSIGHT_ADDITIONAL_MPIRUN_ARGS