Repository navigation
refactor(rccl/gin): Simplify build for gin-anvil and remove sdma-induced rocshmem link dependencies #11757
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
abouteiller
merged 14 commits into
develop
from
users/abouteiller/rccl-gin/sdma-build-simplification
Sep 28, 2026
Merged
refactor(rccl/gin): Simplify build for gin-anvil and remove sdma-induced rocshmem link dependencies #11757
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3cc50b8
Simplify build for gin-anvil and remove sdma-induced link dependencies
abouteiller c3f2aad
fix(rccl/gin): address review comments on SDMA split PR #11757
abouteiller 657bf95
fix(rccl/gin): address second-round review comments on SDMA split PR …
abouteiller 33c5d61
fix(rccl/gin): address third-round review comments on SDMA split PR #…
abouteiller 2e2f0aa
Merge remote-tracking branch 'origin/develop' into users/abouteiller/…
abouteiller 0a4f8f9
BUILT_TESTS=ON and ROCSHMEM_GIN=ON together would not compile
abouteiller 5e43005
Update projects/rccl/tools/ci/lib/gin.sbatch
abouteiller 63d16b9
Do not reference now in-rccl symbols that are not in rocshmem anymore
abouteiller b546e37
Review comments: guard against hipfree errors
abouteiller 8caefaf
Merge remote-tracking branch 'origin/develop' into users/abouteiller/…
abouteiller b6a7094
Reconciliation for the build logic of the in-rccl tests between qp and
abouteiller fbd200b
fix(rccl/test): replace (void)hipFree with error-checked calls in SDM…
abouteiller ad4d6bd
Reconciliation with qp-refactor: do not have duplicate log.hpp, only
abouteiller b424008
Use copy method for sdma files like we do for gda files
abouteiller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
omor1 marked this conversation as resolved.
Resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
omor1 marked this conversation as resolved.
Resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| /************************************************************************* | ||
| * Copyright (c) 2026, Advanced Micro Devices, Inc. All rights reserved. | ||
| * | ||
| * See LICENSE.txt for license information | ||
| ************************************************************************/ | ||
|
|
||
| // Shim: shadows rocshmem's log.hpp when compiling anvil.cpp into librccl.so. | ||
| // Maps rocshmem LOG_* macros to RCCL's native logging infrastructure. | ||
|
|
||
| #ifndef RCCL_GIN_LOG_SHIM_HPP | ||
| #define RCCL_GIN_LOG_SHIM_HPP | ||
|
|
||
| // Host-side: when building librccl.so, map to RCCL native logging. | ||
| // When installed (consumed by rccl-tests), host macros are not needed | ||
| // — only device-side stubs below are used by anvil_device.hpp. | ||
| #if __has_include("debug.h") | ||
|
abouteiller marked this conversation as resolved.
Resolved
|
||
| #include "debug.h" | ||
| #include <cstdlib> | ||
| #define LOG_ERROR(fmt, ...) WARN("GIN: " fmt, ##__VA_ARGS__) | ||
| #define LOG_ERROR_EXIT(fmt, ...) do { WARN("GIN FATAL: " fmt, ##__VA_ARGS__); exit(EXIT_FAILURE); } while(0) | ||
| #define LOG_ERROR_ABORT(fmt, ...) do { WARN("GIN ABORT: " fmt, ##__VA_ARGS__); abort(); } while(0) | ||
| #define LOG_WARN(fmt, ...) INFO(NCCL_INIT, "GIN: " fmt, ##__VA_ARGS__) | ||
| #define LOG_INFO(fmt, ...) INFO(NCCL_INIT, "GIN: " fmt, ##__VA_ARGS__) | ||
| #ifdef ENABLE_TRACE | ||
| #define LOG_TRACE(fmt, ...) TRACE(NCCL_INIT, "GIN: " fmt, ##__VA_ARGS__) | ||
| #else | ||
| #define LOG_TRACE(...) do {} while(0) | ||
| #endif | ||
| #else | ||
| // Installed context: no RCCL internals available. | ||
| #include <cstdio> | ||
|
abouteiller marked this conversation as resolved.
Resolved
|
||
| #include <cstdlib> | ||
| #define LOG_ERROR(fmt, ...) fprintf(stderr, "GIN: " fmt "\n", ##__VA_ARGS__) | ||
| #define LOG_ERROR_EXIT(fmt, ...) do { fprintf(stderr, "GIN FATAL: " fmt "\n", ##__VA_ARGS__); exit(EXIT_FAILURE); } while(0) | ||
| #define LOG_ERROR_ABORT(fmt, ...) do { fprintf(stderr, "GIN ABORT: " fmt "\n", ##__VA_ARGS__); abort(); } while(0) | ||
| #define LOG_WARN(fmt, ...) fprintf(stderr, "GIN: " fmt "\n", ##__VA_ARGS__) | ||
| #define LOG_INFO(fmt, ...) ((void)0) | ||
|
abouteiller marked this conversation as resolved.
Resolved
|
||
| #define LOG_TRACE(...) do {} while(0) | ||
| #endif | ||
|
|
||
| // Device-side logging stubs (anvil_device.hpp uses LOGD_ERROR_ABORT for | ||
| // unsupported-architecture guards — map to __builtin_trap on device). | ||
| #define LOGD_ERROR_ABORT(fmt, ...) __builtin_trap() | ||
|
abouteiller marked this conversation as resolved.
Resolved
|
||
| #define LOGD_ERROR(fmt, ...) ((void)0) | ||
|
omor1 marked this conversation as resolved.
Resolved
|
||
| #define LOGD_WARN(fmt, ...) ((void)0) | ||
| #define LOGD_INFO(fmt, ...) ((void)0) | ||
| #define LOGD_TRACE(fmt, ...) ((void)0) | ||
|
|
||
| #endif // RCCL_GIN_LOG_SHIM_HPP | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.