-
Notifications
You must be signed in to change notification settings - Fork 25
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
how to add more srun command parameters in ecbuild_add_test #61
Comments
Probably the better approach is to run all the tests on a single allocation rather than have each test go on the queue.
In case |
@wdeconinck Yes. Your suggested method does work! That could be used as a work-around, at least, for being now. |
It would be up to you to set the to Note I did not test following, but conceptually: if (MPI_ARGS)
set(RESTORE_MPI_ARGS ${MPI_ARGS})
endif()
if ( <slurm detected> )
set( MPI_ARGS "${MPI_ARGS} -N 2 --ntasks-per-node=18")
endif()
ecbuild_add_test( ... MPI 36 ... )
if( RESTORE_MPI_ARGS )
set(MPI_ARGS ${RESTORE_MPI_ARGS})
endif() |
@wdeconinck , Did you mean I need to do changes (you suggested) to ecbuild_add_test to use MPI_ARGS ( and, yes, just to use MPA_ARGS as one argument didn't work in my tries )? |
@TingLei-NOAA no I meant it like in the code snippet above, to set MPI_ARGS as a normal CMake variable. It gets picked up by |
@wdeconinck Sure. Changing of MPI_ARG before and after the ecbuild_add_test seems a solution. I will try it and come back with an update here. |
The changes suggested by @wdeconinck does work. Thank you @wdeconinck for your help! |
…gested by W. Deconinc ecmwf/ecbuild#61
…gested by W. Deconinc ecmwf/ecbuild#61
…gested by W. Deconinc ecmwf/ecbuild#61
Is your feature request related to a problem? Please describe.
A user ctest is to be run with a fixed mpi task numbers (say, -n 36). however in another machine, this job has to be run on two nodes to avoid memory related failure.
Describe the solution you'd like
The easiest way for me is to add srun comand parameters as " -N 2 --ntasks-per-node=18" in ecbuild_add_test. But digging in ecbuild_add_test.cmake and doing "try and error" , I failed to find a way to do so with ecbuild_add_test
Describe alternatives you've considered
So, I am wondering if ecbuild experts could clarify on this. Did I miss any existing ecbuild functions to do this?
Thanks.
Additional context
No response
Organisation
LYNKER--EMC/NCEP/NOAA
The text was updated successfully, but these errors were encountered: