From 872d00b15417d9ca9d1696bd8a28ffc2cb8541b7 Mon Sep 17 00:00:00 2001 From: Alberto Cabrera Date: Tue, 9 Apr 2024 10:27:52 +0100 Subject: [PATCH] [SYCL][COMPAT] Added todo for bfloat16 clamp --- sycl/include/syclcompat/math.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sycl/include/syclcompat/math.hpp b/sycl/include/syclcompat/math.hpp index 18965316e78b2..9d8cd1de8e23b 100644 --- a/sycl/include/syclcompat/math.hpp +++ b/sycl/include/syclcompat/math.hpp @@ -53,6 +53,8 @@ inline ValueT clamp(ValueT val, ValueT min_val, ValueT max_val) { } #ifdef SYCL_EXT_ONEAPI_BFLOAT16_MATH_FUNCTIONS +// TODO: Follow the process to add this to the extension. If added, +// remove this functionality from the header. template <> inline sycl::ext::oneapi::bfloat16 clamp(sycl::ext::oneapi::bfloat16 val, sycl::ext::oneapi::bfloat16 min_val,