Skip to content

Commit 3099002

Browse files
Try to fix MSVC error
error: A __device__ variable template cannot have a const qualified type on Windows
1 parent 01a8591 commit 3099002

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcudacxx/include/cuda/__memcpy_async/group_traits.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ _CCCL_BEGIN_NAMESPACE_CUDA
4141

4242
//! Trait to detect whether a group represents a CUDA thread block, for example: ``cooperative_groups::thread_block``.
4343
template <typename _Group>
44-
_CCCL_GLOBAL_CONSTANT bool is_thread_block_group_v = false;
44+
inline constexpr bool is_thread_block_group_v = false;
4545

4646
template <>
47-
_CCCL_GLOBAL_CONSTANT bool is_thread_block_group_v<cooperative_groups::thread_block> = true;
47+
inline constexpr bool is_thread_block_group_v<cooperative_groups::thread_block> = true;
4848

4949
//! Trait to detect whether a group represents a CUDA warp, for example:
5050
//! ``cooperative_groups::thread_block_tile<32, ...>``.
5151
template <typename _Group>
52-
_CCCL_GLOBAL_CONSTANT bool is_warp_group_v = false;
52+
inline constexpr bool is_warp_group_v = false;
5353

5454
template <typename _Parent>
55-
_CCCL_GLOBAL_CONSTANT bool is_warp_group_v<cooperative_groups::thread_block_tile<32, _Parent>> = true;
55+
inline constexpr bool is_warp_group_v<cooperative_groups::thread_block_tile<32, _Parent>> = true;
5656

5757
_CCCL_END_NAMESPACE_CUDA
5858

0 commit comments

Comments
 (0)