Skip to content

Commit 79e299f

Browse files
committed
Add config for ubuntu 22.04
1 parent 147f907 commit 79e299f

File tree

3 files changed

+216
-0
lines changed

3 files changed

+216
-0
lines changed

configs/ubuntu-22.04-venv

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
2+
# OS type (linux OR osx)
3+
OSTYPE = linux
4+
5+
# Specify the template to use
6+
TEMPLATE = linux
7+
8+
# Python version to use
9+
PYVERSION = auto
10+
11+
# Packages to install with pip
12+
PIP_PKGS = setuptools future six Cython cycler kiwisolver pyparsing python-dateutil toml pyyaml pkgconfig pytz psutil numpy scipy matplotlib pandas memory_profiler astropy ephem ipython numba cmake nbstripout black wurlitzer ipympl ipykernel jupyterlab pillow pshmem tomlkit traitlets fitsio healpy ducc0
13+
14+
# Packages to install with conda
15+
CONDA_PKGS =
16+
17+
# Serial compilers
18+
19+
CC = gcc
20+
CXX = g++
21+
FC = gfortran
22+
23+
# Compiler to use for packages needed on the build machine
24+
25+
BUILD_CC = gcc
26+
BUILD_CXX = g++
27+
28+
# MPI compilers
29+
30+
MPICC = mpicc
31+
MPICXX = mpicxx
32+
MPIFC = mpifort
33+
MPI_CPPFLAGS = /usr/include
34+
MPI_LDFLAGS = /usr/lib/x86_64-linux-gnu
35+
MPI_CXXLIB = mpi_cxx
36+
MPI_LIB = mpi
37+
MPI_EXTRA_COMP =
38+
MPI_EXTRA_LINK =
39+
40+
# Compile flags
41+
42+
CFLAGS = -O3 -fPIC -pthread
43+
CXXFLAGS = -O3 -fPIC -pthread -std=c++11
44+
FCFLAGS = -O3 -fPIC -pthread -fallow-argument-mismatch
45+
46+
OPENMP_CFLAGS = -fopenmp
47+
OPENMP_CXXFLAGS = -fopenmp
48+
LDFLAGS = -lpthread -fopenmp
49+
50+
# Are we doing a cross-compile?
51+
52+
CROSS =
53+
54+
# Parallel builds
55+
MAKEJ = 2
56+
57+
# Define MKL location
58+
MKL =
59+
60+
# For BLAS/LAPACK, we use openblas
61+
62+
BLAS = -lopenblas -fopenmp -lm
63+
LAPACK = -llapack
64+
65+
# Boost toolchain name
66+
67+
BOOSTCHAIN = gcc
68+
69+
# Group and permissions to set
70+
71+
CHGRP =
72+
CHMOD =

configs/ubuntu-22.04-venv.notes

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
# Before running the install, run these commands once
3+
# to get dependencies from OS packages.
4+
5+
apt update
6+
7+
apt install \
8+
build-essential \
9+
gfortran \
10+
python3-dev \
11+
python3-pip \
12+
python3-virtualenv \
13+
virtualenv \
14+
cmake \
15+
pkg-config \
16+
curl \
17+
m4 \
18+
libtool \
19+
autoconf \
20+
automake \
21+
zlib1g-dev \
22+
libopenblas-dev \
23+
liblapack-dev \
24+
libboost-all-dev \
25+
libcfitsio-dev \
26+
libfftw3-dev \
27+
libflac-dev \
28+
libsuitesparse-dev

configs/ubuntu-22.04-venv.pkgs

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# This is the full set of packages that can be installed. This can be
2+
# used as a starting point for the package list for a particular config.
3+
# Some packages accept additional options which can be added after a colon ":".
4+
# These extra options are documented in the shell snippet for each package
5+
# in the top-level pkgs directory.
6+
#
7+
# Autotools. If you already have recent versions installed with your OS
8+
# package manager, then comment these out.
9+
#m4
10+
#libtool
11+
#autoconf
12+
#automake
13+
#
14+
# CMake.
15+
#cmake
16+
#
17+
# Install zlib. This is needed on some systems where the OS-provided zlib is
18+
# very ancient.
19+
#zlib
20+
#
21+
# Install OpenBLAS. Comment out if you are using MKL with the Intel compilers
22+
# or some other vendor BLAS / LAPACK solution.
23+
#openblas
24+
#
25+
# Python 3. Uncomment one of the following lines. You should only use the
26+
# "default" option for Docker images. All other configs should use either
27+
# a virtualenv or a conda environment. This will also install a set of
28+
# common base packages.
29+
python:virtualenv
30+
#python:conda
31+
#python:default
32+
#
33+
# Install MPICH. This step is optional and only needed in 2 cases:
34+
# 1. You don't have MPI available through system packages that is
35+
# compatible with the serial compilers you are using.
36+
# 2. You are building a docker container for use at NERSC with shifter
37+
# and need an MPICH compatible with the Cray one.
38+
#mpich
39+
#
40+
# Install mpi4py. This will use the MPI compilers specified in your config.
41+
mpi4py
42+
#
43+
# Install CFITSIO.
44+
#cfitsio
45+
#
46+
# Install FFTW3.
47+
fftw
48+
#
49+
# Install pyFFTW
50+
pyfftw
51+
#
52+
# Install libbz2. This is required to enable some features in the boost
53+
# build which are in turn needed by spt3g.
54+
#bzip2
55+
#
56+
# Install Boost.
57+
#boost
58+
#
59+
# Install HDF5 (serial version).
60+
hdf5
61+
#
62+
# Install h5py (using our HDF5).
63+
h5py
64+
#
65+
# Install healpy
66+
#healpy
67+
#
68+
# Install quaternionarray
69+
qarray
70+
#
71+
# Install Pixell
72+
pixell
73+
#
74+
# Install fitsio
75+
#fitsio
76+
#
77+
# Install aatm. Needed for some features of atmosphere simulations.
78+
aatm
79+
#
80+
# GMP and MPFR are needed by SuiteSparse
81+
#gmp
82+
#mpfr
83+
#
84+
# Install suitesparse
85+
#suitesparse
86+
#
87+
# Install libconviqt. 4-PI a_lm space beam convolution.
88+
conviqt
89+
#
90+
# Install libsharp. Distributed harmonic transforms.
91+
libsharp
92+
#
93+
# Install libmadam. Destriping map-maker.
94+
madam:--with-cfitsio=/usr --with-fftw=/usr
95+
#
96+
# Install FLAC, needed by spt3g
97+
#libflac
98+
#
99+
# Install SPT3G. Frame based data format.
100+
spt3g:boost=/usr flaclib=/usr/lib/x86_64-linux-gnu/libFLAC.so
101+
#
102+
# Install uncrustify
103+
uncrustify
104+
#
105+
# Install TIDAS. HDF5-based timestream data format.
106+
tidas
107+
#
108+
# Install PySM. Python Sky Model.
109+
pysm
110+
#
111+
# Install PyMPIT for environment testing. Useful for testing working
112+
# mpi4py stack.
113+
pympit
114+
#
115+
# Install TOAST.
116+
toast:lapack=/usr/lib/x86_64-linux-gnu/liblapack.so blas=/usr/lib/x86_64-linux-gnu/libopenblas.so

0 commit comments

Comments
 (0)