From 72f0f83c34ee31a84f138fc788c35f871c474a91 Mon Sep 17 00:00:00 2001 From: Chris Perkins Date: Fri, 9 Apr 2021 17:28:28 -0700 Subject: [PATCH] [SYCL] update bit_cast for sycl namespace for SYCL2020, bit_cast will be moved from sycl::detail:: to sycl:: namespace. The PR on intel/llvm is pending. This is a matching update to the tests here. Signed-off-by: Chris Perkins --- SYCL/Basic/bit_cast/bit_cast.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SYCL/Basic/bit_cast/bit_cast.cpp b/SYCL/Basic/bit_cast/bit_cast.cpp index fb747b5891..fa8245a54c 100644 --- a/SYCL/Basic/bit_cast/bit_cast.cpp +++ b/SYCL/Basic/bit_cast/bit_cast.cpp @@ -22,8 +22,7 @@ template To doBitCast(const From &ValueToConvert) { Queue.submit([&](sycl::handler &cgh) { auto acc = Buf.template get_access(cgh); cgh.single_task>([=]() { - // TODO: change to sycl::bit_cast in the future - acc[0] = sycl::detail::bit_cast(ValueToConvert); + acc[0] = sycl::bit_cast(ValueToConvert); }); }); }