summaryrefslogtreecommitdiff
path: root/lib/sycl/tests
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sycl/tests')
-rw-r--r--lib/sycl/tests/data.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/sycl/tests/data.cpp b/lib/sycl/tests/data.cpp
index 3073a22..6b17622 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,12 @@ SAW_TEST("Sycl Data Compilation"){
// test_f.at({}).set(1);
// SAW_EXPECT(test_f.at({}).get() == 1, "Value check failed");
}
+
+SAW_TEST("Sycl Data Compilation for Particle Similacrum"){
+ acpp::sycl::queue q;
+
+ saw::data<
+ sch::TestObjSchema
+ > a;
+}
+}