optimas-org / optimas

Optimization at scale, powered by libEnsemble
https://optimas.readthedocs.io
Other
23 stars 15 forks source link

Allow extra command line arguments for the executable to be added with TemplateEvaluator #243

Open lboult opened 3 months ago

lboult commented 3 months ago

Hi all,

In my current workflow I'm trying to chain together some calculations that I have to do before hand and then pass the results of these to a HiPACE simulation.

The solution I have at the moment relies on me passing some extra command line arguments to HiPACE but I don't think the current implementation of TemplateEvaluator supports this. I mistakenly thought that the extra_args argument was for this, but this was ofcourse for mpirun arguments 🙃

Is there a way of passing extra command line arguments to the executable/ could it be implemented as a feature? Perhaps its just a matter of exposing more of the functionality of libE in optimas, but I'm not experienced enough with it to tell.

Cheers, Lewis

shuds13 commented 1 month ago

In libEnsemble, app_args is used for this in the executor submit line. But Optimas passes the template script. @RemiLehe is there a standard approach for this?