* ginkgo@1.7.0 %oneapi: patch sycl w changes from ginkgo pr #1524 * constrain patch to %oneapi@2024:
This commit is contained in:
		| @@ -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>()); | ||||
|      } | ||||
|   | ||||
| @@ -98,6 +98,9 @@ class Ginkgo(CMakePackage, CudaPackage, ROCmPackage): | ||||
|         "+sycl", when="@:1.4.0", msg="For SYCL support, please use Ginkgo version 1.4.0 and newer." | ||||
|     ) | ||||
| 
 | ||||
|     # https://github.com/ginkgo-project/ginkgo/pull/1524 | ||||
|     patch("ginkgo-sycl-pr1524.patch", when="@1.7.0 +sycl %oneapi@2024:") | ||||
| 
 | ||||
|     # Skip smoke tests if compatible hardware isn't found | ||||
|     patch("1.4.0_skip_invalid_smoke_tests.patch", when="@1.4.0") | ||||
| 
 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 eugeneswalker
					eugeneswalker