diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-04-22 16:49:30 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-04-22 16:49:30 +0200 |
| commit | 1aee54ea763a19590f4aa41f991cef8f91cf6a93 (patch) | |
| tree | 7e45e43e9152520d97f991d62dd86362c27cd054 /lib/sycl/tests/data.cpp | |
| parent | 0f0af5c3e095637c7ede1c8dc20b248a3471dc3a (diff) | |
| parent | 45ebf7411d687ab5530431ab1bcc74edb0499c69 (diff) | |
| download | libs-lbm-1aee54ea763a19590f4aa41f991cef8f91cf6a93.tar.gz | |
Merge branch 'dev'
Diffstat (limited to 'lib/sycl/tests/data.cpp')
| -rw-r--r-- | lib/sycl/tests/data.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/sycl/tests/data.cpp b/lib/sycl/tests/data.cpp index 3073a22..4321a0d 100644 --- a/lib/sycl/tests/data.cpp +++ b/lib/sycl/tests/data.cpp @@ -2,6 +2,24 @@ #include "../c++/lbm.hpp" +namespace { + +namespace sch { +using namespace kel::lbm::sch; +using TestObjSchema = Tuple< + Member<FixedArray<UInt64,2u,2u>, "foo">, + Member<Array<Float32>, "bar">, + Member< + Array< + Struct< + Member<FixedArray<Float32,2u>,"pos"> + > + >, + "baz" + > +>; +} + SAW_TEST("Sycl Data Compilation"){ acpp::sycl::queue q; saw::data< @@ -19,3 +37,20 @@ SAW_TEST("Sycl Data Compilation"){ // test_f.at({}).set(1); // SAW_EXPECT(test_f.at({}).get() == 1, "Value check failed"); } + +SAW_TEST("Sycl Data Array of Struct"){ + acpp::sycl::queue q; + + saw::data<sch::Array<sch::Float64>, kel::lbm::encode::Sycl<saw::encode::Native>> a{{{2u}},q}; +} + +/* +SAW_TEST("Sycl Data Compilation for Particle Similacrum"){ + acpp::sycl::queue q; + + saw::data< + sch::TestObjSchema + > a; +} +*/ +} |
