diff options
Diffstat (limited to 'modules/remote-sycl/benchmarks')
-rw-r--r-- | modules/remote-sycl/benchmarks/mixed_precision.cpp | 12 | ||||
-rw-r--r-- | modules/remote-sycl/benchmarks/mixed_precision.hpp | 1 |
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 { |