From cd312770bc02250e9a4ae55a276b1b8d0112cf46 Mon Sep 17 00:00:00 2001 From: Hugh Delaney Date: Fri, 6 Sep 2024 09:56:34 +0100 Subject: [PATCH 1/2] Fix typo Allocation is for device USM, not shared USM. --- adoc/code/usm_device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adoc/code/usm_device.cpp b/adoc/code/usm_device.cpp index 36f499a1..d34250d8 100644 --- a/adoc/code/usm_device.cpp +++ b/adoc/code/usm_device.cpp @@ -9,8 +9,8 @@ int main() { // Create a default queue to enqueue work to the default device queue myQueue; - // Allocate shared memory bound to the device and context associated to the - // queue + // Allocate device global memory bound to the device and context associated + // with the queue int* data = sycl::malloc_device(1024, myQueue); myQueue.parallel_for(1024, [=](id<1> idx) { From d2ccd823222fc44803a1f64a12c7a4da318fbea7 Mon Sep 17 00:00:00 2001 From: Hugh Delaney Date: Fri, 6 Sep 2024 13:59:32 +0100 Subject: [PATCH 2/2] Fix typo --- adoc/code/usm_device.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adoc/code/usm_device.cpp b/adoc/code/usm_device.cpp index d34250d8..8e0d88c8 100644 --- a/adoc/code/usm_device.cpp +++ b/adoc/code/usm_device.cpp @@ -9,8 +9,7 @@ int main() { // Create a default queue to enqueue work to the default device queue myQueue; - // Allocate device global memory bound to the device and context associated - // with the queue + // Allocate device USM, using the device and context associated with the queue int* data = sycl::malloc_device(1024, myQueue); myQueue.parallel_for(1024, [=](id<1> idx) {