-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added BLAS library specification in build script (#83)
* added BLAS library specification in build script * Updated README with correct JSON config names * added a note in etc/derecho/README.md regarding some tests note building with the Intel compiler * added echo statements in the build scripts * added TUV-X download in the build script --------- Co-authored-by: Aditya Dendukuri <[email protected]> Co-authored-by: Aditya Dendukuri <[email protected]>
- Loading branch information
1 parent
5366ab4
commit a24225a
Showing
4 changed files
with
20 additions
and
42 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
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,6 @@ | |
# The TUVX_HOME environment variable must be set to the directory to build TUV-x | ||
# in prior to calling this script | ||
|
||
|
||
module purge | ||
module load ncarenv/23.09 | ||
module load craype/2.7.20 | ||
|
@@ -13,6 +12,7 @@ module load netcdf/4.9.2 | |
module load ncarcompilers/1.0.0 | ||
module load cmake/3.26.3 | ||
|
||
|
||
if [[ -z "${TUVX_HOME}" ]]; then | ||
echo "You must set the TUVX_HOME environment variable to the directory where TUV-x should be build." | ||
return | ||
|
@@ -23,29 +23,12 @@ if [[ ! -d "${TUVX_HOME}" ]]; then | |
return | ||
fi | ||
|
||
echo "Building JSON Fortran" | ||
|
||
# get & build the source code of JSON Fortran | ||
|
||
cd ${TUVX_HOME} | ||
curl -LO https://github.com/jacobwilliams/json-fortran/archive/8.3.0.tar.gz | ||
tar -zxvf 8.3.0.tar.gz | ||
cd json-fortran-8.3.0 | ||
mkdir build | ||
cd build | ||
INSTALL_DIR=$TUVX_HOME/json-fortran-8.3.0 | ||
cmake -D SKIP_DOC_GEN:BOOL=TRUE -D CMAKE_INSTALL_PREFIX=$INSTALL_DIR .. | ||
make install | ||
|
||
echo "Building TUV-x" | ||
|
||
# get & build the source code of TUV-x | ||
|
||
# download and build TUV-X | ||
echo "Downloading and Building TUV-x" | ||
cd ${TUVX_HOME} | ||
git clone [email protected]:NCAR/tuv-x.git | ||
cd tuv-x | ||
mkdir build | ||
cd build | ||
export JSON_FORTRAN_HOME=$INSTALL_DIR/jsonfortran-gnu-8.3.0 | ||
cmake -D CMAKE_BUILD_TYPE=release -D TUVX_ENABLE_MEMCHECK=OFF -D LAPACK_LIBRARIES=-lsci_gnu .. | ||
cmake -D CMAKE_BUILD_TYPE=release -D TUVX_ENABLE_MEMCHECK=OFF -D LAPACK_LIBRARIES=-lsci_gnu -D BLAS_LIBRARIES=-lsci_gnu .. | ||
make -j 8 |
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 |
---|---|---|
|
@@ -21,24 +21,8 @@ if [[ ! -d "${TUVX_HOME}" ]]; then | |
return | ||
fi | ||
|
||
echo "Building JSON Fortran" | ||
|
||
# get & build the source code of JSON Fortran | ||
|
||
cd ${TUVX_HOME} | ||
curl -LO https://github.com/jacobwilliams/json-fortran/archive/8.3.0.tar.gz | ||
tar -zxvf 8.3.0.tar.gz | ||
cd json-fortran-8.3.0 | ||
mkdir build | ||
cd build | ||
INSTALL_DIR=$TUVX_HOME/json-fortran-8.3.0 | ||
cmake -D SKIP_DOC_GEN:BOOL=TRUE -D CMAKE_INSTALL_PREFIX=$INSTALL_DIR .. | ||
make install | ||
|
||
echo "Building TUV-x" | ||
|
||
# get & build the source code of TUV-x | ||
|
||
echo "Downloading and Building TUV-x" | ||
cd ${TUVX_HOME} | ||
git clone [email protected]:NCAR/tuv-x.git | ||
cd tuv-x | ||
|