Skip to content

Commit

Permalink
Merge pull request #60 from desihub/kpno-install-fix
Browse files Browse the repository at this point in the history
KPNO install fix
  • Loading branch information
sbailey authored Mar 22, 2024
2 parents d3d52bf + 9625758 commit 3c58a02
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
12 changes: 12 additions & 0 deletions conf/kpno-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# export MINICONDA=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
# miniforge solves fast and works well with conda-forge
export MINICONDA=https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh
export CONDAVERSION=2.0
export GRP=datasystems
export CONDAPRGENV=gnu

export CC="gcc"
export FC="gfortran"
export CFLAGS="-O3 -fPIC -pthread"
export FCFLAGS="-O3 -fPIC -pthread -fexceptions"
export NTMAKE=8
2 changes: 2 additions & 0 deletions conf/kpno-pkgs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source $CONFDIR/conda-pkgs.sh

6 changes: 6 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ source $CONDADIR/bin/activate
export PYVERSION=$(python -c "import sys; print(str(sys.version_info[0])+'.'+str(sys.version_info[1]))")
echo Using Python version $PYVERSION

# Prior to installing packages, switch to the fast libmamba package solver.
echo Installing the libmamba package solver
conda config --set solver classic
conda install -n base conda-libmamba-solver -y
conda config --set solver libmamba

# Install packages
source $INSTALLPKGS

Expand Down
6 changes: 5 additions & 1 deletion scripts/bootstrap-desi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ pip install git+https://github.com/desihub/desiutil.git
if [[ "${NERSC_HOST}" == "datatran" ]]; then
pkgs="desiutil desitree desiBackup desidatamodel desitransfer desida"
else
pkgs="desiutil desitree desispec specter gpu_specter desimodel desitarget specsim desisim fiberassign desisurvey surveysim redrock redrock-templates prospect desimeter simqso speclite specex QuasarNP desisim-testdata desisurveyops"
if [ "${HOSTNAME}" == "desi-7" ] || [ "${HOSTNAME}" == "desi-8" ]; then
pkgs="desiutil desitree desispec specter gpu_specter desimodel desitarget specsim desisim fiberassign desisurvey surveysim redrock redrock-templates prospect desimeter simqso speclite nightwatch"
else
pkgs="desiutil desitree desispec specter gpu_specter desimodel desitarget specsim desisim fiberassign desisurvey surveysim redrock redrock-templates prospect desimeter simqso speclite specex QuasarNP desisim-testdata desisurveyops"
fi
fi
export DESI_SPX_MKL=true
base=$(realpath $DESICONDA/..)
Expand Down

0 comments on commit 3c58a02

Please sign in to comment.