-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
5 changed files
with
49 additions
and
20 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,6 +1,7 @@ | ||
#!/bin/bash -x | ||
|
||
maker=$1 | ||
compiler=$2 | ||
|
||
mydir=$(dirname $0) | ||
source ${mydir}/setup_env.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
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 |
---|---|---|
|
@@ -32,21 +32,38 @@ export top=$(pwd) | |
|
||
shopt -s expand_aliases | ||
|
||
|
||
print "======================================== Load compiler" | ||
quiet module load [email protected] | ||
quiet which g++ | ||
g++ --version | ||
quiet module load python | ||
quiet which python | ||
quiet which python3 | ||
python --version | ||
python3 --version | ||
|
||
quiet module load pkgconf | ||
quiet which pkg-config | ||
|
||
export color=no | ||
export CXXFLAGS="-Werror -Wno-unused-command-line-argument" | ||
|
||
#----------------------------------------------------------------- Compiler | ||
if [ "${compiler}" = "intel" ]; then | ||
print "======================================== Load Intel oneAPI compiler" | ||
quiet module load intel-oneapi-compilers | ||
else | ||
print "======================================== Load GNU compiler" | ||
quiet module load [email protected] | ||
fi | ||
print "---------------------------------------- Verify compiler" | ||
print "CXX = $CXX" | ||
print "CC = $CC" | ||
print "FC = $FC" | ||
${CXX} --version | ||
${CC} --version | ||
${FC} --version | ||
|
||
if [ "${maker}" = "cmake" ]; then | ||
print "======================================== Load cmake" | ||
quiet module load cmake | ||
quiet which cmake | ||
cmake --version | ||
cd build | ||
fi | ||
|
||
quiet module list |
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