-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use gnu parallel to run test programs.
- Loading branch information
1 parent
ac049f7
commit 6679db4
Showing
5 changed files
with
48 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
#!/bin/bash | ||
|
||
JOBS=4 | ||
EIGREALS=`ls xeigtstR_*` | ||
EIGCOMPLEXES=`ls xeigtstC_*` | ||
|
||
TESTREALS=`ls R*.in [a-z]*.in | grep -v double | grep -v ^log` | ||
TESTCOMPLEXES=`ls C*.in [a-z]*.in | grep -v double | grep -v ^log` | ||
|
||
/usr/bin/time ./xeigtstR_double < Rbal_double.in > log.xeigtstR_double.Rbal.in | ||
/usr/bin/time ./xeigtstC_double < Cbal_double.in > log.xeigtstC_double.Cbal.in | ||
rm -f .parallel.test_eig_all.sh | ||
|
||
echo "/usr/bin/time ./xeigtstR_double < Rbal_double.in >& log.xeigtstR_double.Rbal.in" >> .parallel.test_eig_all.sh | ||
echo "/usr/bin/time ./xeigtstC_double < Cbal_double.in >& log.xeigtstC_double.Cbal.in" >> .parallel.test_eig_all.sh | ||
|
||
for eigreal in $EIGREALS; do | ||
for testreal in $TESTREALS; do | ||
echo testing $eigreal $testreal | ||
/usr/bin/time ./$eigreal < $testreal > log.$eigreal.$testreal | ||
echo "/usr/bin/time ./$eigreal < $testreal >& log.$eigreal.$testreal" >> .parallel.test_eig_all.sh | ||
done | ||
done | ||
|
||
for eigcomplex in $EIGCOMPLEXES; do | ||
for testcomplex in $TESTCOMPLEXES; do | ||
echo testing $eigcomplex $testcomplex | ||
/usr/bin/time ./$eigcomplex < $testcomplex > log.$eigcomplex.$testcomplex | ||
echo "/usr/bin/time ./$eigcomplex < $testcomplex >& log.$eigcomplex.$testcomplex" >> .parallel.test_eig_all.sh | ||
done | ||
done | ||
|
||
cat .parallel.test_eig_all.sh | parallel --jobs $JOBS | ||
|
||
rm .parallel.test_eig_all.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ cd /home/docker/mplapack/mplapack/test/eig/ | |
rm -rf results/aarch64-unknown-linux-gnu | ||
mkdir -p results/aarch64-unknown-linux-gnu | ||
cd results/aarch64-unknown-linux-gnu | ||
rsync -arv [email protected]:/data/mnt/aarch64-unknown-linux-gnu/mplapack/test/eig/log* . | ||
rsync -arv [email protected]:/data/mnt/MPLAPACK/lib/aarch64-unknown-linux-gnu/mplapack/test/eig/log* . | ||
|
||
########## | ||
cd /home/docker/mplapack/mplapack/test/eig/ | ||
|
@@ -38,7 +38,7 @@ cd /home/docker/mplapack/mplapack/test/lin/ | |
rm -rf results/aarch64-unknown-linux-gnu | ||
mkdir -p results/aarch64-unknown-linux-gnu | ||
cd results/aarch64-unknown-linux-gnu | ||
rsync -arv [email protected]:/data/mnt/aarch64-unknown-linux-gnu/mplapack/test/lin/log* . | ||
rsync -arv [email protected]:/data/mnt/MPLAPACK/lib/aarch64-unknown-linux-gnu/mplapack/test/lin/log* . | ||
|
||
########## | ||
cd /home/docker/mplapack/mplapack/test/lin/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
#!/bin/bash | ||
|
||
JOBS=4 | ||
|
||
LINREALS=`ls xlintstR_*` | ||
LINCOMPLEXES=`ls xlintstC_*` | ||
|
||
LINREAL_RFPS=`ls xlintstrfR_*` | ||
LINCOMPLEX_RFPS=`ls xlintstrfC_*` | ||
|
||
rm -f .parallel.test_lin_all.sh | ||
|
||
for linreal in $LINREALS; do | ||
echo testing $linreal Rtest.in | ||
./$linreal < ./Rtest.in >& log.$linreal | ||
echo "./$linreal < ./Rtest.in >& log.$linreal" >> .parallel.test_lin_all.sh | ||
done | ||
|
||
for lincomplex in $LINCOMPLEXES; do | ||
echo testing $lincomplex Ctest.in | ||
/usr/bin/time ./$lincomplex < ./Ctest.in >& log.$lincomplex | ||
echo "/usr/bin/time ./$lincomplex < ./Ctest.in >& log.$lincomplex" >> .parallel.test_lin_all.sh | ||
done | ||
|
||
for linreal_rfp in $LINREAL_RFPS; do | ||
echo testing $linreal_rfp Rtest_rfp.in | ||
/usr/bin/time ./$linreal_rfp < ./Rtest_rfp.in >& log.$linreal_rfp | ||
echo "/usr/bin/time ./$linreal_rfp < ./Rtest_rfp.in >& log.$linreal_rfp" >> .parallel.test_lin_all.sh | ||
done | ||
|
||
for lincomplex_rfp in $LINCOMPLEX_RFPS; do | ||
echo testing $lincomplex_rfp Ctest_rfp.in | ||
/usr/bin/time ./$lincomplex_rfp < ./Ctest_rfp.in >& log.$lincomplex_rfp | ||
echo "/usr/bin/time ./$lincomplex_rfp < ./Ctest_rfp.in >& log.$lincomplex_rfp" >> .parallel.test_lin_all.sh | ||
done | ||
|
||
cat .parallel.test_lin_all.sh | parallel --jobs $JOBS | ||
|
||
rm .parallel.test_lin_all.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters