@@ -148,6 +148,57 @@ jobs:
148148 ccache -s
149149 du -hs ~/.cache/ccache
150150
151+ no-tests-oneapi-sycl-amd :
152+ name : oneAPI SYCL for AMD GPUs
153+ runs-on : ubuntu-20.04
154+ env :
155+ CODEPLAYTOKEN : ${{ secrets.CODEPLAYTOKEN }}
156+ steps :
157+ - uses : actions/checkout@v3
158+ - name : Dependencies
159+ if : ${{ env.CODEPLAYTOKEN != '' }}
160+ run : |
161+ .github/workflows/dependencies/dependencies_hip.sh 5.4.6
162+ .github/workflows/dependencies/dependencies_dpcpp.sh
163+ .github/workflows/dependencies/dependencies_codeplay.sh ${{ env.CODEPLAYTOKEN }}
164+ .github/workflows/dependencies/dependencies_ccache.sh
165+ - name : Set Up Cache
166+ if : ${{ env.CODEPLAYTOKEN != '' }}
167+ uses : actions/cache@v3
168+ with :
169+ path : ~/.cache/ccache
170+ key : ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
171+ restore-keys : |
172+ ccache-${{ github.workflow }}-${{ github.job }}-git-
173+ - name : Build & Install
174+ if : ${{ env.CODEPLAYTOKEN != '' }}
175+ # mkl/rng/device/detail/mrg32k3a_impl.hpp has a number of sign-compare error
176+ # mkl/rng/device/detail/mrg32k3a_impl.hpp has missing braces in array-array initalization
177+ env : {CXXFLAGS: "-fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx90a -fno-operator-names -Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wnon-virtual-dtor -Wno-sign-compare -Wno-missing-braces"}
178+ run : |
179+ export CCACHE_COMPRESS=1
180+ export CCACHE_COMPRESSLEVEL=10
181+ export CCACHE_MAXSIZE=55M
182+ export CCACHE_DEPEND=1
183+ ccache -z
184+
185+ set +e
186+ source /opt/intel/oneapi/setvars.sh --include-intel-llvm
187+ set -e
188+ cmake -S . -B build \
189+ -DCMAKE_VERBOSE_MAKEFILE=ON \
190+ -DAMReX_EB=OFF \
191+ -DAMReX_ENABLE_TESTS=OFF \
192+ -DAMReX_GPU_BACKEND=SYCL \
193+ -DAMReX_SYCL_SUB_GROUP_SIZE=64 \
194+ -DCMAKE_C_COMPILER=$(which icx) \
195+ -DCMAKE_CXX_COMPILER=$(which clang++) \
196+ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
197+ cmake --build build --parallel 2
198+
199+ ccache -s
200+ du -hs ~/.cache/ccache
201+
151202# "Classic" EDG Intel Compiler
152203 tests-icc :
153204 name : ICC [tests]
0 commit comments