Kernel template user defined argument deduction guide

As my application gets ever more complex, I have templated kernels w.r.t to some types and I want to write my own deduction guides (to use different type instead of the one passed).

Very simple example:

MyClass my_object;

MyClass has implicit int conversion, but this won’t initialize my_kernel<int><<<...,...>(my_object) because template argument deduction doesn’t include implicit casting.

How to write deduction guide for kernels?

PS: here is explained on c++ side: Class template argument deduction (CTAD) (since C++17) -