diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-11-18 21:40:34 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-11-18 21:40:34 +0100 |
| commit | 2116b46f784aa9bc0dcbb1b6bfc22183d979b919 (patch) | |
| tree | 801c8b8d46fef063b32b79797b6e51393e081a9d | |
| parent | 668e53e42e210d2cedf29281eb187e8d7f129651 (diff) | |
| download | forstio-forstio-2116b46f784aa9bc0dcbb1b6bfc22183d979b919.tar.gz | |
Sycl tests rewrite
| -rw-r--r-- | modules/remote-sycl/c++/data.hpp | 5 | ||||
| -rw-r--r-- | modules/remote-sycl/tests/data_ref.cpp | 2 | ||||
| -rw-r--r-- | modules/remote-sycl/tests/sycl_basics.foo (renamed from modules/remote-sycl/tests/sycl_basics.cpp) | 0 |
3 files changed, 4 insertions, 3 deletions
diff --git a/modules/remote-sycl/c++/data.hpp b/modules/remote-sycl/c++/data.hpp index e057766..149e3f2 100644 --- a/modules/remote-sycl/c++/data.hpp +++ b/modules/remote-sycl/c++/data.hpp @@ -118,7 +118,7 @@ class data<schema::Ref<schema::Array<Sch, Dim>>, encode::Sycl<Encode>> { public: using Schema = schema::Ref<schema::Array<Sch,Dim>>; private: - data<schema::Sch, Encode>* internal_data_ptr_; + data<Sch, Encode>* internal_data_ptr_; data<schema::FixedArray<schema::UInt64, Dim>, Encode> dims_; data<schema::UInt64, Encode> size_; @@ -148,7 +148,7 @@ private: std::is_same_v<U,std::array<uint64_t,Dim>>, "Unsupported type" ); - assert(data_.size() == get_full_size()); + assert(size_ == get_full_size()); uint64_t s = 0; uint64_t stride = 1; @@ -172,3 +172,4 @@ private: return s; } }; +} diff --git a/modules/remote-sycl/tests/data_ref.cpp b/modules/remote-sycl/tests/data_ref.cpp index 03afb8f..61a2c8e 100644 --- a/modules/remote-sycl/tests/data_ref.cpp +++ b/modules/remote-sycl/tests/data_ref.cpp @@ -13,6 +13,6 @@ SAW_TEST("Data Ref Basics"){ acpp::sycl::queue sycl_q; data<sch::Array<sch::Float64>, encode::Sycl<encode::Native>> dat{{{100u}},sycl_q}; - } + } diff --git a/modules/remote-sycl/tests/sycl_basics.cpp b/modules/remote-sycl/tests/sycl_basics.foo index 970f4d6..970f4d6 100644 --- a/modules/remote-sycl/tests/sycl_basics.cpp +++ b/modules/remote-sycl/tests/sycl_basics.foo |
