mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-06-06 05:55:39 +00:00
Add int4_t support for check_err()
This commit is contained in:
@@ -149,10 +149,11 @@ check_err(const std::vector<T>& out,
|
||||
return res;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
typename std::enable_if<std::is_integral<T>::value && !std::is_same<T, bhalf_t>::value, bool>::type
|
||||
template <typename T, typename U>
|
||||
std::enable_if_t<((std::is_signed_v<T> && std::is_integral_v<T>) || std::is_same_v<T, ck::int4_t>) &&
|
||||
(std::is_signed_v<U> && std::is_integral_v<U>) && (sizeof(T) <= sizeof(U)) && !std::is_same_v<T, bhalf_t>, bool>
|
||||
check_err(const std::vector<T>& out,
|
||||
const std::vector<T>& ref,
|
||||
const std::vector<U>& ref,
|
||||
const std::string& msg = "Error: Incorrect results!",
|
||||
double = 0,
|
||||
double atol = 0)
|
||||
|
||||
Reference in New Issue
Block a user