Skip to content

Commit 48cb960

Browse files
committed
Add missing wait() to slides
1 parent 4a1079a commit 48cb960

File tree

1 file changed

+1
-1
lines changed
  • Lesson_Materials/Lecture_03_Managing_Data

1 file changed

+1
-1
lines changed

Lesson_Materials/Lecture_03_Managing_Data/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
// ...
130130

131131
// Copy data back to CPU
132-
myQueue.memcpy(result_ptr, device_ptr, n * sizeof(T));
132+
myQueue.memcpy(result_ptr, device_ptr, n * sizeof(T)).wait();
133133

134134
// Free allocated data
135135
sycl::free(device_ptr, myQueue);

0 commit comments

Comments
 (0)