summaryrefslogtreecommitdiff
path: root/modules/remote-sycl/benchmarks/mixed_precision.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/remote-sycl/benchmarks/mixed_precision.hpp')
-rw-r--r--modules/remote-sycl/benchmarks/mixed_precision.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/remote-sycl/benchmarks/mixed_precision.hpp b/modules/remote-sycl/benchmarks/mixed_precision.hpp
index fc3fc46..e21a2e6 100644
--- a/modules/remote-sycl/benchmarks/mixed_precision.hpp
+++ b/modules/remote-sycl/benchmarks/mixed_precision.hpp
@@ -24,6 +24,18 @@ using MixedPrecisionBenchmarkInterface = Interface<
Member<Function<Float64Array,Void>, "float64">,
Member<Function<Float32Array,Void>, "float32">
>;
+
+/**
+ * This is more of a presentation
+ */
+template<typename FloatArraySchema>
+using FloatPrecisionBenchmarkInterface = Interface<
+ Member<Function<FloatArraySchema,Void>, "float_arr">
+>;
}
saw::interface<sch::MixedPrecisionBenchmarkInterface, saw::encode::Sycl<saw::encode::Native>, 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);
+
+saw::interface<sch::FloatPrecisionBenchmarkInterface<sch::MixedArray>, saw::encode::Sycl<saw::encode::Native>, cl::sycl::queue*> listen_mixed_float_precision(cl::sycl::event& ev, uint64_t& arithmetic_intensity);
+saw::interface<sch::FloatPrecisionBenchmarkInterface<sch::Float32Array>, saw::encode::Sycl<saw::encode::Native>, cl::sycl::queue*> listen_half_float_precision(cl::sycl::event& ev, uint64_t& arithmetic_intensity);
+saw::interface<sch::FloatPrecisionBenchmarkInterface<sch::Float64Array>, saw::encode::Sycl<saw::encode::Native>, cl::sycl::queue*> listen_full_precision(cl::sycl::event& ev, uint64_t& arithmetic_intensity);