Skip to content
Snippets Groups Projects
Commit b1995aea authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Replace Array<ExecutionPolicy> by SmallArray<ExecutionPolicy>

This is more natural and could (potentially) lead to performances improvements
parent 50c1dd66
No related branches found
No related tags found
1 merge request!124Add files for high order integration with quadratures
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
#include <language/utils/ASTNodeDataType.hpp> #include <language/utils/ASTNodeDataType.hpp>
#include <language/utils/ASTNodeDataTypeTraits.hpp> #include <language/utils/ASTNodeDataTypeTraits.hpp>
#include <language/utils/SymbolTable.hpp> #include <language/utils/SymbolTable.hpp>
#include <utils/Array.hpp>
#include <utils/Exceptions.hpp> #include <utils/Exceptions.hpp>
#include <utils/PugsMacros.hpp> #include <utils/PugsMacros.hpp>
#include <utils/SmallArray.hpp>
#include <Kokkos_Core.hpp> #include <Kokkos_Core.hpp>
...@@ -128,7 +128,7 @@ class PugsFunctionAdapter<OutputType(InputType...)> ...@@ -128,7 +128,7 @@ class PugsFunctionAdapter<OutputType(InputType...)>
[[nodiscard]] PUGS_INLINE static auto [[nodiscard]] PUGS_INLINE static auto
getContextList(const ASTNode& expression) getContextList(const ASTNode& expression)
{ {
Array<ExecutionPolicy> context_list(Kokkos::DefaultExecutionSpace::impl_thread_pool_size()); SmallArray<ExecutionPolicy> context_list(Kokkos::DefaultExecutionSpace::impl_thread_pool_size());
auto& context = expression.m_symbol_table->context(); auto& context = expression.m_symbol_table->context();
for (size_t i = 0; i < context_list.size(); ++i) { for (size_t i = 0; i < context_list.size(); ++i) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment