diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-01-23 12:04:35 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-01-23 12:04:35 +0100 |
| commit | 0a8dd2541e20f59812db21e8bad069b50cf8ebaf (patch) | |
| tree | ccc418d9b41058b11515395b38f3b4ef1e217fd6 /lib/sycl/tests/data.cpp | |
| parent | e60db388693b63be6d7e4c03234976b567378e94 (diff) | |
| download | libs-lbm-0a8dd2541e20f59812db21e8bad069b50cf8ebaf.tar.gz | |
Preparing for SYCL accesors
Diffstat (limited to 'lib/sycl/tests/data.cpp')
| -rw-r--r-- | lib/sycl/tests/data.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/sycl/tests/data.cpp b/lib/sycl/tests/data.cpp index e57a1e3..3073a22 100644 --- a/lib/sycl/tests/data.cpp +++ b/lib/sycl/tests/data.cpp @@ -1,6 +1,21 @@ #include <forstio/test/suite.hpp> +#include "../c++/lbm.hpp" -SAW_TEST("Sycl Dummy"){ +SAW_TEST("Sycl Data Compilation"){ + acpp::sycl::queue q; + saw::data< + saw::schema::Struct< + saw::schema::Member< + kel::lbm::sch::Chunk<saw::schema::UInt8,1u,1u,1u>, + "test" + > + >, + kel::lbm::encode::Sycl<saw::encode::Native> + > dat{q}; + auto& test_f = dat.template get<"test">(); + + // test_f.at({}).set(1); + // SAW_EXPECT(test_f.at({}).get() == 1, "Value check failed"); } |
