summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/remote-sycl/c++/data.hpp5
-rw-r--r--modules/remote-sycl/tests/data_ref.cpp2
-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