Skip to content

Commit 151cfed

Browse files
committed
Update info on anonymous lambda
1 parent 5c48115 commit 151cfed

File tree

1 file changed

+1
-1
lines changed
  • Lesson_Materials/Lecture_02_Enqueuing_a_Kernel

1 file changed

+1
-1
lines changed

Lesson_Materials/Lecture_02_Enqueuing_a_Kernel/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@
325325
<div class=container data-markdown>
326326
* Must be defined using a C++ lambda or function object, they cannot be a function pointer or std::function.
327327
* Must always capture or store members by-value.
328-
* SYCL kernel functions declared with a lambda must be named using a forward declarable C++ type, declared in global scope.
328+
* SYCL kernel functions declared with a lambda ~~must be named using a forward declarable C++ type, declared in global scope~~ can be anonymous since SYCL 2020!
329329
* SYCL kernel function names follow C++ ODR rules, which means you cannot have two kernels with the same name.
330330
</div>
331331
</section>

0 commit comments

Comments
 (0)