Skip to content

Commit

Permalink
Pass the actual $NODES and $TASKS to CXX_mpi_test for TAU
Browse files Browse the repository at this point in the history
Until now they were hardcoded to 2 and 4, but on Github Actions TASKS is
2 because the runners have 2 CPUs

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Jul 20, 2023
1 parent f7f6e61 commit 5fe4d9f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/perf-tools/tau/tests/run_CXX_mpi_test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
#!/bin/bash

tau_exec ./CXX_mpi_test 500 500 2 4 4
ARGS=$1
NODES=${2:-2}
TASKS=${3:-4}

dimX=500
dimY=500
numGridsX=$NODES
numGridsY=$TASKS
numInitPerturbations=4

tau_exec ./CXX_mpi_test ${dimX} ${dimY} ${numGridsX} ${numGridsY} ${numInitPerturbations}

0 comments on commit 5fe4d9f

Please sign in to comment.