Skip to content

Commit 97d7591

Browse files
committed
capture latest build changes
1 parent e405fd4 commit 97d7591

1 file changed

Lines changed: 23 additions & 7 deletions

File tree

conda/build-nersc.sh

100644100755
Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@
22

33
module unload python
44
module swap PrgEnv-intel PrgEnv-gnu
5-
module unload craype-network-aries
65
module unload cray-libsci
7-
module unload craype
86
module load cray-mpich-abi/8.1.28
97

10-
export LD_LIBRARY_PATH=$CRAY_MPICH_BASEDIR/mpich-gnu-abi/8.2/lib:$LD_LIBRARY_PATH
8+
#export LD_LIBRARY_PATH=$CRAY_MPICH_BASEDIR/mpich-gnu-abi/8.2/lib:$LD_LIBRARY_PATH
119

1210
unset PYTHONPATH
1311

12+
setup_conda() {
13+
source $curBuildDir/py/etc/profile.d/conda.sh
14+
}
15+
16+
config_cosmosis() {
17+
source ${CONDA_PREFIX}/bin/cosmosis-configure
18+
}
19+
1420
# Set to 1 to install into the common sofware area
1521
installFlag=$1
1622

@@ -49,23 +55,33 @@ cd $curBuildDir
4955

5056
# Build Steps
5157

58+
export PYTHONNOUSERSITE=1
59+
export CONDA_CACHE_DIR=$curBuildDir/conda/pkgs
60+
5261
# Try Mambaforge latest
5362
url="https://github.com/conda-forge/miniforge/releases/latest/download"
5463
url="$url/Mambaforge-Linux-x86_64.sh"
5564
curl -LO "$url"
5665

5766
bash ./Mambaforge-Linux-x86_64.sh -b -p $curBuildDir/py
58-
source $curBuildDir/py/etc/profile.d/conda.sh
67+
setup_conda
5968
conda activate base
6069

61-
mamba install -c conda-forge -y mpich=4.0.3=external_*
62-
63-
#export LD_LIBRARY_PATH=/opt/cray/pe/mpt/7.7.19/gni/mpich-gnu-abi/8.2/lib:$LD_LIBRARY_PATH
70+
mamba install -c conda-forge -y mpich=4.1.2=external_*
6471

6572

6673
cd $curBuildDir
6774

75+
python -m pip cache purge
76+
6877
mamba install -c conda-forge -y --file ./conda-pack.txt
78+
79+
#install cosmosis for firecrown
80+
#export CSL_DIR=${PWD}/cosmosis-standard-library
81+
#conda env config vars set CSL_DIR=${PWD}/cosmosis-standard-library
82+
#config_cosmosis
83+
#cosmosis-build-standard-library
84+
6985
pip install --no-cache-dir -r ./pip-pack.txt
7086

7187
conda clean -y -a

0 commit comments

Comments
 (0)