From 2ccc939e591cdf4bd97f4499e2ebdd56c2276592 Mon Sep 17 00:00:00 2001 From: "Maronas, Marcos" Date: Wed, 15 Feb 2023 02:26:32 -0800 Subject: [PATCH 1/2] Fixes clang-format issue in device_implicitly_copyable.cpp. Signed-off-by: Maronas, Marcos --- SYCL/Basic/device_implicitly_copyable.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SYCL/Basic/device_implicitly_copyable.cpp b/SYCL/Basic/device_implicitly_copyable.cpp index 203c1ff190..246bda6631 100644 --- a/SYCL/Basic/device_implicitly_copyable.cpp +++ b/SYCL/Basic/device_implicitly_copyable.cpp @@ -27,7 +27,8 @@ template <> struct sycl::is_device_copyable : std::true_type {}; template void CaptureAndCopy(const DataT *data_arr, const DataT &data_scalar, DataT *result_arr, DataT *result_scalar, sycl::queue &q) { - // We need to copy data_arr, otherwise when using a device it tries to use the host memory + // We need to copy data_arr, otherwise when using a device it tries to use the + // host memory DataT cpy_data_arr[ArrSize]; std::memcpy(cpy_data_arr, data_arr, sizeof(cpy_data_arr)); sycl::buffer buf_arr{result_arr, sycl::range<1>(ArrSize)}; From 005c6274180b1bb1f83150d3080d19d5fa2766c2 Mon Sep 17 00:00:00 2001 From: "Maronas, Marcos" Date: Wed, 15 Feb 2023 08:43:15 -0800 Subject: [PATCH 2/2] Align with LLVM code style. Signed-off-by: Maronas, Marcos --- SYCL/Basic/device_implicitly_copyable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SYCL/Basic/device_implicitly_copyable.cpp b/SYCL/Basic/device_implicitly_copyable.cpp index 246bda6631..6d00d84a4d 100644 --- a/SYCL/Basic/device_implicitly_copyable.cpp +++ b/SYCL/Basic/device_implicitly_copyable.cpp @@ -28,7 +28,7 @@ template void CaptureAndCopy(const DataT *data_arr, const DataT &data_scalar, DataT *result_arr, DataT *result_scalar, sycl::queue &q) { // We need to copy data_arr, otherwise when using a device it tries to use the - // host memory + // host memory. DataT cpy_data_arr[ArrSize]; std::memcpy(cpy_data_arr, data_arr, sizeof(cpy_data_arr)); sycl::buffer buf_arr{result_arr, sycl::range<1>(ArrSize)};