-
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.
* update compiler notes * suport arbitrary sized utl tuple * add type_name metafunction to get typename at compile-time * restructure compute_graph & functor files & deps * new aliasing logic using compile-time hashing * update tests * fix hip compilation * try to fix risc-v ci * temporarily allow matmul test to fail on sycl (for pocl) * reduce compilation jobs to avoid oom on gcc
- Loading branch information
Showing
143 changed files
with
4,510 additions
and
2,790 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,5 @@ pocl | |
*.ll | ||
llvm.sh | ||
install | ||
amdgpu-* | ||
amdgpu-* | ||
*.dot |
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,34 @@ | ||
#ifndef NMTOOLS_ARRAY_ARRAY_ATLEAST_ND_HPP | ||
#define NMTOOLS_ARRAY_ARRAY_ATLEAST_ND_HPP | ||
|
||
#include "nmtools/array/view/atleast_nd.hpp" | ||
#include "nmtools/array/eval.hpp" | ||
|
||
namespace nmtools::array | ||
{ | ||
/** | ||
* @brief Eagerly compute atleast_nd. | ||
* | ||
* @tparam output_t | ||
* @tparam context_t | ||
* @tparam array_t | ||
* @param array Input array | ||
* @param context Evaluation context | ||
* @param output | ||
* @return constexpr auto | ||
*/ | ||
template <typename output_t=none_t, typename context_t=none_t, typename resolver_t=eval_result_t<>, | ||
typename array_t, typename nd_t> | ||
constexpr auto atleast_nd(const array_t& array, nd_t nd | ||
, context_t&& context=context_t{}, output_t&& output=output_t{},meta::as_value<resolver_t> resolver=meta::as_value_v<resolver_t>) | ||
{ | ||
auto viewed = view::atleast_nd(array,nd); | ||
return eval(viewed | ||
,nmtools::forward<context_t>(context) | ||
,nmtools::forward<output_t>(output) | ||
,resolver | ||
); | ||
} // atleast_nd | ||
} // namespace nmtools::array | ||
|
||
#endif // NMTOOLS_ARRAY_ARRAY_ATLEAST_ND_HPP |
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
Oops, something went wrong.