-
Notifications
You must be signed in to change notification settings - Fork 197
CUDA C++ Contributing Guide #122
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?
Conversation
|
👋 Thank you for your contribution! This pull request is from a forked repository so GitHub Actions will not be able to run CI. A maintainer will review your changes shortly and manually trigger the CI. @maintainers Please review this PR when you have a chance and follow the instructions in the CONTRIBUTING.md file to trigger the CI. |
|
This pull request contains 1 unsigned commit(s):
All commits must be signed before this PR can be merged. Please sign your commits by following these steps: Option 1: SSH Key Signing (Recommended)
Option 2: GPG Key Signing
For more details, see GitHub's commit signature verification docs. This comment will be updated when you push new commits. |
657cefe to
a6af2d0
Compare
smish-nvidia
left a comment
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.
Looks good to me!
|
|
||
| You can find the full solution [here](Solutions/no-magic-execution-space-changes.cpp). | ||
| </details> | ||
| ``` |
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.
these nested code fences seem to be formatted incorrectly, but I'm not sure how to escape the backticks
| ach::where_am_I("CPU"); | ||
| ``` | ||
|
|
||
| You can find the full solution [here](Solutions/no-magic-execution-space-changes.cpp). |
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.
when I tried to follow this link from the markdown page, it seemed to be broken
|
|
||
| - Store all images in the `Images/` subdirectory of a given notebook | ||
| - **Use SVG format** for diagrams when possible (scalable, editable) | ||
| - **Include source files**: We use [Excalidraw](https://excalidraw.com/) for diagrams. Include `.excalidraw` files alongside exported images for future maintenance. |
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.
Are these requirements or "nice-to-have"s for the images and figures?
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.
AFAIK all images follow this style (excalidraw + vector graphics). We should aim to retain it.
| ```python | ||
| import os | ||
|
|
||
| if os.getenv("COLAB_RELEASE_TAG"): # If running in Google Colab: |
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.
To avoid rerunning the install commands multiple times, do something like:
if os.getenv("COLAB_RELEASE_TAG") and not os.path.exists("/accelerated-computing-hub-installed"): # If running in Google Colab:
# ...
open("/accelerated-computing-hub-installed", "a").close()
| **Docker environment**: The `brev/` directory contains Docker configuration: | ||
| - `dockerfile`: Base image with CUDA toolkit and Jupyter | ||
| - `docker-compose.yml`: Service definitions for Jupyter and Nsight | ||
| - `requirements.txt`: Python dependencies |
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.
You should link to the top-level docs in docs/ of the repo which document the ACH tutorial structure and Brev setup.
brycelelbach
left a comment
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.
Looks good, I left a few minor notes.
|
@gevtushenko the link check is failing because it's failing to find the theoretical source file you reference in the doc. You should add that file path to |
brycelelbach
left a comment
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.
Please fix the false positive link check failure. It's failing to find the theoretical source file you reference in the doc.
Error: R] <file:///home/runner/work/accelerated-computing-hub/accelerated-computing-hub/tutorials/cuda-cpp/Solutions/no-magic-execution-space-changes.cpp> | Cannot find file: File not found. Check if file exists and path is correct
You should add that file path to $REPO_ROOT/brev/.lycheeignore.
No description provided.