1515    - name : Dependencies 
1616      run : | 
1717        .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- 
1826name : Build & Install 
1927      #  mkl/rng/device/detail/mrg32k3a_impl.hpp has a number of sign-compare error
2028      #  mkl/rng/device/detail/mrg32k3a_impl.hpp has missing braces in array-array initalization
2432        source /opt/intel/oneapi/setvars.sh 
2533        set -e 
2634
35+         export CCACHE_COMPRESS=1 
36+         export CCACHE_COMPRESSLEVEL=10 
37+         export CCACHE_MAXSIZE=200M 
38+         export CCACHE_DEPEND=1 
39+         ccache -z 
40+ 
2741        export CC=$(which icx) 
2842        export CXX=$(which icpx) 
2943        python3 -m pip install -U pip setuptools wheel 
3953              -DAMReX_SPACEDIM="3" 
4054        cmake --build build --target pip_install -j 2 
4155
56+         ccache -s 
57+         du -hs ~/.cache/ccache 
58+ 
4259tests-icpx :
4360    name : ICPX 
4461    runs-on : ubuntu-20.04 
4764    - name : Dependencies 
4865      run : | 
4966        .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- 
5075name : Build & Install 
5176      #  mkl/rng/device/detail/mrg32k3a_impl.hpp has a number of sign-compare error
5277      #  mkl/rng/device/detail/mrg32k3a_impl.hpp has missing braces in array-array initalization
5681        source /opt/intel/oneapi/setvars.sh 
5782        set -e 
5883
84+         export CCACHE_COMPRESS=1 
85+         export CCACHE_COMPRESSLEVEL=10 
86+         export CCACHE_MAXSIZE=200M 
87+         ccache -z 
88+ 
5989        export CC=$(which icx) 
6090        export CXX=$(which icpx) 
6191        python3 -m pip install -U pip setuptools wheel 
6999              -DAMReX_SPACEDIM="1;2;3" 
70100        cmake --build build --target pip_install -j 2 
71101
102+         ccache -s 
103+         du -hs ~/.cache/ccache 
104+ 
72105name : Run tests 
73106      run : | 
74107        set +e 
@@ -95,13 +128,26 @@ jobs:
95128        echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list 
96129        sudo apt-get update 
97130        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- 
98139name : build 
99140      env : {CXXFLAGS: "-Werror"} 
100141      run : | 
101142        set +e 
102143        source /opt/intel/oneapi/setvars.sh 
103144        set -e 
104145
146+         export CCACHE_COMPRESS=1 
147+         export CCACHE_COMPRESSLEVEL=10 
148+         export CCACHE_MAXSIZE=600M 
149+         ccache -z 
150+ 
105151        export CXX=$(which icpc) 
106152        export CC=$(which icc) 
107153        python3 -m pip install -U pip setuptools wheel 
@@ -116,6 +162,9 @@ jobs:
116162              -DAMReX_SPACEDIM="1;2;3" 
117163        cmake --build build --target pip_install -j 2 
118164
165+         ccache -s 
166+         du -hs ~/.cache/ccache 
167+ 
119168name : Run tests 
120169      run : | 
121170        set +e 
0 commit comments