Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ jobs:
- name: install dependencies
run: |
.github/workflows/dependencies/nvcc11.sh
- name: CCache Cache
uses: actions/cache@v2
# - once stored under a key, they become immutable (even if local cache path content changes)
# - for a refresh the key has to change, e.g., hash of a tracked file in the key
with:
path: ~/.ccache
key: ccache-cuda-gnumake-${{ hashFiles('.github/workflows/cuda.yml') }}-${{ hashFiles('cmake/dependencies/AMReX.cmake') }}
restore-keys: |
ccache-cuda-gnumake-${{ hashFiles('.github/workflows/cuda.yml') }}-
ccache-cuda-gnumake-
- name: build WarpX
run: |
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/dependencies/hip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ sudo apt-get update
# other: rocm-dev rocm-utils
sudo apt-get install -y --no-install-recommends \
build-essential \
ccache \
gfortran \
libhiredis-dev \
libnuma-dev \
libopenmpi-dev \
libzstd-dev \
ninja-build \
openmpi-bin \
rocm-dev \
Expand All @@ -48,3 +49,13 @@ which clang++
sudo curl -L -o /usr/local/bin/cmake-easyinstall https://git.io/JvLxY
sudo chmod a+x /usr/local/bin/cmake-easyinstall
export CEI_SUDO="sudo"
export CEI_TMP="/tmp/cei"

# ccache 4.2+
#
CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \
git+https://github.com/ccache/[email protected] \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_DOCUMENTATION=OFF \
-DENABLE_TESTING=OFF \
-DWARNINGS_AS_ERRORS=OFF
2 changes: 1 addition & 1 deletion .github/workflows/dependencies/nvcc11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export CEI_TMP="/tmp/cei"

# ccache 4.2+
#
cmake-easyinstall --prefix=/usr/local \
CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \
git+https://github.com/ccache/[email protected] \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_DOCUMENTATION=OFF \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependencies/nvhpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export CEI_TMP="/tmp/cei"

# ccache 4.2+
#
cmake-easyinstall --prefix=/usr/local \
CXXFLAGS="" cmake-easyinstall --prefix=/usr/local \
git+https://github.com/ccache/[email protected] \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_DOCUMENTATION=OFF \
Expand Down