@@ -94,7 +94,7 @@ enum class tma_swizzle
9494 case tma_oob_fill::nan:
9595 return ::CU_TENSOR_MAP_FLOAT_OOB_FILL_NAN_REQUEST_ZERO_FMA;
9696 default :
97- _CCCL_UNREACHABLE ();
97+ ::cuda::std::unreachable ();
9898 }
9999}
100100
@@ -112,7 +112,7 @@ __to_cutensor_map(tma_l2_fetch_size __l2_fetch_size) noexcept
112112 case tma_l2_fetch_size::bytes256:
113113 return ::CU_TENSOR_MAP_L2_PROMOTION_L2_256B;
114114 default :
115- _CCCL_UNREACHABLE ();
115+ ::cuda::std::unreachable ();
116116 }
117117}
118118
@@ -128,7 +128,7 @@ __to_cutensor_map(tma_interleave_layout __interleave_layout) noexcept
128128 case tma_interleave_layout::bytes32:
129129 return ::CU_TENSOR_MAP_INTERLEAVE_32B;
130130 default :
131- _CCCL_UNREACHABLE ();
131+ ::cuda::std::unreachable ();
132132 }
133133}
134134
@@ -153,7 +153,7 @@ __to_cutensor_map(tma_interleave_layout __interleave_layout) noexcept
153153 return ::CU_TENSOR_MAP_SWIZZLE_128B_ATOM_64B;
154154# endif // _CCCL_CTK_AT_LEAST(12, 8)
155155 default :
156- _CCCL_UNREACHABLE ();
156+ ::cuda::std::unreachable ();
157157 }
158158}
159159
@@ -405,11 +405,11 @@ __get_tensor_sizes(const ::DLTensor& __tensor, int __rank, ::CUtensorMapDataType
405405{
406406 using ::cuda::std::int64_t ;
407407 __tma_strides_array_t __output_strides{1 }; // inner stride is implicit = 1
408- const auto __input_strides = __tensor.strides ;
409- const auto __input_sizes = __tensor.shape ;
410- const auto __alignment = (__interleave_layout == tma_interleave_layout::bytes32) ? 32 : 16 ;
411- constexpr auto __max_allowed_stride_bytes = int64_t {1 } << 40 ; // 2^40
412- int64_t __cumulative_size = 1 ;
408+ const auto __input_strides = __tensor.strides ;
409+ const auto __input_sizes = __tensor.shape ;
410+ const auto __alignment = (__interleave_layout == tma_interleave_layout::bytes32) ? 32 : 16 ;
411+ constexpr auto __max_allowed_stride_bytes = int64_t {1 } << 40 ; // 2^40
412+ [[maybe_unused]] int64_t __cumulative_size = 1 ;
413413 if (__input_strides == nullptr )
414414 {
415415 for (int __i = 0 ; __i < __rank - 1 ; ++__i)
0 commit comments