File tree Expand file tree Collapse file tree
common/cuda_hip/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,7 +145,8 @@ from_sorted_indices(
145145// We pre-compile the routine for test in library to avoid thrust issue before
146146// CUDA 12.4
147147#ifdef EXEC_TYPE
148- static_assert (false , " must only compile this kernel in ginkgo library" );
148+ static_assert (std::is_same_v<IndexIterator, void >,
149+ " must only compile this kernel in ginkgo library" );
149150#else
150151 using index_type = typename std::iterator_traits<IndexIterator>::value_type;
151152 using storage_type = typename device_bitvector<index_type>::storage_type;
@@ -187,7 +188,7 @@ from_sorted_indices(
187188 typename std::iterator_traits<IndexIterator>::value_type size)
188189
189190// Before CUDA 12.4 (or NCCL 2.3), THRUST_CUB_WRAPPED_NAMESPACE is required for
190- // seperating the thrust implementation in different shared library. The test
191+ // separating the thrust implementation in different shared library. The test
191192// also compiles thrust kernel, so it leads the thrust issue between test and
192193// ginkgo library. Compiling the kernel used by the test in the library to
193194// work around this issue.
You can’t perform that action at this time.
0 commit comments