-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add DPEX_OPT, INLINE_THRESHOLD config and do not use numba's OPT #1158
Conversation
numba_dpex/core/codegen.py
Outdated
# Make optimization level depending on config.OPT variable | ||
pmb.opt_level = config.OPT | ||
# Make optimization level depending on config.DPEX_OPT variable | ||
pmb.opt_level = config.DPEX_OPT | ||
|
||
pmb.disable_unit_at_a_time = False | ||
pmb.inlining_threshold = 2 |
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.
TY for investigating those issues. Also while investigating for #1152 we've also found that pmb.inlining_threshold = 2
causes miscompilations. Could it be disabled by default ?
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.
FYI, opt3 works fine one devcloud with threshold being removed and fails on opt2 with theshold. However I have an environment that fails with opt3 without threshold.
e112e88
to
45aca12
Compare
45aca12
to
cbc2911
Compare
cbc2911
to
e70a0ff
Compare
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.
Thanks @ZzEeKkAa
…config Add DPEX_OPT config and do not use numba's OPT 511241f
It appears that level 3 optimization breaks kernel execution, so we need to set default value to 2 (which seems to work acceptable). This is a quick fix for #1152 and further investigation needed.