summaryrefslogtreecommitdiff
path: root/modules/sycl/c++
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sycl/c++')
-rw-r--r--modules/sycl/c++/data.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/sycl/c++/data.hpp b/modules/sycl/c++/data.hpp
index 9f43848..ec0fccf 100644
--- a/modules/sycl/c++/data.hpp
+++ b/modules/sycl/c++/data.hpp
@@ -103,6 +103,10 @@ public:
return saw::data<schema::FixedArray<schema::UInt64, sizeof...(Dims)>>{{Dims...}};
}
+ static constexpr data<schema::FixedArray<schema::UInt64, sizeof...(Dims)>> meta() {
+ return saw::data<schema::FixedArray<schema::UInt64, sizeof...(Dims)>>{{Dims...}};
+ }
+
constexpr data<Sch,Encode>& at(const data<schema::FixedArray<schema::UInt64,sizeof...(Dims)>>& index){
return values_[kel::lbm::flatten_index<schema::UInt64,sizeof...(Dims)>::apply(index,get_dims()).get()];
}