From 9a2762e66e50117e0e690f94ba1771c13bf188dd Mon Sep 17 00:00:00 2001 From: Greg Lueck Date: Thu, 30 Apr 2026 12:10:24 -0400 Subject: [PATCH] Fix kernel argument definition for named function objects Cherry pick #996 from main (cherry picked from commit d6c4ec4e61a4904847a7d2fbf7860fbb7530cb23) --- adoc/chapters/programming_interface.adoc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/adoc/chapters/programming_interface.adoc b/adoc/chapters/programming_interface.adoc index 250cfacf0..99cbd580a 100644 --- a/adoc/chapters/programming_interface.adoc +++ b/adoc/chapters/programming_interface.adoc @@ -17506,10 +17506,8 @@ a device copyable type in that case and the specialization is ignored. A SYCL application passes parameters to a kernel in different ways depending on whether the kernel is a named function object or a lambda expression. -If the kernel is a named function object, the [code]#operator()# member function -(or other member functions that it calls) may reference member variables inside -the same named function object. -Any such member variables become parameters to the kernel. +If the kernel is a named function object, all non-static member variables of the +named function object become parameters to the kernel. If the kernel is a lambda expression, any variables captured by the lambda become parameters to the kernel.