This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
environment.sh
74 lines (62 loc) · 2.61 KB
/
environment.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Bash file to load modules and set environment
# variables for compilers and external libraries
# Set project home using realpath
# of current directory
export PROJECT_HOME=$(realpath .)
# Set SiteHome to realpath of SiteName
SiteHome="$PROJECT_HOME/sites/$SiteName"
# Load modules from the site directory
source $SiteHome/environment.sh
# Path to parallel HDF5 installtion with fortran support
if [ $HDF5_HOME ]; then
BuildHDF5=false
else
BuildHDF5=true
export HDF5_HOME="$PROJECT_HOME/software/hdf5/HDF5/install-$SiteName"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HDF5_HOME/lib"
export LIBRARY_PATH="$LD_LIBRARY_PATH"
fi
# Store path to bittree
export BITTREE_2D_HOME="$PROJECT_HOME/software/bittree/Bittree/install-$SiteName/2D"
export BITTREE_3D_HOME="$PROJECT_HOME/software/bittree/Bittree/install-$SiteName/3D"
# Store path to amrex as environment variable
export AMREX2D_HOME="$PROJECT_HOME/software/amrex/AMReX/install-$SiteName/2D"
export AMREX3D_HOME="$PROJECT_HOME/software/amrex/AMReX/install-$SiteName/3D"
# Store path to Hypre
export HYPRE_HOME="$PROJECT_HOME/software/hypre/HYPRE/install-$SiteName"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HYPRE_HOME/lib"
export LIBRARY_PATH="$LD_LIBRARY_PATH"
# Store path to ANN
export ANN_HOME="$PROJECT_HOME/software/ann/ANN"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ANN_HOME/lib:$HPC_TOOLKIT_HOME/lib/hpctoolkit"
export LIBRARY_PATH="$LD_LIBRARY_PATH"
# Path to Flash-X
export FLASHX_HOME="$PROJECT_HOME/software/flashx/Flash-X"
# Flash-X test archive paths
if ! [ $FLASHTEST_MAIN_ARCHIVE ]; then
export FLASHTEST_MAIN_ARCHIVE="$PROJECT_HOME/tests/MainArchive"
fi
if ! [ $FLASHTEST_LOCAL_ARCHIVE ]; then
export FLASHTEST_LOCAL_ARCHIVE="$PROJECT_HOME/tests/LocalArchive"
fi
# Output information to stdout
echo "---------------------------------------------------------------------------------------"
echo "Execution Environment:"
echo "---------------------------------------------------------------------------------------"
echo "PROJECT_HOME=$PROJECT_HOME"
echo "SITE_HOME=$SiteHome"
echo "MPI_HOME=$MPI_HOME"
echo "HDF5_HOME=$HDF5_HOME"
echo "FLASHX_HOME=$FLASHX_HOME"
echo "AMREX2D_HOME=$AMREX2D_HOME"
echo "AMREX3D_HOME=$AMREX3D_HOME"
echo "NVHPC_HOME=$NVHPC_HOME"
echo "HYPRE_HOME=$HYPRE_HOME"
echo "ANN_HOME=$ANN_HOME"
echo "BITTREE_2D_HOME=$BITTREE_2D_HOME"
echo "BITTREE_3D_HOME=$BITTREE_3D_HOME"
echo "FLASHTEST_MAIN_ARCHIVE=$FLASHTEST_MAIN_ARCHIVE"
echo "FLASHTEST_LOCAL_ARCHIVE=$FLASHTEST_LOCAL_ARCHIVE"
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
echo "HPC_TOOLKIT_HOME=$HPC_TOOLKIT_HOME"
echo "---------------------------------------------------------------------------------------"