Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] update bit_cast for sycl namespace #228

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions SYCL/Basic/bit_cast/bit_cast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ template <typename To, typename From> To doBitCast(const From &ValueToConvert) {
Queue.submit([&](sycl::handler &cgh) {
auto acc = Buf.template get_access<sycl_write>(cgh);
cgh.single_task<class BitCastKernel<To, From>>([=]() {
// TODO: change to sycl::bit_cast in the future
acc[0] = sycl::detail::bit_cast<To>(ValueToConvert);
acc[0] = sycl::bit_cast<To>(ValueToConvert);
});
});
}
Expand Down