-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add -Wunused to default Triton builds #10267
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -329,10 +329,10 @@ class DotOpMmaSmemLoader : public DotOpMmaMemLoader { | |
| } | ||
| }; | ||
|
|
||
| static Value getOffsetedBase(Value v, gpu::MemDescType memDescTy, | ||
| const TypeConverter *typeConverter, | ||
| ConversionPatternRewriter &rewriter, | ||
| Location loc) { | ||
| static inline Value getOffsetedBase(Value v, gpu::MemDescType memDescTy, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| const TypeConverter *typeConverter, | ||
| ConversionPatternRewriter &rewriter, | ||
| Location loc) { | ||
| TritonLLVMOpBuilder tb(loc, rewriter); | ||
| auto llvmElemTy = typeConverter->convertType(memDescTy.getElementType()); | ||
| auto smemObj = | ||
|
|
||
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.
Why only for this build type?
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.
This is mostly so we don't break release builds with assertions disabled, since many variables may become unused if they are only used inside asserts.