summaryrefslogtreecommitdiff
path: root/lib/sycl/c++/data.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-01-21 10:57:58 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-01-21 10:57:58 +0100
commitec90ff981b016800a964135f049c9be53ba98615 (patch)
tree6e702cdf5fb178f5275915b32fcb1c715c8339c8 /lib/sycl/c++/data.hpp
parent952940c3487856447bb80c819b61483b8028d027 (diff)
downloadlibs-lbm-ec90ff981b016800a964135f049c9be53ba98615.tar.gz
More sycl things
Diffstat (limited to 'lib/sycl/c++/data.hpp')
-rw-r--r--lib/sycl/c++/data.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sycl/c++/data.hpp b/lib/sycl/c++/data.hpp
index bba52d6..44bc5dc 100644
--- a/lib/sycl/c++/data.hpp
+++ b/lib/sycl/c++/data.hpp
@@ -18,11 +18,11 @@ struct struct_has_only_equal_dimension_array{};
}
namespace saw {
-template<uint64_t... Meta, typename... Sch, string_literal... Keys, typename Encode>
+template<uint64_t Ghost, uint64_t... Meta, typename... Sch, string_literal... Keys, typename Encode>
class data<schema::Struct<schema::Member<schema::Chunk<Sch,Ghost,Meta...>, Keys>...>, kel::lbm::encode::Sycl<Encode>> final {
public:
static constexpr data<schema::FixedArray meta = {{Meta...}};
- using StorageT = std::tuple<data<Members::Type::InnerSchema,Encode>*...>;
+ using StorageT = std::tuple<data<Sch,Encode>*...>;
private:
/**
@@ -81,6 +81,8 @@ struct sycl_malloc_struct_helper<sch::Struct<Members...>, Encode> final {
if constexpr (i < sizeof...(Members)){
using M = typename saw::parameter_pack_type<i,Members...>::type;
auto& ptr = std::get<i>(storage);
+
+
ptr = sycl::malloc_device<M::ValueType::InnerSchema>(,q);
return allocate_on_device_member<i+1u>(storage,q);