summaryrefslogtreecommitdiff
path: root/modules/remote-sycl/benchmarks
diff options
context:
space:
mode:
authorClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-21 17:22:17 +0200
committerClaudius 'keldu' Holeksa <mail@keldu.de>2024-08-21 17:22:17 +0200
commit5202f24921e2136b284eadb54783519fb38967a3 (patch)
tree27c44269824264237be046c02019d71d48245243 /modules/remote-sycl/benchmarks
parentb7a6d768230edd4e85e08596955308cd4a39722e (diff)
Trying to fix the old storage approach
Diffstat (limited to 'modules/remote-sycl/benchmarks')
-rw-r--r--modules/remote-sycl/benchmarks/mixed_precision.cpp12
-rw-r--r--modules/remote-sycl/benchmarks/mixed_precision.hpp1
2 files changed, 7 insertions, 6 deletions
diff --git a/modules/remote-sycl/benchmarks/mixed_precision.cpp b/modules/remote-sycl/benchmarks/mixed_precision.cpp
index e804f4e..8c6d4c9 100644
--- a/modules/remote-sycl/benchmarks/mixed_precision.cpp
+++ b/modules/remote-sycl/benchmarks/mixed_precision.cpp
@@ -119,9 +119,9 @@ int main(int argc, char** argv){
float64_host_data.at(i) = static_cast<double>(gen_num);
float32_host_data.at(i) = static_cast<float>(gen_num);
}
- data<sch::MixedArray, encode::Native, rmt::Sycl> mixed_device_data{mixed_host_data};
- data<sch::Float64Array, encode::Native, rmt::Sycl> float64_device_data{float64_host_data};
- data<sch::Float32Array, encode::Native, rmt::Sycl> float32_device_data{float32_host_data};
+ data<sch::MixedArray, encode::Sycl<encode::Native>> mixed_device_data{mixed_host_data};
+ data<sch::Float64Array, encode::Sycl<encode::Native>> float64_device_data{float64_host_data};
+ data<sch::Float32Array, encode::Sycl<encode::Native>> float32_device_data{float32_host_data};
sycl_iface.template call<"float64_32">(mixed_device_data, &(device.get_handle()));
sycl_iface.template call<"float64">(float64_device_data, &(device.get_handle()));
@@ -157,9 +157,9 @@ int main(int argc, char** argv){
float32_host_data.at(i) = static_cast<float>(gen_num);
}
- data<sch::MixedArray, encode::Native, rmt::Sycl> mixed_device_data{mixed_host_data};
- data<sch::Float64Array, encode::Native, rmt::Sycl> float64_device_data{float64_host_data};
- data<sch::Float32Array, encode::Native, rmt::Sycl> float32_device_data{float32_host_data};
+ data<sch::MixedArray, encode::Sycl<encode::Native>> mixed_device_data{mixed_host_data};
+ data<sch::Float64Array, encode::Sycl<encode::Native>> float64_device_data{float64_host_data};
+ data<sch::Float32Array, encode::Sycl<encode::Native>> float32_device_data{float32_host_data};
sycl_iface.template call<"float64_32">(mixed_device_data, &(device.get_handle()));
device.get_handle().wait();
diff --git a/modules/remote-sycl/benchmarks/mixed_precision.hpp b/modules/remote-sycl/benchmarks/mixed_precision.hpp
index 784b9b5..cd8f9ec 100644
--- a/modules/remote-sycl/benchmarks/mixed_precision.hpp
+++ b/modules/remote-sycl/benchmarks/mixed_precision.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include "../c++/device.hpp"
#include "../c++/remote.hpp"
namespace sch {