Skip to content

Commit c2951af

Browse files
[SYCL] update bit_cast for sycl namespace (intel/llvm-test-suite#228)
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 <[email protected]>
1 parent 6c26f15 commit c2951af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

SYCL/Basic/bit_cast/bit_cast.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ template <typename To, typename From> To doBitCast(const From &ValueToConvert) {
2222
Queue.submit([&](sycl::handler &cgh) {
2323
auto acc = Buf.template get_access<sycl_write>(cgh);
2424
cgh.single_task<class BitCastKernel<To, From>>([=]() {
25-
// TODO: change to sycl::bit_cast in the future
26-
acc[0] = sycl::detail::bit_cast<To>(ValueToConvert);
25+
acc[0] = sycl::bit_cast<To>(ValueToConvert);
2726
});
2827
});
2928
}

0 commit comments

Comments
 (0)