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

Commit 11a9a73

Browse files
Apply suggestions from code review
Co-authored-by: aelovikov-intel <[email protected]>
1 parent daad593 commit 11a9a73

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

SYCL/Basic/multi_device_context.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// REQUIRES: cuda
77

88
#include <stdlib.h>
9-
#include <sycl.hpp>
9+
#include <sycl/sycl.hpp>
1010

1111
sycl::event add(sycl::queue q, sycl::buffer<int> buff, int *usm,
1212
sycl::event e) {
@@ -41,22 +41,22 @@ int main() {
4141
sycl::buffer<int> buff1(&a, 1);
4242
sycl::buffer<int> buff2(&b, 1);
4343

44-
// test copying usm
44+
// Test copying usm.
4545
int *usm1 = sycl::malloc_device<int>(1, q1);
4646
int *usm2 = sycl::malloc_device<int>(1, q2);
4747
sycl::event e1 = q1.memcpy(usm1, &c, 1);
4848
sycl::event e2 = q2.memcpy(usm2, &d, 1);
4949

50-
// test combination of usm and buffers in a kernel
50+
// Test combination of usm and buffers in a kernel.
5151
sycl::event e3 = add(q1, buff1, usm1, e1);
5252
sycl::event e4 = add(q2, buff2, usm2, e2);
5353

54-
// change values in usm to ensure results are distinct
54+
// Change values in usm to ensure results are distinct.
5555
sycl::event e5 = q1.memcpy(usm1, &d, 1, e3);
5656
sycl::event e6 = q2.memcpy(usm2, &c, 1, e4);
5757

58-
// use each buffer on the other device than before - tests that copying
59-
// between devices works
58+
// Use each buffer on the other device than before - tests that copying
59+
// between devices works.
6060
add(q1, buff2, usm1, e5);
6161
add(q2, buff1, usm2, e6);
6262
}

0 commit comments

Comments
 (0)