How to make Tensor static and only call kernel by pointer? #3169
Unanswered
peterbjorgensen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to turn Python cute dsl kernels into TensorRT QDP Plugins. It restricts the kind of parameters the PTX can have to (input_pointers..., scalar_arguments..., output_pointers...). I have it working for a simple "add_one_kernel" (see the program listing below if interested).
Instead of writing the kernel with pointer arguments, I would like to write it with some StaticTensorPointer class that automatically turns the layout etc. into compile-time variables and only the pointer ends up as a PTX parameter. I guess it's possible with a custom
DynamicExpression, but I find the documentation a bit vague on this. Any ideas how to achieve this?Another question: Is it possible to get the shared memory needed for a compiled kernel? I need it for the kernel launch parameters of the kernel in the plugin.
Beta Was this translation helpful? Give feedback.
All reactions