Conversation
This PR needs a
|
There was a problem hiding this comment.
Pull request overview
Updates the repository’s PyTorch/nightly pins and includes compiler-conditional workarounds for toolchain/regression issues (GCC/C++ standard and ROCm/HIP complex math).
Changes:
- Bumped PyTorch and nightly version pins (including torchcodec) to
dev20260310and updated CI commit pin. - Tweaked
C10_RETURN_MOVE_IF_OLD_COMPILERdetection to consider the C++ standard version for GCC. - Added a HIP-specific
pow(complex<float>, complex<float>)implementation using FMA-oriented complex multiplication (workaround for ROCm regression).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| torch_pin.py | Updates pinned Torch and nightly version strings. |
| runtime/core/portable_type/c10/torch/headeronly/macros/Macros.h | Adjusts “old compiler” macro condition to include C++ standard gating for GCC. |
| runtime/core/portable_type/c10/c10/util/complex_math.h | Adds HIP-only complex pow specialization using an FMA-based multiply path. |
| examples/models/moshi/mimi/install_requirements.sh | Updates torchcodec nightly pin used by the example install script. |
| .ci/scripts/test_model_e2e.sh | Updates torchcodec nightly pin for whisper/voxtral e2e CI path. |
| .ci/docker/ci_commit_pins/pytorch.txt | Updates the pinned PyTorch commit hash used by CI docker/pins. |
Comments suppressed due to low confidence (1)
runtime/core/portable_type/c10/torch/headeronly/macros/Macros.h:1
- The condition now depends on both the compiler version and the C++ standard level (
__cplusplus < 202002L), but the comment only describes compiler age. Update the comment to document why C++20 changes the workaround behavior (e.g., due to language rules/guarantees or a known GCC issue that only applies before C++20).
#ifndef C10_MACROS_MACROS_H_
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
No description provided.