Skip to content

Commit fc31474

Browse files
committed
make compiler message give type information if failed
1 parent 28bc22c commit fc31474

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

common/cuda_hip/components/bitvector.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)