-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Enable ruff-pre-commit for third_party/nvidia
#5587
Conversation
@@ -313,7 +313,7 @@ def make_llir(src, metadata, options, capability): | |||
llvm.init_targets() | |||
context = llvm.context() | |||
if os.environ.get("TRITON_ENABLE_ASAN", "0") == "1": | |||
raise ASANError( |
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.
ASANError
is not defined
@@ -239,7 +239,7 @@ def make_ttgir(mod, metadata, opt, capability): | |||
# Set up Diagnostic | |||
if os.environ.get("MLIR_ENABLE_REMARK", "0") == "1": | |||
srcMgr = llvm.source_mgr() | |||
diag = ir.source_mgr_diag(srcMgr, mod.context) |
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.
Not used
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.
Test failure looks real, probably the lifetime of this variable controls the diagnostics setting.
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.
will take a look
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.
Could you rerun CI?
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.
Everything seems to be fine now :)
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.
I refactored this in my PR as well #5581. I guess it doesn't depend on the lifetime of the variable. Previously it calls a constructor for the SourceMgrDiagnosticHandler
, which registers the handler into the MLIRContext.
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.
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
3de597a
to
69f7732
Compare
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
No description provided.