You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Add support for templated call operator in functors (#7970)
This PR enables kernels to be defined as named function object types,
where the operator() member function is templated.
Example:
```
class FunctorWithCallOpTemplated {
int x;
public:
template <int x = 0>
void operator()() const {}
};
q.submit([&](sycl::handler &cgh) {
cgh.single_task(FunctorWithCallOpTemplated{});
});
```
---------
Co-authored-by: premanandrao <[email protected]>
0 commit comments