-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix eval output & context forwarding * add bit_width metafunction for simd * add matmul evaluator * add fmadd support * add simd matmul indexing * add contiguous_axis metafunction * refactor ndarray row/major offset metafunction * rename operands to array for matmul view * add matmul simd tests * mark offset constructor to constexpr * fix offset metafunction for constexpr * fix offset metafunction for constexpr * fix offset metafunction for constexpr
- Loading branch information
Showing
23 changed files
with
2,496 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef NMTOOLS_ARRAY_EVAL_SIMD_BIT_WIDTH_HPP | ||
#define NMTOOLS_ARRAY_EVAL_SIMD_BIT_WIDTH_HPP | ||
|
||
#include "nmtools/meta.hpp" | ||
|
||
namespace nmtools::meta | ||
{ | ||
namespace error | ||
{ | ||
template <typename...> | ||
struct BIT_WIDTH_UNSUPPORTED : detail::fail_t {}; | ||
} | ||
|
||
template <typename T> | ||
struct bit_width | ||
{ | ||
static constexpr auto value = error::BIT_WIDTH_UNSUPPORTED<T>{}; | ||
}; | ||
|
||
template <typename T> | ||
constexpr inline auto bit_width_v = bit_width<T>::value; | ||
} // namespace nmtools::meta | ||
|
||
#endif // NMTOOLS_ARRAY_EVAL_SIMD_BIT_WIDTH_HPP |
Oops, something went wrong.