Skip to content

Commit

Permalink
coll: test_coll_algos.sh fix misc erros
Browse files Browse the repository at this point in the history
misc: bash syntax errors:
    Missing "done" due to previous merge conflicts.
    One syntax error: "-eq" is for integer test only.

TODO: the script is in non-portable shell syntax.
Signed-off-by: Hui Zhou <hzhou321@anl.gov>
  • Loading branch information
hzhou committed Feb 22, 2019
1 parent 736819e commit a175cad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/mpi/coll/test_coll_algos.sh
Expand Up @@ -315,6 +315,7 @@ for algo_name in ${algo_names}; do
env="${testing_env} env=MPIR_CVAR_IALLTOALL_INTRA_ALGORITHM=${algo_name} "

coll_algo_tests+="alltoall1 8 ${env}${nl}"
done

algo_names="gentran_brucks"
kvalues="2 3 4"
Expand All @@ -327,6 +328,7 @@ for algo_name in ${algo_names}; do
coll_algo_tests+="alltoall1 8 ${env} env=MPIR_CVAR_IALLTOALL_BRUCKS_BUFFER_PER_NBR=0${nl}"
coll_algo_tests+="alltoall1 8 ${env} env=MPIR_CVAR_IALLTOALL_BRUCKS_BUFFER_PER_NBR=1${nl}"
done
done

########## Add tests for scan algorithms ############

Expand All @@ -343,6 +345,7 @@ for algo_name in ${algo_names}; do
env="${testing_env} env=MPIR_CVAR_ISCAN_INTRA_ALGORITHM=${algo_name} "

coll_algo_tests+="scantst 4"
done

######### Add tests for ineighbor_alltoallw algorithms ###########

Expand Down Expand Up @@ -374,7 +377,7 @@ batchsizes="1 2 4"
outstandingtasks="4 8"
for algo_name in ${algo_names}; do
env="${testing_env} env=MPIR_CVAR_IALLTOALLV_INTRA_ALGORITHM=${algo_name} "
if [ ${algo_name} -eq "gentran_scattered"]; then
if [ ${algo_name} = "gentran_scattered" ]; then
for task in ${outstandingtasks}; do
for batchsize in ${batchsizes}; do
env="${testing_env} env=MPIR_CVAR_IALLTOALLV_INTRA_ALGORITHM=${algo_name} "
Expand All @@ -385,6 +388,7 @@ for algo_name in ${algo_names}; do
done
done
fi
done

######### Add tests for Ineighbor_allgather algorithms ###########

Expand Down

0 comments on commit a175cad

Please sign in to comment.