diff --git a/sycl/include/sycl/detail/ur.hpp b/sycl/include/sycl/detail/ur.hpp index 48e876e3adb6f..12c829727d82b 100644 --- a/sycl/include/sycl/detail/ur.hpp +++ b/sycl/include/sycl/detail/ur.hpp @@ -94,7 +94,7 @@ template To cast(From value); template inline To cast(From value) { // TODO: see if more sanity checks are possible. static_assert(sizeof(From) == sizeof(To), "assert: cast failed size check"); - return reinterpret_cast(value); + return (To)(value); } // Helper traits for identifying std::vector with arbitrary element type. diff --git a/sycl/test-e2e/EnqueueNativeCommand/custom-command-cuda.cpp b/sycl/test-e2e/EnqueueNativeCommand/custom-command-cuda.cpp index ff73a763b2dae..7afbaf7cc14ed 100644 --- a/sycl/test-e2e/EnqueueNativeCommand/custom-command-cuda.cpp +++ b/sycl/test-e2e/EnqueueNativeCommand/custom-command-cuda.cpp @@ -2,9 +2,6 @@ // RUN: %{run} %t.out // REQUIRES: cuda, cuda_dev_kit -// TODO: Reenable, see https://github.com/intel/llvm/issues/14598 -// UNSUPPORTED: windows, linux - #include #include diff --git a/sycl/test-e2e/EnqueueNativeCommand/custom-command-multiple-dev-cuda.cpp b/sycl/test-e2e/EnqueueNativeCommand/custom-command-multiple-dev-cuda.cpp index d4a1cb96101bc..2dc30b44bfe94 100644 --- a/sycl/test-e2e/EnqueueNativeCommand/custom-command-multiple-dev-cuda.cpp +++ b/sycl/test-e2e/EnqueueNativeCommand/custom-command-multiple-dev-cuda.cpp @@ -2,9 +2,6 @@ // RUN: %{build} -o %t.out %cuda_options // RUN: %{run} %t.out -// TODO: Reenable, see https://github.com/intel/llvm/issues/14598 -// UNSUPPORTED: windows - #include #include