CUTLASS 3.5.0 (#1411)

This commit is contained in:
Vijay Thakkar
2024-03-19 17:51:04 -04:00
committed by GitHub
parent ffa34e7075
commit 629f4653c3
468 changed files with 48729 additions and 7252 deletions
+2 -2
View File
@@ -316,11 +316,11 @@ safe_div(T const& t, U const& u) {
template <class T>
CUTE_HOST_DEVICE constexpr
auto
int32_t
log_2(T x) {
assert(x > 0);
static_assert(is_unsigned<T>::value, "Only to be used for unsigned integral types.");
return bit_width(x) - 1;
return static_cast<int32_t>(bit_width(x)) - 1;
}
} // namespace cute