Skip to content

Commit 3b74ec3

Browse files
maarquitos14bb-sycl
authored andcommitted
[SYCL] Fixes clang-format issue in device_implicitly_copyable.cpp. (intel#1596)
intel#1583 introduced a clang-format issue. This fixes the issue. --------- Signed-off-by: Maronas, Marcos <[email protected]>
1 parent ccdebfe commit 3b74ec3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SYCL/Basic/device_implicitly_copyable.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ template <> struct sycl::is_device_copyable<ACopyable> : std::true_type {};
2727
template <typename DataT, size_t ArrSize>
2828
void CaptureAndCopy(const DataT *data_arr, const DataT &data_scalar,
2929
DataT *result_arr, DataT *result_scalar, sycl::queue &q) {
30-
// We need to copy data_arr, otherwise when using a device it tries to use the host memory
30+
// We need to copy data_arr, otherwise when using a device it tries to use the
31+
// host memory.
3132
DataT cpy_data_arr[ArrSize];
3233
std::memcpy(cpy_data_arr, data_arr, sizeof(cpy_data_arr));
3334
sycl::buffer<DataT, 1> buf_arr{result_arr, sycl::range<1>(ArrSize)};

0 commit comments

Comments
 (0)