forked from SPECFEM/specfem2d
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4600a8
commit 6d05104
Showing
3 changed files
with
129 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/bash | ||
################################################### | ||
|
||
# test name | ||
NAME="configure.2.openmp_make" | ||
|
||
# configuration parameters | ||
CONF_PARAM="--with-mpi --enable-openmp --enable-debug" | ||
|
||
################################################### | ||
|
||
|
||
testdir=`pwd` | ||
|
||
# sets source directory | ||
cd $ROOT/ | ||
srcdir=`pwd` | ||
|
||
cd $testdir/ | ||
|
||
# title | ||
echo >> $testdir/results.log | ||
echo "$NAME in: $testdir" >> $testdir/results.log | ||
echo >> $testdir/results.log | ||
|
||
#cleanup | ||
rm -rf config.log config.status | ||
rm -rf ./bin ./obj ./setup ./OUTPUT_FILES ./DATA | ||
|
||
# default configuration for serial version (without MPI) | ||
# (out-of-source compilation) | ||
echo "configuration: $srcdir/configure ${CONF_PARAM}" >> $testdir/results.log | ||
$srcdir/configure ${CONF_PARAM} >> $testdir/results.log 2>&1 | ||
|
||
# checks exit code | ||
if [[ $? -ne 0 ]]; then | ||
echo >> $testdir/results.log | ||
echo "configuration failed, please check..." >> $testdir/results.log | ||
exit 1 | ||
fi | ||
|
||
# default all compilation | ||
make clean >> $testdir/results.log 2>&1 | ||
|
||
# checks exit code | ||
if [[ $? -ne 0 ]]; then | ||
echo >> $testdir/results.log | ||
echo "compilation failed, please check..." >> $testdir/results.log | ||
exit 1 | ||
fi | ||
|
||
# parallel make | ||
make -j 4 all >> $testdir/results.log 2>&1 | ||
|
||
# checks exit code | ||
if [[ $? -ne 0 ]]; then | ||
echo >> $testdir/results.log | ||
echo "compilation failed, please check..." >> $testdir/results.log | ||
exit 1 | ||
fi | ||
|
||
echo "" >> $testdir/results.log | ||
echo "successful compilation" >> $testdir/results.log | ||
|
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/bash | ||
################################################### | ||
|
||
# test name | ||
NAME="configure.3.vectorization_make" | ||
|
||
# configuration parameters | ||
CONF_PARAM="--enable-openmp --enable-vectorization" | ||
|
||
################################################### | ||
|
||
|
||
testdir=`pwd` | ||
|
||
# sets source directory | ||
cd $ROOT/ | ||
srcdir=`pwd` | ||
|
||
cd $testdir/ | ||
|
||
# title | ||
echo >> $testdir/results.log | ||
echo "$NAME in: $testdir" >> $testdir/results.log | ||
echo >> $testdir/results.log | ||
|
||
#cleanup | ||
rm -rf config.log config.status | ||
rm -rf ./bin ./obj ./setup ./OUTPUT_FILES ./DATA | ||
|
||
# default configuration for serial version (without MPI) | ||
# (out-of-source compilation) | ||
echo "configuration: $srcdir/configure ${CONF_PARAM}" >> $testdir/results.log | ||
$srcdir/configure ${CONF_PARAM} >> $testdir/results.log 2>&1 | ||
|
||
# checks exit code | ||
if [[ $? -ne 0 ]]; then | ||
echo >> $testdir/results.log | ||
echo "configuration failed, please check..." >> $testdir/results.log | ||
exit 1 | ||
fi | ||
|
||
# default all compilation | ||
make clean >> $testdir/results.log 2>&1 | ||
|
||
# checks exit code | ||
if [[ $? -ne 0 ]]; then | ||
echo >> $testdir/results.log | ||
echo "compilation failed, please check..." >> $testdir/results.log | ||
exit 1 | ||
fi | ||
|
||
# parallel make | ||
make -j 4 all >> $testdir/results.log 2>&1 | ||
|
||
# checks exit code | ||
if [[ $? -ne 0 ]]; then | ||
echo >> $testdir/results.log | ||
echo "compilation failed, please check..." >> $testdir/results.log | ||
exit 1 | ||
fi | ||
|
||
echo "" >> $testdir/results.log | ||
echo "successful compilation" >> $testdir/results.log | ||
|