-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[nvidia] Support passing TMA descriptors by-value #4498
Changes from all commits
8bb3c1d
f14b9cb
1e010f7
1ed44a3
98d7191
4a8e66b
e3d4032
20d63a8
8a3b707
b5b420f
cd03b7a
35dde67
84d0173
24079ae
6bec85b
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 |
---|---|---|
|
@@ -42,7 +42,8 @@ def _build(name, src, srcdir, library_dirs, include_dirs, libraries): | |
py_include_dir = sysconfig.get_paths(scheme=scheme)["include"] | ||
custom_backend_dirs = set(os.getenv(var) for var in ('TRITON_CUDACRT_PATH', 'TRITON_CUDART_PATH')) | ||
include_dirs = include_dirs + [srcdir, py_include_dir, *custom_backend_dirs] | ||
cc_cmd = [cc, src, "-O3", "-shared", "-fPIC", "-o", so] | ||
# for -Wno-psabi, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111047 | ||
cc_cmd = [cc, src, "-O3", "-shared", "-fPIC", "-Wno-psabi", "-o", so] | ||
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. what is causing the extra warning? 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. GCC doesn't like the
I don't think it can be suppressed inline via pragma, it has to be suppressed on the command line: https://godbolt.org/z/f5n5crhjG |
||
cc_cmd += [f'-l{lib}' for lib in libraries] | ||
cc_cmd += [f"-L{dir}" for dir in library_dirs] | ||
cc_cmd += [f"-I{dir}" for dir in include_dirs if dir 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.
Is 64 a required alignment value?
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.
Yes. Here is the definition of
CUtensorMap
in<cuda.h>
: