summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ginkgo/ginkgo-sycl-pr1524.patch
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/ginkgo/ginkgo-sycl-pr1524.patch')
-rw-r--r--var/spack/repos/builtin/packages/ginkgo/ginkgo-sycl-pr1524.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ginkgo/ginkgo-sycl-pr1524.patch b/var/spack/repos/builtin/packages/ginkgo/ginkgo-sycl-pr1524.patch
new file mode 100644
index 0000000000..7d1f97fc15
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ginkgo/ginkgo-sycl-pr1524.patch
@@ -0,0 +1,13 @@
+diff -ruN spack-src/dpcpp/components/cooperative_groups.dp.hpp spack-src-patched/dpcpp/components/cooperative_groups.dp.hpp
+--- spack-src/dpcpp/components/cooperative_groups.dp.hpp 2024-01-18 17:25:05.336926061 +0000
++++ spack-src-patched/dpcpp/components/cooperative_groups.dp.hpp 2024-01-18 17:26:50.649595478 +0000
+@@ -240,7 +240,8 @@
+ {
+ // todo: change it when OneAPI update the mask related api
+ return sycl::reduce_over_group(
+- *this, (predicate != 0) ? mask_type(1) << data_.rank : mask_type(0),
++ static_cast<sycl::sub_group>(*this),
++ (predicate != 0) ? mask_type(1) << data_.rank : mask_type(0),
+ sycl::plus<mask_type>());
+ }
+