Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
Allocation is for device USM, not shared USM.
  • Loading branch information
hdelan committed Sep 6, 2024
1 parent 93170a2 commit cd31277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adoc/code/usm_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(1024, myQueue);

myQueue.parallel_for(1024, [=](id<1> idx) {
Expand Down

0 comments on commit cd31277

Please sign in to comment.