[libcu++] Additional peer device copy testing#9636
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughFixes host pinned buffer accesses in an existing ChangesMulti-GPU peer copy tests
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 51e6ac2b-ecff-4192-86c1-fc0fd1cea10d
📒 Files selected for processing (2)
libcudacxx/test/libcudacxx/cuda/ccclrt/algorithm/copy.culibcudacxx/test/libcudacxx/cuda/containers/buffer/copy.cu
| if (cuda::devices.size() < 2) | ||
| { | ||
| return; | ||
| } | ||
|
|
||
| cuda::device_ref source_device{0}; | ||
| auto peers = source_device.peers(); | ||
| if (peers.empty()) | ||
| { | ||
| return; | ||
| } | ||
|
|
||
| cuda::device_ref destination_device = peers.front(); | ||
| if (!source_device.attribute(cuda::device_attributes::memory_pools_supported) | ||
| || !destination_device.attribute(cuda::device_attributes::memory_pools_supported)) | ||
| { | ||
| return; | ||
| } |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
important: Add a short comment for each early-return skip path here. These branches silently skip the test when multi-GPU peer copies or memory pools are unavailable, and the test rules require unsupported or skipped cases to be motivated. As per coding guidelines, "If a test is unsupported, expected to fail, disabled, or skipped on a platform, motivate it with a comment."
Source: Coding guidelines
This comment has been minimized.
This comment has been minimized.
c054ead to
5cb667d
Compare
🥳 CI Workflow Results🟩 Finished in 4h 23m: Pass: 100%/71 | Total: 1d 00h | Max: 1h 05m | Hits: 99%/326659See results here. |
This PR adds testing for
copy_bytesandbuffercopy constructor across peer devices