-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature 2753 comp script config (#2868)
* set dynamic library file extension to .dylib if running on MacOS and .so otherwise * Added disabling of jasper documentation for compiliation on Hera * Updated * remove extra export of compiler env vars * include full path to log file so it is easier to file the log file to examine when a command fails * send cmake output to a log file * remove redundant semi-colon * use full path to log file so it is easier to examine on failure * use run_cmd to catch if rm command fails * Modifications for compilation on hera, gaea, and orion * Updating * fixed variable name * clean up if/else statements * set TIFF_LIBRARY_RELEASE argument to use full path to dynamic library file to prevent failure installing proj library * set LDFLAGS so that LDFLAGS value set in the user's environment will also be used * Updated based on gaea, orion, and hera installs * Updated * change extension of dynamic library files only if architecture is arm64 because older Macs still use .so * added netcdf library to args to prevent error installing NetCDF-CXX when PROJ has been installed in the same run of the script -- PATH is set in the COMPILE_PROJ if block that causes this flag from being added automatically * clean up how rpath and -L are added to LDFLAGS so that each entry is separate -- prevents errors installing on Mac arm64 because multiple rpath values aren't read using :. Also use MET_PROJLIB * Updated * removed -ltiff from MET libs * only add path to rpath and -L arguments if they are not already included in LDFLAGS * changed from using LIB_TIFF (full path to tiff lib file) to use TIFF_LIB_DIR (dir containing tiff lib file). Added TIFF_INCLUDE_DIR to proj compilation and -DJAS_ENABLE_DOC to jasper compliation taken from @jprestop branch * update comments * ensure all MET_* and MET_*LIB variables are added to the rpath for consistency * remove unnecessary if block and only export LDFLAGS at the end of setting locally * Updated * Added section for adding <VALUE>/lib64 and rearranged placement of ADDTL_DIR * Commenting out the running of the Jasper lib tests * Updating and/or removing files * Updating and/or removing files * Latest udpates which include the addition of the tiff library for proj * Remove commented out line. Co-authored-by: John Halley Gotway <[email protected]> * Make indentation consistent. Co-authored-by: John Halley Gotway <[email protected]> * Make indentation consistent. Co-authored-by: John Halley Gotway <[email protected]> * Make indentation consistent. Co-authored-by: John Halley Gotway <[email protected]> * Per 2753, added -lm to configure_lib_args for NetCDF-CXX * Per #2753 updating acorn files * Per #2753, update wcoss2 files * Per #2753, updating acorn file to include MET_PYTHON_EXE * Per #2753, updated files for 12.0.0 for derecho * Per #2753, updated derecho file adding MET_PYTHON_EXE and made corrections * Updating config files * Updating orion files * Updates for gaea's files * Updating gaea modulefile * Removing modulefile for cheyenne * Added MET_PYTHON_EXE * Added MET_PYTHON_EXE to hera too * Adding file for hercules * Removing equals sign from setenv * Adding file for hercules * Updated script to add libjpeg installation for grib2c * Per #2753, Adding file for casper --------- Co-authored-by: George McCabe <[email protected]> Co-authored-by: John Halley Gotway <[email protected]>
- Loading branch information
1 parent
d4c4eba
commit 3caffb4
Showing
19 changed files
with
222 additions
and
94 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
File renamed without changes.
54 changes: 32 additions & 22 deletions
54
internal/scripts/installation/config/install_met_env.casper
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,30 +1,40 @@ | ||
module load ncarenv/1.3 | ||
module load intel/2021.2 | ||
module load netcdf/4.8.0 | ||
module load ncarenv/23.10 | ||
module load intel-classic/2023.2.1 | ||
module load cmake/3.26.3 | ||
|
||
export TEST_BASE=/glade/p/ral/jntp/MET/MET_releases/casper/11.1.0 | ||
export COMPILER=intel_2021.2 | ||
export TEST_BASE=/glade/work/dtcrt/METplus/casper/components/MET/installations/12.0.0 | ||
export COMPILER=intel-classic_2023.2.1 | ||
export MET_SUBDIR=${TEST_BASE} | ||
export MET_TARBALL=v11.1.0.tar.gz | ||
export MET_TARBALL=v12.0.0.tar.gz | ||
export USE_MODULES=TRUE | ||
export MET_PYTHON=/glade/p/ral/jntp/MET/METplus/miniconda/miniconda3/envs/metplus_v5.1_py3.10 | ||
export MET_PYTHON=/glade/work/dtcrt/METplus/casper/miniconda/miniconda3/envs/metplus_v5.1_py3.10 | ||
export MET_PYTHON_CC=-I${MET_PYTHON}/include/python3.10 | ||
export MET_PYTHON_LD=`${MET_PYTHON}/bin/python3-config --ldflags --embed` | ||
export MET_NETCDF=/glade/u/apps/ch/opt/netcdf/4.8.0/intel/2021.2/ | ||
export MET_HDF5=/glade/u/apps/ch/opt/netcdf/4.8.0/intel/2021.2/ | ||
#export ADDTL_DIR=/usr/lib64 | ||
export EXTERNAL_LIBS=${TEST_BASE}/external_libs | ||
#export MET_GSL=${EXTERNAL_LIBS} | ||
#export MET_BUFRLIB=${EXTERNAL_LIBS} | ||
#export BUFRLIB_NAME=-lbufr | ||
#export MET_HDF5=${EXTERNAL_LIBS} | ||
#export MET_GRIB2CLIB=${EXTERNAL_LIBS}/lib | ||
#export MET_GRIB2CINC=${EXTERNAL_LIBS}/include | ||
#export GRIB2CLIB_NAME=-lgrib2c | ||
#export LIB_JASPER=${EXTERNAL_LIBS}/lib | ||
#export LIB_LIBPNG=${EXTERNAL_LIBS}/lib | ||
#export LIB_Z=${EXTERNAL_LIBS}/lib | ||
export SET_D64BIT=FALSE | ||
#export COMPILE_ECKIT=1 | ||
#export COMPILE_ATLAS=1 | ||
export MET_PROJ=${EXTERNAL_LIBS} | ||
export MET_ECKIT=${EXTERNAL_LIBS} | ||
export MET_ATLAS=${EXTERNAL_LIBS} | ||
export MET_GSL=${EXTERNAL_LIBS} | ||
export MET_BUFRLIB=${EXTERNAL_LIBS} | ||
export BUFRLIB_NAME=-lbufr_4 | ||
export MET_GRIB2CLIB=${EXTERNAL_LIBS}/lib64 | ||
export MET_GRIB2CINC=${EXTERNAL_LIBS}/include | ||
export GRIB2CLIB_NAME=-lg2c | ||
export LIB_JASPER=${EXTERNAL_LIBS}/lib64 | ||
export LIB_LIBPNG=${EXTERNAL_LIBS}/lib | ||
export LIB_Z=${EXTERNAL_LIBS}/lib | ||
export LIB_JPEG=${EXTERNAL_LIBS}/lib | ||
export MET_NETCDF=${EXTERNAL_LIBS} | ||
export MET_HDF5=${EXTERNAL_LIBS} | ||
export TIFF_INCLUDE_DIR=${EXTERNAL_LIBS}/include | ||
export TIFF_LIB_DIR=${EXTERNAL_LIBS}/lib | ||
export SQLITE_INCLUDE_DIR=${EXTERNAL_LIBS}/include | ||
export SQLITE_LIB_DIR=${EXTERNAL_LIBS}/lib | ||
export MAKE_ARGS="-j 5" | ||
#export CFLAGS="-Wall -g" | ||
#export CXXFLAGS="-Wall -g" | ||
export MAKE_ARGS=-j | ||
export CXXFLAGS="-std=c++11" | ||
#export CXXFLAGS="-std=c++11" | ||
#export SKIP_MET=true |
30 changes: 18 additions & 12 deletions
30
internal/scripts/installation/config/install_met_env.derecho
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
39 changes: 39 additions & 0 deletions
39
internal/scripts/installation/config/install_met_env.hercules
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,39 @@ | ||
module load intel-oneapi-compilers/2022.2.1 | ||
module load cmake/3.26.3 | ||
|
||
export CC=icx | ||
export CXX=icpx | ||
export FC=ifx | ||
export F77=ifx | ||
export F90=ifx | ||
|
||
export TEST_BASE=/apps/contrib/MET/12.0.0-beta3 | ||
export COMPILER=intel-oneapi-compilers_2022.2.1 | ||
export MET_SUBDIR=${TEST_BASE}/ | ||
export MET_TARBALL=v12.0.0-beta3.tar.gz | ||
export USE_MODULES=TRUE | ||
export MET_PYTHON=/work/noaa/ovp/miniconda/miniconda3/envs/metplus_v5.1_py3.10 | ||
export MET_PYTHON_CC=-I${MET_PYTHON}/include/python3.10 | ||
export MET_PYTHON_LD=-L${MET_PYTHON}/lib/python3.10/config-3.10-x86_64-linux-gnu\ -L${MET_PYTHON}/lib\ -lpython3.10\ -lcrypt\ -lpthread\ -ldl\ -lutil\ -lrt\ -lm\ -lm | ||
export EXTERNAL_LIBS=${TEST_BASE}/external_libs | ||
COMPILE_ATLAS=1 | ||
COMPILE_ECKIT=1 | ||
#export MET_PROJ=${EXTERNAL_LIBS} | ||
#export MET_ATLAS=${EXTERNAL_LIBS} | ||
#export MET_ECKIT=${EXTERNAL_LIBS} | ||
#export MET_GSL=${EXTERNAL_LIBS} | ||
#export MET_BUFRLIB=${EXTERNAL_LIBS} | ||
#export BUFRLIB_NAME=-lbufr_4 | ||
#export MET_HDF5=${EXTERNAL_LIBS} | ||
#export MET_NETCDF=${EXTERNAL_LIBS} | ||
#export MET_GRIB2CLIB=${EXTERNAL_LIBS}/lib | ||
#export MET_GRIB2CINC=${EXTERNAL_LIBS}/include | ||
#export GRIB2CLIB_NAME=-lg2c | ||
#export LIB_JASPER=${EXTERNAL_LIBS}/lib | ||
#export LIB_LIBPNG=${EXTERNAL_LIBS}/lib | ||
#export LIB_Z=${EXTERNAL_LIBS}/lib | ||
#export TIFF_INCLUDE_DIR=${EXTERNAL_LIBS}/include | ||
#export TIFF_LIB_DIR=${EXTERNAL_LIBS}/lib | ||
#export SQLITE_INCLUDE_DIR=${EXTERNAL_LIBS}/include | ||
#export SQLITE_LIB_DIR=${EXTERNAL_LIBS}/lib | ||
export MAKE_ARGS="-j 5" |
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
Oops, something went wrong.