-
Notifications
You must be signed in to change notification settings - Fork 88
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
Added mlir->LLVMIR conversion for tanh op using LUT #1718
base: main
Are you sure you want to change the base?
Conversation
Modified aie_runtime_lib/AIE2/lut_based_ops.cpp and lut_based_ops.h to use peano-friendly alignment for tanh LUTs, chess performance is unaffected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
alignas(aie::vector_decl_align) extern float tanh_lut_ab[128]; | ||
alignas(aie::vector_decl_align) extern float tanh_lut_cd[128]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any benefit to having the alignment and size of these arrays declared here?
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit.: too many blank lines
Adds a conversion pass similar to
ComputeTanhOpByLUTPattern
but targeting LLVMIR backend.