Skip to content

Commit 69595c6

Browse files
committed
Remove redundant static assert
1 parent 3320b55 commit 69595c6

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

libcudacxx/include/cuda/__algorithm/fill.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ _CCCL_HOST_API void __fill_bytes_impl(stream_ref __stream, ::cuda::std::span<_Ds
4949
{
5050
static_assert(!::cuda::std::is_const_v<_DstTy>, "Fill destination can't be const");
5151
static_assert(::cuda::std::is_trivially_copyable_v<_DstTy>);
52-
static_assert(sizeof(_ValueTy) == 1 || sizeof(_ValueTy) == 2 || sizeof(_ValueTy) == 4,
53-
"Fill value must be 1, 2, or 4 bytes (matching CUDA driver memset support)");
5452

5553
const auto __size_bytes = __dst.size_bytes();
5654
if constexpr (sizeof(_ValueTy) > 1)

libcudacxx/include/cuda/__driver/driver_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ _CCCL_HOST_API void __memsetAsync(void* __dst, _Tp __value, ::cuda::std::size_t
392392
}
393393
else
394394
{
395-
static_assert(::cuda::std::__always_false_v<_Tp>, "Unsupported type for memset");
395+
static_assert(::cuda::std::__always_false_v<_Tp>, "Unsupported type for memset, must be 1, 2, or 4 bytes");
396396
}
397397
}
398398

0 commit comments

Comments
 (0)