-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b23a94c
commit 2486cb5
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2024 The WarpX Community | ||
# | ||
# License: BSD-3-Clause-LBNL | ||
# Authors: Luca Fedeli | ||
|
||
set -eu -o pipefail | ||
|
||
# `man apt.conf`: | ||
# Number of retries to perform. If this is non-zero APT will retry | ||
# failed files the given number of times. | ||
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries | ||
|
||
# This dependency file is currently used within a docker container, | ||
# which does not come (among others) with wget, xz-utils, curl, git, | ||
# ccache, and pkg-config pre-installed. | ||
sudo apt-get -qqq update | ||
sudo apt-get install -y \ | ||
cmake \ | ||
clang-18 \ | ||
clang-tidy-18 \ | ||
libblas-dev \ | ||
libc++-18-dev \ | ||
libboost-math-dev \ | ||
libfftw3-dev \ | ||
libfftw3-mpi-dev \ | ||
libhdf5-openmpi-dev \ | ||
liblapack-dev \ | ||
libopenmpi-dev \ | ||
libomp-18-dev \ | ||
ninja-build \ | ||
wget \ | ||
xz-utils \ | ||
curl \ | ||
git \ | ||
ccache \ | ||
pkg-config | ||
|
||
# ccache | ||
$(dirname "$0")/ccache.sh | ||
|
||
# Use clang 18 | ||
export CXX=$(which clang++-18) | ||
export CC=$(which clang-18) | ||
|
||
# cmake-easyinstall | ||
# | ||
sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.com/ax3l/cmake-easyinstall/main/cmake-easyinstall | ||
sudo chmod a+x /usr/local/bin/cmake-easyinstall | ||
export CEI_SUDO="sudo" | ||
export CEI_TMP="/tmp/cei" | ||
|
||
# BLAS++ & LAPACK++ | ||
cmake-easyinstall \ | ||
--prefix=/usr/local \ | ||
git+https://github.com/icl-utk-edu/blaspp.git \ | ||
-Duse_openmp=OFF \ | ||
-Dbuild_tests=OFF \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON | ||
|
||
cmake-easyinstall \ | ||
--prefix=/usr/local \ | ||
git+https://github.com/icl-utk-edu/lapackpp.git \ | ||
-Duse_cmake_find_lapack=ON \ | ||
-Dbuild_tests=OFF \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON |