From 492262e75b655c971d6c94459f7ff2759db95fc5 Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Mon, 29 Jun 2026 16:48:52 +0000 Subject: [PATCH 1/8] [release/2.12] Pin torchaudio to release/2.11 in related_commits --- related_commits | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/related_commits b/related_commits index 8dc39c14e0b00..4503d710b08fb 100644 --- a/related_commits +++ b/related_commits @@ -1,3 +1,3 @@ ubuntu|pytorch|apex|release/1.12.0|7e4aca37812b99e9c3e302d7d1d2e37ad6377f8c|https://github.com/ROCm/apex ubuntu|pytorch|torchvision|release/0.27|b3d5b111f54044b216013162706ca107aa7a4ec4|https://github.com/ROCm/vision -ubuntu|pytorch|torchaudio|main|c0cbdb95674556cdff7266f2d44bb855f634cfde|https://github.com/pytorch/audio +ubuntu|pytorch|torchaudio|release/2.11|34c52a67e8941bbd8e6adaca0eb0b9eabec11d78|https://github.com/pytorch/audio From b9dafd436be903931c532a2efad5c928e6479ae4 Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Tue, 30 Jun 2026 18:07:23 +0000 Subject: [PATCH 2/8] [release/2.12] Pin torchaudio to ROCm/audio release/2.11.0.1 --- related_commits | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/related_commits b/related_commits index 4503d710b08fb..17bb4fd2cfc59 100644 --- a/related_commits +++ b/related_commits @@ -1,3 +1,3 @@ ubuntu|pytorch|apex|release/1.12.0|7e4aca37812b99e9c3e302d7d1d2e37ad6377f8c|https://github.com/ROCm/apex ubuntu|pytorch|torchvision|release/0.27|b3d5b111f54044b216013162706ca107aa7a4ec4|https://github.com/ROCm/vision -ubuntu|pytorch|torchaudio|release/2.11|34c52a67e8941bbd8e6adaca0eb0b9eabec11d78|https://github.com/pytorch/audio +ubuntu|pytorch|torchaudio|release/2.11.0.1|b83203e89858d1d7705f276cfdfb1661f9bfc2bc|https://github.com/ROCm/audio From 397caab617f3b3beb91836468259cc663e1210b9 Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Tue, 30 Jun 2026 20:42:01 +0000 Subject: [PATCH 3/8] [release/2.12] Fix Windows cross-drive HIPIFY failure in CUDAExtension When building HIP extensions (e.g. torchaudio) on Windows where the source checkout lives on a subst/virtual drive (B:) that aliases a directory on the real drive (C:), os.path.relpath() raised "path is on mount 'C:', start on mount 'B:'" because os.getcwd() reported the alias while the hipified source resolved to the underlying drive. Normalize both the build dir and the hipified source through os.path.realpath() before computing the relative path. --- torch/utils/cpp_extension.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/torch/utils/cpp_extension.py b/torch/utils/cpp_extension.py index 3e9d5d3823cbe..0d428aa7d06fe 100644 --- a/torch/utils/cpp_extension.py +++ b/torch/utils/cpp_extension.py @@ -1493,13 +1493,20 @@ def CUDAExtension(name, sources, *args, **kwargs): ) hipified_sources = set() + # Resolve build_dir through realpath so that a Windows subst/virtual + # drive (e.g. a B: that aliases a directory on C:) matches the + # canonicalized source paths returned by hipify. Without this, + # os.path.relpath() below can raise "path is on mount 'C:', start on + # mount 'B:'" when os.getcwd() reports the alias but the hipified + # source resolves to the underlying drive. + build_dir_real = os.path.realpath(build_dir) for source in sources: s_abs = os.path.abspath(source) hipified_s_abs = (hipify_result[s_abs].hipified_path if (s_abs in hipify_result and hipify_result[s_abs].hipified_path is not None) else s_abs) # setup() arguments must *always* be /-separated paths relative to the setup.py directory, # *never* absolute paths - hipified_sources.add(os.path.relpath(hipified_s_abs, build_dir)) + hipified_sources.add(os.path.relpath(os.path.realpath(hipified_s_abs), build_dir_real)) sources = list(hipified_sources) From 212d846a9952acce94eefcb7b3bcf9a69225e841 Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Wed, 1 Jul 2026 01:55:55 +0000 Subject: [PATCH 4/8] [release/2.12] Point torchaudio pin at ROCm HIP-port branch for testing Temporarily points torchaudio at the ROCm/audio#16 HIP-port commit (ethanwee1/audio fork) so TheRock can build/validate it. Repoint to the merged ROCm/audio release/2.11.0.1 commit once ROCm/audio#16 lands. --- related_commits | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/related_commits b/related_commits index 17bb4fd2cfc59..38026cfdfeca1 100644 --- a/related_commits +++ b/related_commits @@ -1,3 +1,3 @@ ubuntu|pytorch|apex|release/1.12.0|7e4aca37812b99e9c3e302d7d1d2e37ad6377f8c|https://github.com/ROCm/apex ubuntu|pytorch|torchvision|release/0.27|b3d5b111f54044b216013162706ca107aa7a4ec4|https://github.com/ROCm/vision -ubuntu|pytorch|torchaudio|release/2.11.0.1|b83203e89858d1d7705f276cfdfb1661f9bfc2bc|https://github.com/ROCm/audio +ubuntu|pytorch|torchaudio|ew/rocm-24803-hip-port-gpu-ext|ddfbc452bf1e5090776f1ad6747c68baeb67104a|https://github.com/ethanwee1/audio From 9f910ab175178f2c563d4e1c7a2e43f955dda952 Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Wed, 1 Jul 2026 15:31:37 +0000 Subject: [PATCH 5/8] [release/2.12] Bump torchaudio HIP-port pin (hipcub + runtime shim) --- related_commits | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/related_commits b/related_commits index 38026cfdfeca1..b71936a3b48e2 100644 --- a/related_commits +++ b/related_commits @@ -1,3 +1,3 @@ ubuntu|pytorch|apex|release/1.12.0|7e4aca37812b99e9c3e302d7d1d2e37ad6377f8c|https://github.com/ROCm/apex ubuntu|pytorch|torchvision|release/0.27|b3d5b111f54044b216013162706ca107aa7a4ec4|https://github.com/ROCm/vision -ubuntu|pytorch|torchaudio|ew/rocm-24803-hip-port-gpu-ext|ddfbc452bf1e5090776f1ad6747c68baeb67104a|https://github.com/ethanwee1/audio +ubuntu|pytorch|torchaudio|ew/rocm-24803-hip-port-gpu-ext|a890448a93de1a06b67f6469a75485360a956204|https://github.com/ethanwee1/audio From 74bce3687d4eacf122f181b438885d907a49c1cb Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Wed, 1 Jul 2026 18:14:15 +0000 Subject: [PATCH 6/8] [release/2.12] Repoint torchaudio pin at HIPIFY-based port (ROCm/audio#17) --- related_commits | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/related_commits b/related_commits index b71936a3b48e2..b19408cd2a883 100644 --- a/related_commits +++ b/related_commits @@ -1,3 +1,3 @@ ubuntu|pytorch|apex|release/1.12.0|7e4aca37812b99e9c3e302d7d1d2e37ad6377f8c|https://github.com/ROCm/apex ubuntu|pytorch|torchvision|release/0.27|b3d5b111f54044b216013162706ca107aa7a4ec4|https://github.com/ROCm/vision -ubuntu|pytorch|torchaudio|ew/rocm-24803-hip-port-gpu-ext|a890448a93de1a06b67f6469a75485360a956204|https://github.com/ethanwee1/audio +ubuntu|pytorch|torchaudio|ew/rocm-24803-hipify-gpu-ext|f9437d2cf1ef6e91df0557795f7e35fb11cdecdc|https://github.com/ethanwee1/audio From 1840ead7e3f37c0cb7aaa0aba4902dd0d6d9d6e2 Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Mon, 6 Jul 2026 02:46:34 +0000 Subject: [PATCH 7/8] [release/2.12] Repoint torchaudio pin at validated HIP-port (ROCm/audio#16) Revert the temporary HIPIFY-based pin (ROCm/audio#17) back to the compat-shim port commit that passed TheRock Windows validation (28529085509). The HIPIFY setup.py approach still leaves CUDA headers unconverted; the cuda_compat.h port in ROCm/audio#16 is the validated path. The Windows cross-drive HIPIFY fix remains in torch/utils/cpp_extension.py (this PR); it is unrelated to the audio-side port strategy. --- related_commits | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/related_commits b/related_commits index b19408cd2a883..b71936a3b48e2 100644 --- a/related_commits +++ b/related_commits @@ -1,3 +1,3 @@ ubuntu|pytorch|apex|release/1.12.0|7e4aca37812b99e9c3e302d7d1d2e37ad6377f8c|https://github.com/ROCm/apex ubuntu|pytorch|torchvision|release/0.27|b3d5b111f54044b216013162706ca107aa7a4ec4|https://github.com/ROCm/vision -ubuntu|pytorch|torchaudio|ew/rocm-24803-hipify-gpu-ext|f9437d2cf1ef6e91df0557795f7e35fb11cdecdc|https://github.com/ethanwee1/audio +ubuntu|pytorch|torchaudio|ew/rocm-24803-hip-port-gpu-ext|a890448a93de1a06b67f6469a75485360a956204|https://github.com/ethanwee1/audio From 20ed9fc17d7e46e02019b8f652ca8037fcac073e Mon Sep 17 00:00:00 2001 From: ethanwee1 Date: Mon, 6 Jul 2026 02:53:33 +0000 Subject: [PATCH 8/8] [release/2.12] Point torchaudio pin at fixed HIPIFY port (ROCm/audio#17) Update ethanwee1/audio ew/rocm-24803-hipify-gpu-ext to 0c7509ef with: - realpath-based hipify (Windows B:/C: alias) - reverted USE_ROCM header guard widening - -DUSE_CUDA on hipcc for GPU units only --- related_commits | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/related_commits b/related_commits index b71936a3b48e2..59dc9eacaf93c 100644 --- a/related_commits +++ b/related_commits @@ -1,3 +1,3 @@ ubuntu|pytorch|apex|release/1.12.0|7e4aca37812b99e9c3e302d7d1d2e37ad6377f8c|https://github.com/ROCm/apex ubuntu|pytorch|torchvision|release/0.27|b3d5b111f54044b216013162706ca107aa7a4ec4|https://github.com/ROCm/vision -ubuntu|pytorch|torchaudio|ew/rocm-24803-hip-port-gpu-ext|a890448a93de1a06b67f6469a75485360a956204|https://github.com/ethanwee1/audio +ubuntu|pytorch|torchaudio|ew/rocm-24803-hipify-gpu-ext|0c7509ef5eae0ad822d2099ca5b42fce18db0148|https://github.com/ethanwee1/audio