From 5202f24921e2136b284eadb54783519fb38967a3 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Wed, 21 Aug 2024 17:22:17 +0200 Subject: Trying to fix the old storage approach --- modules/remote-sycl/benchmarks/mixed_precision.cpp | 12 ++++++------ modules/remote-sycl/benchmarks/mixed_precision.hpp | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'modules/remote-sycl/benchmarks') 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(gen_num); float32_host_data.at(i) = static_cast(gen_num); } - data mixed_device_data{mixed_host_data}; - data float64_device_data{float64_host_data}; - data float32_device_data{float32_host_data}; + data> mixed_device_data{mixed_host_data}; + data> float64_device_data{float64_host_data}; + data> 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(gen_num); } - data mixed_device_data{mixed_host_data}; - data float64_device_data{float64_host_data}; - data float32_device_data{float32_host_data}; + data> mixed_device_data{mixed_host_data}; + data> float64_device_data{float64_host_data}; + data> 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 { -- cgit v1.2.3