15
15
- name : Dependencies
16
16
run : |
17
17
.github/workflows/dependencies/dpcpp.sh
18
+ .github/workflows/dependencies/dependencies_ccache.sh
19
+ - name : Set Up Cache
20
+ uses : actions/cache@v3
21
+ with :
22
+ path : ~/.cache/ccache
23
+ key : ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
24
+ restore-keys : |
25
+ ccache-${{ github.workflow }}-${{ github.job }}-git-
18
26
- name : Build & Install
19
27
# mkl/rng/device/detail/mrg32k3a_impl.hpp has a number of sign-compare error
20
28
# mkl/rng/device/detail/mrg32k3a_impl.hpp has missing braces in array-array initalization
24
32
source /opt/intel/oneapi/setvars.sh
25
33
set -e
26
34
35
+ export CCACHE_COMPRESS=1
36
+ export CCACHE_COMPRESSLEVEL=10
37
+ export CCACHE_MAXSIZE=200M
38
+ export CCACHE_DEPEND=1
39
+ ccache -z
40
+
27
41
export CC=$(which icx)
28
42
export CXX=$(which icpx)
29
43
python3 -m pip install -U pip setuptools wheel
39
53
-DAMReX_SPACEDIM="3"
40
54
cmake --build build --target pip_install -j 2
41
55
56
+ ccache -s
57
+ du -hs ~/.cache/ccache
58
+
42
59
tests-icpx :
43
60
name : ICPX
44
61
runs-on : ubuntu-20.04
47
64
- name : Dependencies
48
65
run : |
49
66
.github/workflows/dependencies/dpcpp.sh
67
+ .github/workflows/dependencies/dependencies_ccache.sh
68
+ - name : Set Up Cache
69
+ uses : actions/cache@v3
70
+ with :
71
+ path : ~/.cache/ccache
72
+ key : ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
73
+ restore-keys : |
74
+ ccache-${{ github.workflow }}-${{ github.job }}-git-
50
75
- name : Build & Install
51
76
# mkl/rng/device/detail/mrg32k3a_impl.hpp has a number of sign-compare error
52
77
# mkl/rng/device/detail/mrg32k3a_impl.hpp has missing braces in array-array initalization
56
81
source /opt/intel/oneapi/setvars.sh
57
82
set -e
58
83
84
+ export CCACHE_COMPRESS=1
85
+ export CCACHE_COMPRESSLEVEL=10
86
+ export CCACHE_MAXSIZE=200M
87
+ ccache -z
88
+
59
89
export CC=$(which icx)
60
90
export CXX=$(which icpx)
61
91
python3 -m pip install -U pip setuptools wheel
69
99
-DAMReX_SPACEDIM="1;2;3"
70
100
cmake --build build --target pip_install -j 2
71
101
102
+ ccache -s
103
+ du -hs ~/.cache/ccache
104
+
72
105
- name : Run tests
73
106
run : |
74
107
set +e
@@ -95,13 +128,26 @@ jobs:
95
128
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
96
129
sudo apt-get update
97
130
sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-compiler-fortran intel-oneapi-mpi-devel
131
+ .github/workflows/dependencies/dependencies_ccache.sh
132
+ - name : Set Up Cache
133
+ uses : actions/cache@v3
134
+ with :
135
+ path : ~/.cache/ccache
136
+ key : ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
137
+ restore-keys : |
138
+ ccache-${{ github.workflow }}-${{ github.job }}-git-
98
139
- name : build
99
140
env : {CXXFLAGS: "-Werror"}
100
141
run : |
101
142
set +e
102
143
source /opt/intel/oneapi/setvars.sh
103
144
set -e
104
145
146
+ export CCACHE_COMPRESS=1
147
+ export CCACHE_COMPRESSLEVEL=10
148
+ export CCACHE_MAXSIZE=600M
149
+ ccache -z
150
+
105
151
export CXX=$(which icpc)
106
152
export CC=$(which icc)
107
153
python3 -m pip install -U pip setuptools wheel
@@ -116,6 +162,9 @@ jobs:
116
162
-DAMReX_SPACEDIM="1;2;3"
117
163
cmake --build build --target pip_install -j 2
118
164
165
+ ccache -s
166
+ du -hs ~/.cache/ccache
167
+
119
168
- name : Run tests
120
169
run : |
121
170
set +e
0 commit comments