From 2f4e6a587342cea0e7724708cb1144f725e70ae7 Mon Sep 17 00:00:00 2001 From: Kaan Olgu Date: Sat, 17 Jun 2023 11:29:18 +0000 Subject: [PATCH] SYCL/SYCL2020 Instructions for Spack --- docs/spack_instructions.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/docs/spack_instructions.md b/docs/spack_instructions.md index 93a2aff..9bd6d7f 100644 --- a/docs/spack_instructions.md +++ b/docs/spack_instructions.md @@ -153,4 +153,31 @@ # Example 3: OMP backend $ spack install babelstream +kokkos backend=omp dir= -``` \ No newline at end of file +``` + + +## SYCL2020 +* Instructions for installing the intel compilers are provided [here](https://spack.readthedocs.io/en/latest/build_systems/inteloneapipackage.html#building-a-package-with-icx) + +| Flag | Definition | +|-----------| ----------------------------------| +| implementation | 3 different implementation options:
- OneAPI-ICPX
- OneAPI-DPCPP
- Compute-CPP
| + +```shell +# Example 1: No implementation option specified (build for OneAPI-ICPX) + $ spack install babelstream%oneapi +sycl2020 + +# Example 2: OneAPI-DPCPP implementation + $ spack install babelstream +sycl2020 implementation=ONEAPI-DPCPP +``` + +## SYCL + +| Flag | Definition | +|-----------| ----------------------------------| +| implementation | 2 different implementation options:
- OneAPI-DPCPP
- Compute-CPP
| + +```shell +# Example 1: OneAPI-DPCPP implementation + $ spack install babelstream +sycl2020 implementation=ONEAPI-DPCPP +```