From 185b51c1385a828170ba63243eba137b5aa77b64 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Thu, 22 Aug 2024 18:03:01 +0200 Subject: wip --- modules/remote-sycl/benchmarks/kernel_mixed_precision.cpp | 8 ++++---- modules/remote-sycl/benchmarks/mixed_precision.hpp | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'modules/remote-sycl/benchmarks') diff --git a/modules/remote-sycl/benchmarks/kernel_mixed_precision.cpp b/modules/remote-sycl/benchmarks/kernel_mixed_precision.cpp index e99de53..83705f6 100644 --- a/modules/remote-sycl/benchmarks/kernel_mixed_precision.cpp +++ b/modules/remote-sycl/benchmarks/kernel_mixed_precision.cpp @@ -1,11 +1,11 @@ #include "mixed_precision.hpp" -saw::interface listen_mixed_precision(cl::sycl::event& mixed_ev, cl::sycl::event& float64_ev, cl::sycl::event& float32_ev, uint64_t& arithmetic_intensity){ +saw::interface, cl::sycl::queue*> listen_mixed_precision(cl::sycl::event& mixed_ev, cl::sycl::event& float64_ev, cl::sycl::event& float32_ev, uint64_t& arithmetic_intensity){ return { /** * Mixed */ - [&](saw::data& in, cl::sycl::queue* cmd) -> saw::error_or { + [&](saw::data>& in, cl::sycl::queue* cmd) -> saw::error_or { uint64_t in_size = in.size(); mixed_ev = cmd->submit([&](cl::sycl::handler& h){ @@ -25,7 +25,7 @@ saw::interface& in, cl::sycl::queue* cmd) -> saw::error_or { + [&](saw::data>& in, cl::sycl::queue* cmd) -> saw::error_or { uint64_t in_size = in.size(); float64_ev = cmd->submit([&](cl::sycl::handler& h){ auto acc_buff = in.template access(h); @@ -43,7 +43,7 @@ saw::interface& in, cl::sycl::queue* cmd) -> saw::error_or { + [&](saw::data>& in, cl::sycl::queue* cmd) -> saw::error_or { uint64_t in_size = in.size(); float32_ev = cmd->submit([&](cl::sycl::handler& h){ auto acc_buff = in.template access(h); diff --git a/modules/remote-sycl/benchmarks/mixed_precision.hpp b/modules/remote-sycl/benchmarks/mixed_precision.hpp index cd8f9ec..fc3fc46 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++/data.hpp" #include "../c++/device.hpp" #include "../c++/remote.hpp" @@ -25,4 +26,4 @@ using MixedPrecisionBenchmarkInterface = Interface< >; } -saw::interface listen_mixed_precision(cl::sycl::event& mixed_ev, cl::sycl::event& float64_ev, cl::sycl::event& float32_ev, uint64_t& arithmetic_intensity); +saw::interface, cl::sycl::queue*> listen_mixed_precision(cl::sycl::event& mixed_ev, cl::sycl::event& float64_ev, cl::sycl::event& float32_ev, uint64_t& arithmetic_intensity); -- cgit v1.2.3