From 67e6447b0a8ec532c4f485be87cc9045bd8d01a7 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 21 Oct 2025 17:05:12 +0200 Subject: Compiler fixing in GPU case --- lib/c++/descriptor.hpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/c++/descriptor.hpp b/lib/c++/descriptor.hpp index 51d5814..034c9ce 100644 --- a/lib/c++/descriptor.hpp +++ b/lib/c++/descriptor.hpp @@ -37,6 +37,8 @@ struct CellField< > > { using Descriptor = Desc; + using Schema = CellField...>>; + using MetaSchema = FixedArray; }; template @@ -287,7 +289,7 @@ public: {} const data meta() const { - return inner_.get_dims(); + return inner_.dims(); } template @@ -311,6 +313,14 @@ public: data& at(const data, Encode>& index){ return inner_.at(index); } + + data internal_size() const { + return inner_.internal_size(); + } + + data* internal_data() { + return inner_.internal_data(); + } }; /** @@ -330,7 +340,7 @@ private: saw::error_or helper_constructor(const data>& grid_size){ using MemT = saw::parameter_pack_type::type; { - inner_.template get() = {grid_size}; + inner_.template get() = {grid_size}; } if constexpr (sizeof...(CellFieldsT) > (i+1u)){ return helper_constructor(grid_size); @@ -347,7 +357,7 @@ public: const data meta() const { using MemT = saw::parameter_pack_type<0u,CellFieldsT...>::type; - return inner_.template get().dims(); + return inner_.template get().meta(); } template -- cgit v1.2.3