From 5b11a9374a0f7e6fb667d63519c2714a934398b0 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 19 Jan 2026 18:40:40 +0100 Subject: Chunk tmpl deduction --- lib/core/c++/chunk.hpp | 20 +++++++++++++------- lib/sycl/c++/data.hpp | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/lib/core/c++/chunk.hpp b/lib/core/c++/chunk.hpp index 38b567b..223ceec 100644 --- a/lib/core/c++/chunk.hpp +++ b/lib/core/c++/chunk.hpp @@ -6,23 +6,29 @@ namespace kel { namespace lbm { namespace sch { namespace impl { -template +template struct chunk_schema_type_helper { - using Schema = typename chunk_schema_type_helper::Schema; + using Schema = typename chunk_schema_type_helper::Schema; }; -template -struct chunk_schema_type_helper { +template +struct chunk_schema_type_helper, saw::tmpl_group> final { + using Schema = FixedArray; +}; + +template +struct chunk_schema_type_helper, saw::tmpl_group> final { using Schema = FixedArray; }; } -template +template struct Chunk { - using InnerSchema = typename impl::chunk_schema_type_helper::Schema; + using InnerSchema = typename impl::chunk_schema_type_helper::Schema; }; +// Not needed for now template using SuperChunk = Array; } @@ -35,7 +41,7 @@ class data,Encode> final { public: using Schema = kel::lbm::sch::Chunk; private: - data + data values_; public: }; } diff --git a/lib/sycl/c++/data.hpp b/lib/sycl/c++/data.hpp index 53a35bc..bba52d6 100644 --- a/lib/sycl/c++/data.hpp +++ b/lib/sycl/c++/data.hpp @@ -19,7 +19,7 @@ struct struct_has_only_equal_dimension_array{}; namespace saw { template -class data, Keys>...>, kel::lbm::encode::Sycl> final { +class data, Keys>...>, kel::lbm::encode::Sycl> final { public: static constexpr data*...>; -- cgit v1.2.3