-
Notifications
You must be signed in to change notification settings - Fork 158
Add the cuda.core.experimental.system singleton #256
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
Conversation
4bf49e4
to
7d5c742
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, Keenan! Left a few quick comments.
Co-authored-by: Leo Fang <[email protected]>
Co-authored-by: Leo Fang <[email protected]>
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.
@ksimpson-work I "hacked" the docs in commit 1a3f1e6. It's not pretty but it does the job:
One improvement we need to make: We need to rewrite the docstrings as a one-liner, as opposed to a legal Sphinx docstring. It is because the autodata
directive only expects simple one-liners:
https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#automatically-document-attributes-or-data
This is also the reason that there are 3 warnings raised if you build this locally.
cuda_core/docs/source/conf.py
Outdated
n_pops = len(lines) | ||
lines.extend(lines_new) | ||
for _ in range(n_pops): | ||
lines.pop(0) |
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.
try this?
n_pops = len(lines) | |
lines.extend(lines_new) | |
for _ in range(n_pops): | |
lines.pop(0) | |
lines.clear() | |
lines.extend(lines_new) |
latest commit fixes the build warning and properly formats the Returns field. Thanks for the hack @leofang |
Co-authored-by: Leo Fang <[email protected]>
/ok to test |
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!
Add the cuda.core.experiemental.system singleton which is an instance of System.
closes #149