-
Notifications
You must be signed in to change notification settings - Fork 534
Tiny allow compiling with line info and release moe #1659
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
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 | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -197,6 +197,10 @@ def gen_jit_spec( | |||||||||
# non debug mode | ||||||||||
cuda_cflags += ["-DNDEBUG"] | ||||||||||
|
||||||||||
# useful for ncu | ||||||||||
if bool(os.environ.get("FLASHINFER_JIT_LINEINFO", "0")): | ||||||||||
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.
This bug is fixed in #1872 , note that 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. Good point, I should have written |
||||||||||
cuda_cflags += ["-lineinfo"] | ||||||||||
Comment on lines
+201
to
+202
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. This logic has two potential issues:
The suggested change below corrects the check and prevents adding a duplicate flag.
Suggested change
|
||||||||||
|
||||||||||
if extra_cflags is not None: | ||||||||||
cflags += extra_cflags | ||||||||||
if extra_cuda_cflags is not None: | ||||||||||
|
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.
it's covered in
FLASHINFER_JIT_VERBOSE
Uh oh!
There was an error while loading. Please reload this page.
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.
good point, btw it seems ptxas's register-usage-level (enabled in the verbose path) is:
thus I am not very sure whether it changes program behavior