"maxrreccount" with differents values, one for each kernel. It's is possible?

Hello.

I’d like to know if it’s possible to limit the number of registers per kernel using a different number for each different kernel.
Currently I’m “making a mess” using launch_bounds, but it doesn’t solve the generic situation.
Any idea?

Thank you.

What’s wrong with launch_bounds?

:"> Nothing! It was my fault!

Sorry! :confused:

Would using launch_bounds yield similar performance compared to compiling it with maxrregcount directives?