CUTLASS 3.2 (#1024)

* CUTLASS 3.2
This commit is contained in:
ANIKET SHIVAM
2023-08-07 20:50:32 -04:00
committed by GitHub
parent a0d787b746
commit 4575443d44
392 changed files with 47559 additions and 7940 deletions
+7 -6
View File
@@ -84,7 +84,7 @@ namespace cute
__FILE__, __LINE__, #e, \
cudaGetErrorName(code), cudaGetErrorString(code)); \
fflush(stderr); \
exit(0); \
exit(1); \
} \
} while (0)
#endif
@@ -98,15 +98,16 @@ namespace cute
#endif
// A dummy function that uses compilation failure to print a type
template <class T>
template <class... T>
CUTE_HOST_DEVICE void
print_type() {
static_assert(sizeof(T) < 0, "Printing type T.");
static_assert(sizeof...(T) < 0, "Printing type T.");
}
template <class T>
template <class... T>
CUTE_HOST_DEVICE void
print_type(T&&) {
static_assert(sizeof(T) < 0, "Printing type T.");
print_type(T&&...) {
static_assert(sizeof...(T) < 0, "Printing type T.");
}
//
+8 -1
View File
@@ -124,7 +124,7 @@ print(char const& c) {
}
template <class T,
__CUTE_REQUIRES(CUTE_STL_NAMESPACE::is_integral<T>::value)>
__CUTE_REQUIRES(is_std_integral<T>::value)>
CUTE_HOST_DEVICE
void
print(T const& a) {
@@ -138,4 +138,11 @@ print(char const* format, T const&... t) {
printf(format, t...);
}
template <class... T>
CUTE_HOST_DEVICE
void
print(T const&... t) {
(print(t), ...);
}
} // end namespace cute
+34
View File
@@ -74,12 +74,15 @@ using CUTE_STL_NAMESPACE::is_void_v;
using CUTE_STL_NAMESPACE::is_base_of;
using CUTE_STL_NAMESPACE::is_base_of_v;
using CUTE_STL_NAMESPACE::is_const_v;
// using CUTE_STL_NAMESPACE::true_type;
// using CUTE_STL_NAMESPACE::false_type;
using CUTE_STL_NAMESPACE::conditional;
using CUTE_STL_NAMESPACE::conditional_t;
using CUTE_STL_NAMESPACE::remove_const_t;
using CUTE_STL_NAMESPACE::remove_cv_t;
using CUTE_STL_NAMESPACE::remove_reference_t;
@@ -89,6 +92,9 @@ using CUTE_STL_NAMESPACE::remove_extent;
using CUTE_STL_NAMESPACE::decay;
using CUTE_STL_NAMESPACE::decay_t;
using CUTE_STL_NAMESPACE::is_lvalue_reference;
using CUTE_STL_NAMESPACE::is_lvalue_reference_v;
using CUTE_STL_NAMESPACE::is_reference;
using CUTE_STL_NAMESPACE::is_trivially_copyable;
@@ -97,8 +103,16 @@ using CUTE_STL_NAMESPACE::is_same_v;
using CUTE_STL_NAMESPACE::is_arithmetic;
using CUTE_STL_NAMESPACE::is_unsigned;
using CUTE_STL_NAMESPACE::is_unsigned_v;
using CUTE_STL_NAMESPACE::is_signed;
using CUTE_STL_NAMESPACE::is_signed_v;
using CUTE_STL_NAMESPACE::make_signed;
using CUTE_STL_NAMESPACE::make_signed_t;
// using CUTE_STL_NAMESPACE::is_integral;
template <class T>
using is_std_integral = CUTE_STL_NAMESPACE::is_integral<T>;
using CUTE_STL_NAMESPACE::is_empty;
@@ -107,6 +121,26 @@ using CUTE_STL_NAMESPACE::invoke_result_t;
// <utility>
using CUTE_STL_NAMESPACE::declval;
template< class T >
constexpr T&& forward(remove_reference_t<T>& t) noexcept
{
return static_cast<T&&>(t);
}
template< class T >
constexpr T&& forward(remove_reference_t<T>&& t) noexcept
{
static_assert(! is_lvalue_reference_v<T>,
"T cannot be an lvalue reference (e.g., U&).");
return static_cast<T&&>(t);
}
template< class T >
constexpr remove_reference_t<T>&& move( T&& t ) noexcept
{
return static_cast<remove_reference_t<T>&&>(t);
}
// <limits>
using CUTE_STL_NAMESPACE::numeric_limits;