-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Custom Operators for PyTorch with NKI #25
Comments
Thanks for filing the issue! We're looking into it actively and will get back with an answer for you shortly. |
Hi Nandeeka! This requires us to implement the support for |
@aws-qieqingy is there anything @nandeeka can do to bypass this limitation for short term ? |
Also a note: NKICodegen is currently experimental and will come across unimplemented nki instructions until we've completed expressing each instruction in nki isa. Whenever this class of error occurs, it is most likely for this reason. |
@AWSNB Unfortunately, we don't have any instruction that achieves the same functionality exposed through NKI right now. |
I was curious about how the
torch.topk()
function is implemented in the Neuron compiler. After writing a kernel with this call and compiling it to NKI, the resulting code looks something like:I understand that the
NkiCodegen.codegenSundaMax8
andNkiCodegen.codegenSundaMaxIndex8
functions need to be black boxes because they require data-dependent control flow, which is currently not supported. My question is, is it possible for me to call these functions within my own NKI kernel?Thanks!
The text was updated successfully, but these errors were encountered: