Changeset 5013
- Timestamp:
- Jul 4, 2024, 3:24:26 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/LMDZ_Setup_amaury/setup.sh
r5010 r5013 175 175 if [[ $mpi -gt $NB_MPI_MAX ]]; then mpi=$NB_MPI_MAX; fi 176 176 if [[ $omp -gt $NB_OMP_MAX ]]; then omp=$NB_OMP_MAX; fi 177 178 # Compute how many mpi per node (required e.g. for Adastra) 179 if [[ $NB_CORE_PER_NODE_MAX -gt 0 ]]; then 180 local N_omp_mt=1 181 if [[ $omp -gt 1 ]]; then (( N_omp_mt = omp / N_HYPERTHREADING )); fi # take into account hyperthreading 182 (( mpi_per_node = NB_CORE_PER_NODE_MAX / N_omp_mt )) 183 if [[ mpi_per_node -gt mpi ]]; then mpi_per_node=$mpi; fi 184 fi 185 186 echo "Total MPI=$mpi (PER NODE=$mpi_per_node), OMP=$omp" 177 187 } 178 188 … … 430 440 -e "s/time=.*.$/time=$cput/" \ 431 441 -e "s/ntasks=.*.$/ntasks=$mpi/" \ 442 -e "s/ntasks=.*.$/ntasks-per-node=$mpi_per_node/" \ 432 443 -e "s/cpus-per-task=.*.$/cpus-per-task=$omp/" \ 433 444 -e "s/nthreads=.*./nthreads=$omp/" \ … … 618 629 #@ADS#SBATCH --ntasks=1 619 630 #@ADS#SBATCH --cpus-per-task=1 620 #@ADS#SBATCH --n tasks-per-node=8 # TODO check how to scale this631 #@ADS#SBATCH --nodes=1 621 632 #@ADS#SBATCH --hint=nomultithread 622 633 #@ADS#SBATCH --time=00:10:00
Note: See TracChangeset
for help on using the changeset viewer.