Skip to content

Commit 2d9a490

Browse files
committed
replace nice concept with nasty SFINAE cuz utils.h doesn't use c++20 :(
1 parent a92929d commit 2d9a490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/include/tt/runtime/utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#ifndef TT_RUNTIME_UTILS_H
66
#define TT_RUNTIME_UTILS_H
77

8-
#include <concepts>
98
#include <memory>
9+
#include <type_traits>
1010

1111
#pragma clang diagnostic push
1212
#pragma clang diagnostic ignored "-Wcovered-switch-default"
@@ -45,7 +45,7 @@ inline std::uint32_t dataTypeElementSize(::tt::target::DataType dataType) {
4545
}
4646
}
4747

48-
template <std::integral T>
48+
template <typename T, typename = std::enable_if_t<std::is_integral_v<T>>>
4949
inline std::vector<T> calculateStride(const std::vector<T> &shape) {
5050
assert(!shape.empty());
5151
std::vector<T> stride(shape.size(), 1);

0 commit comments

Comments
 (0)