Skip to content

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

Merged
merged 15 commits into from
Dec 10, 2024

Conversation

ksimpson-work
Copy link
Contributor

@ksimpson-work ksimpson-work commented Nov 28, 2024

Add the cuda.core.experiemental.system singleton which is an instance of System.

closes #149

Copy link
Contributor

copy-pr-bot bot commented Nov 28, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ksimpson-work ksimpson-work changed the title Add the system class Add the cuda.core.experiemental.system singleton Nov 28, 2024
@leofang leofang added P0 High priority - Must do! feature New feature or request cuda.core Everything related to the cuda.core module labels Nov 28, 2024
@leofang leofang added this to the cuda.core beta 2 milestone Nov 28, 2024
@ksimpson-work ksimpson-work marked this pull request as ready for review November 29, 2024 00:47
Copy link
Member

@leofang leofang left a 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.

@ksimpson-work ksimpson-work changed the title Add the cuda.core.experiemental.system singleton Add the cuda.core.experimental.system singleton Dec 3, 2024
Copy link
Member

@leofang leofang left a 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:
截圖 2024-12-07 上午1 22 45

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.

Comment on lines 103 to 106
n_pops = len(lines)
lines.extend(lines_new)
for _ in range(n_pops):
lines.pop(0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try this?

Suggested change
n_pops = len(lines)
lines.extend(lines_new)
for _ in range(n_pops):
lines.pop(0)
lines.clear()
lines.extend(lines_new)

@ksimpson-work
Copy link
Contributor Author

Screenshot 2024-12-09 120806

@ksimpson-work
Copy link
Contributor Author

latest commit fixes the build warning and properly formats the Returns field. Thanks for the hack @leofang

@ksimpson-work
Copy link
Contributor Author

/ok to test

Copy link
Member

@leofang leofang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@leofang leofang merged commit c1fea41 into NVIDIA:main Dec 10, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuda.core Everything related to the cuda.core module feature New feature or request P0 High priority - Must do!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cuda.core.system
2 participants