-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an feature to export parameters by default #5
Comments
There is no |
Hello, Typically, I prepare build & exec scripts tu be used interactively, with default values : ########################
# Build parameters
########################
COMPILER=${COMPILER:-gcc:13.2.0}
BUILD_FLAG=${BUILD_FLAG:-default}
MPI=${MPI:-openmpi:4.1.6}
KOKKOS=${KOKKOS:-kokkos:4.1.0}
HDF5_PARALLEL=${HDF5_PARALLEL:-hdf5-parallel:1.14.3}
while true; do
case "$1" in
--compiler) shift && COMPILER="$1" ;;
--flags) shift && BUILD_FLAG="$1" ;;
--mpi) shift && MPI="$1" ;;
--kokkos) shift && KOKKOS="$1" ;;
--hdf5) shift && HDF5_PARALLEL="$1" ;;
*) echo "ERROR unkown flag $1" && exit 1 ;;
esac
shift
done
# logic to setup build env, and call build system with proper flags
########################
# Execution parameters
########################
# reuse build parameter set
TESTCASE=${TESTCASE:-short1}
BINDINGS=${BINDINGS:-socket:off:ddr}
FREQ=${KOKKOS:-NOMINAL}
while true; do
case "$1" in
--testcase) shift && TESTCASE="$1" ;;
--bindings) shift && BINDINGS="$1" ;;
--freq) shift && FREQ="$1" ;;
*) echo "ERROR unkown flag $1" && exit 1 ;;
esac
shift
done
# logic to setup libraries env, setup system (freq), and properly launch the app This way I can easily explore the various parameters. The idea is to use the same script with JUBE. So either I specify all in the command line, like This example is reduced for the sake of readability, but you can imagine how large the set of build and exec parameters can be. Thus, if there was a way to simply export all the variables at once, that would make the JUBE input file more readable and maintainable :) Best. |
Thank you for explaining the background to your request. I think your suggestion is a sensible extension and we will look into how we can best implement it. |
Hello,
My current input looks like this :
Is there a way to export all the parameters by default (and not copy/paste the
export: true
everywhere) ? I could not find anything related to this in the documentation. Though, I tried moving theexport: true
higher in the tree, this did not help.Best,
Antoine.
The text was updated successfully, but these errors were encountered: