Concepts for numeric_types #1631
-
Hello, In a nutshell, is there a more concise way to define a C++ concept for all cutlass numeric types? I am currently writing some C++ code using For example, for some However, is there a fundamental type, that would perhaps allow for one shot check with e.g. I ask this question because in my code, I am invoking something along the lines of Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Forgot to mention that Also, I am using concepts via libcu++ |
Beta Was this translation helpful? Give feedback.
-
Side-note, how do we get the underlying value type of a tensor? I use below but is there a simpler way? // For cute::Tensor input
using TensorValueType = typename cute::iterator_traits<decltype(input.data())>::value_type; |
Beta Was this translation helpful? Give feedback.
Unfortunately, we do not have plans to move to C++20, so we can't really start using concepts anytime soon. That said, I would expect
is_integral
to just work for integer subbyte too, and if they do not its likely an oversight that we would appreciate an MR for :)