We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d5db69 commit 4629ba8Copy full SHA for 4629ba8
Lesson_Materials/Enqueueing_a_Kernel/Enqueuing_a_Kernel.pdf
-509 KB
Lesson_Materials/Enqueueing_a_Kernel/index.html
@@ -374,7 +374,7 @@
374
<div class="col">
375
<code><pre>
376
struct my_kernel {
377
- void operator()(){
+ void operator()() const {
378
/* kernel function */
379
}
380
};
@@ -383,6 +383,7 @@
383
<div class="col" data-markdown>
384
* As well as defining SYCL kernels using lambda expressions,
385
You can also define a SYCL kernel using a regular C++ function object.
386
+ * Define a type with a public const-qualified `operator()` member function.
387
</div>
388
389
</section>
@@ -395,7 +396,7 @@
395
396
397
398
399
400
401
402
0 commit comments