-
Notifications
You must be signed in to change notification settings - Fork 516
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
Set ROCM_ROOT to ROCM_PATH when it exist #4150
Conversation
Signed-off-by: Sigbjørn Løland Bore <[email protected]>
WalkthroughWalkthroughThe pull request updates the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Env
participant CMakeArgs
User->>Env: Check ROCM_ROOT
alt ROCM_ROOT is set
Env->>CMakeArgs: Append ROCM_ROOT to cmake_args
else ROCM_ROOT is not set
Env->>Env: Check ROCM_PATH
alt ROCM_PATH is set
Env->>CMakeArgs: Append ROCM_PATH to cmake_args
else ROCM_PATH is not set
Env->>CMakeArgs: Do not append anything
end
end
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Additional comments not posted (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Could you update the documentation?
deepmd-kit/doc/install/install-from-source.md
Lines 154 to 159 in c084b20
:::{envvar} ROCM_ROOT | |
**Type**: Path; **Default**: Detected automatically | |
The path to the ROCM toolkit directory. | |
::: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #4150 +/- ##
=======================================
Coverage 83.37% 83.37%
=======================================
Files 532 532
Lines 52166 52166
Branches 3046 3046
=======================================
Hits 43493 43493
Misses 7726 7726
Partials 947 947 ☔ View full report in Codecov by Sentry. |
Expanded documentation for ROCM_ROOT. Signed-off-by: Sigbjørn Løland Bore <[email protected]>
Sure, I added to the documentation. |
This small commit closes issue #4149 by checking if
rocm_root
is not set, and then inferring it fromrocm_path
, if it exists.Summary by CodeRabbit
ROCM_ROOT
andROCM_PATH
environment variables.