Skip to content

Commit b583683

Browse files
authored
Merge pull request #143 from LSSTDESC/issue/131/take-2
Issue/131/take-2
2 parents af9f559 + 71244d4 commit b583683

4 files changed

Lines changed: 11 additions & 21 deletions

File tree

conda/build-nersc.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module swap PrgEnv-intel PrgEnv-gnu
55
module unload craype-network-aries
66
module unload cray-libsci
77
module unload craype
8-
module load cray-mpich-abi/8.1.25
8+
module load cray-mpich-abi/8.1.28
99

1010
export LD_LIBRARY_PATH=$CRAY_MPICH_BASEDIR/mpich-gnu-abi/8.2/lib:$LD_LIBRARY_PATH
1111

@@ -18,6 +18,10 @@ commonWeeklyBuildDir=/global/common/software/lsst/gitlab/desc-python-int
1818
commonDevBuildDir=/global/common/software/lsst/gitlab/desc-python-dev
1919
commonProdBuildDir=/global/common/software/lsst/gitlab/desc-python-prod
2020

21+
export BUILD_ID_DATE=`echo "$(date "+%F-%M-%S")"`
22+
export CI_COMMIT_REF_NAME=prod
23+
export CI_PIPELINE_ID=$BUILD_ID_DATE
24+
2125
if [ "$CI_COMMIT_REF_NAME" = "dev" ]; # dev
2226
then
2327
curBuildDir=$commonDevBuildDir/$CI_PIPELINE_ID
@@ -66,7 +70,7 @@ pip install --no-cache-dir -r ./pip-pack.txt
6670

6771
conda clean -y -a
6872

69-
conda config --set env_prompt "(desc-py)" --system
73+
conda config --set env_prompt "(desc-py)" --env
7074

7175
conda env export --no-builds > $curBuildDir/desc-python-nersc-$CI_PIPELINE_ID-nobuildinfo.yml
7276
conda env export > $curBuildDir/desc-python-nersc-$CI_PIPELINE_ID.yml

conda/conda-pack.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ numba
4646
numdifftools
4747
numpy
4848
pandas
49+
parsl
4950
pip
5051
pot
5152
psycopg2

conda/install-desc-python.sh

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,24 @@ fi
1616
# Set up environment if running at NERSC
1717
if [ "$NERSC_HOST" ]
1818
then
19-
if [ "$NERSC_HOST" == "cori" ]
20-
then
21-
module unload python
22-
module swap PrgEnv-intel PrgEnv-gnu
23-
module unload cray-libsci
24-
module unload cray-mpich
25-
module load cray-mpich-abi/7.7.19
26-
export LD_LIBRARY_PATH=$CRAY_MPICH_BASEDIR/mpich-gnu-abi/8.2/lib:$LD_LIBRARY_PATH
27-
else
28-
module unload cray-libsci
29-
module load cray-mpich-abi/8.1.15
30-
fi
19+
module unload cray-libsci
20+
module load cray-mpich-abi/8.1.28
3121
module list
3222
fi
3323

3424

3525
unset PYTHONPATH
3626

37-
#curl -LO https://repo.anaconda.com/miniconda/Miniconda3-py38_4.9.2-Linux-x86_64.sh
38-
#bash ./Miniconda3-py38_4.9.2-Linux-x86_64.sh -b -p $1
39-
4027
# Try Mambaforge latest
4128
url="https://github.com/conda-forge/miniforge/releases/latest/download"
4229
url="$url/Mambaforge-Linux-x86_64.sh"
4330
curl -LO "$url"
4431

4532
bash ./Mambaforge-Linux-x86_64.sh -b -p $1
4633
which python
47-
source $1/etc/profile.d/conda.sh
48-
conda activate base
34+
source $1/bin/activate
4935
#conda install -c conda-forge -y mamba
50-
mamba install -c conda-forge -y mpich=3.4.*=external_*
36+
mamba install -c conda-forge -y mpich=4.0.3=external_*
5137
which python
5238
which conda
5339

conda/pip-pack.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
ceci
22
fits2hdf
3-
parsl
43
https://bitbucket.org/yymao/helpers/get/v0.3.2.tar.gz
54
https://github.com/LSSTDESC/descqa/archive/v2.8.0.tar.gz
65
https://github.com/yymao/FoFCatalogMatching/archive/v0.1.0.tar.gz

0 commit comments

Comments
 (0)