Skip to content

Commit

Permalink
Merge pull request #8 from hpc4cmb/fixes
Browse files Browse the repository at this point in the history
Several package fixes
  • Loading branch information
tskisner committed May 19, 2021
2 parents 0e5d82d + b6417a3 commit 7248453
Show file tree
Hide file tree
Showing 20 changed files with 252 additions and 7 deletions.
7 changes: 7 additions & 0 deletions configs/cori-gcc-gpu.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
suitesparse
#
Expand Down
10 changes: 7 additions & 3 deletions configs/cori-gcc.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,22 @@ h5py
# Install healpy
healpy
#
# Install Pixell
pixell
#
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
suitesparse
#
Expand Down
10 changes: 7 additions & 3 deletions configs/cori-intel.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,22 @@ h5py
# Install healpy
healpy
#
# Install Pixell
pixell
#
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/docker-py3.7-debian.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
#suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/docker-toastdeps-py37.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
#suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/docker-ubuntu_20.04_gcc9_py38.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
#gmp
#mpfr
#
# Install suitesparse
#suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/linux-conda-nomkl.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/linux-conda.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/linux-venv.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/osx-homebrew-clang.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
#suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/osx-macports-gcc.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
#suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/simons-intel.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
gmp
mpfr
#
# Install suitesparse
suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/ubuntu-18.04-venv.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
#gmp
#mpfr
#
# Install suitesparse
#suitesparse
#
Expand Down
7 changes: 7 additions & 0 deletions configs/ubuntu-20.04-venv.pkgs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,19 @@ healpy
# Install quaternionarray
qarray
#
# Install Pixell
pixell
#
# Install fitsio
fitsio
#
# Install aatm. Needed for some features of atmosphere simulations.
aatm
#
# GMP and MPFR are needed by SuiteSparse
#gmp
#mpfr
#
# Install suitesparse
#suitesparse
#
Expand Down
42 changes: 42 additions & 0 deletions pkgs/gmp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

pkg="gmp"
pkgopts=$@
cleanup=""

version=6.2.0
pdir=gmp-${version}
pfile=${pdir}.tar.xz
src=$(eval "@TOP_DIR@/tools/fetch_check.sh" https://ftp.gnu.org/gnu/gmp/${pfile} ${pfile})

if [ "x${src}" = "x" ]; then
echo "Failed to fetch ${pkg}" >&2
exit 1
fi
cleanup="${src}"

log="../log_${pkg}"

echo "Building ${pkg}..." >&2

rm -rf ${pdir}
tar xf ${src} \
&& cd ${pdir} \
&& cleanup="${cleanup} $(pwd)" \
&& CC="@CC@" CFLAGS="@CFLAGS@" \
./configure \
--enable-static \
--disable-shared \
--with-pic \
--prefix="@AUX_PREFIX@" > ${log} 2>&1 \
&& make -j @MAKEJ@ >> ${log} 2>&1 \
&& make install >> ${log} 2>&1

if [ $? -ne 0 ]; then
echo "Failed to build ${pkg}" >&2
exit 1
fi

echo "Finished building ${pkg}" >&2
echo "${cleanup}"
exit 0
43 changes: 43 additions & 0 deletions pkgs/mpfr.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash

pkg="mpfr"
pkgopts=$@
cleanup=""

version=4.1.0
pdir=mpfr-${version}
pfile=${pdir}.tar.xz
src=$(eval "@TOP_DIR@/tools/fetch_check.sh" https://www.mpfr.org/mpfr-current/${pfile} ${pfile})

if [ "x${src}" = "x" ]; then
echo "Failed to fetch ${pkg}" >&2
exit 1
fi
cleanup="${src}"

log="../log_${pkg}"

echo "Building ${pkg}..." >&2

rm -rf ${pdir}
tar xf ${src} \
&& cd ${pdir} \
&& cleanup="${cleanup} $(pwd)" \
&& CC="@CC@" CFLAGS="@CFLAGS@" \
./configure \
--enable-static \
--disable-shared \
--with-pic \
--with-gmp="@AUX_PREFIX@" \
--prefix="@AUX_PREFIX@" > ${log} 2>&1 \
&& make -j @MAKEJ@ >> ${log} 2>&1 \
&& make install >> ${log} 2>&1

if [ $? -ne 0 ]; then
echo "Failed to build ${pkg}" >&2
exit 1
fi

echo "Finished building ${pkg}" >&2
echo "${cleanup}"
exit 0
Loading

0 comments on commit 7248453

Please sign in to comment.