Skip to content

[release/2.12] Fix Windows cross-drive HIPIFY failure in CUDAExtension#3383

Closed
ethanwee1 wants to merge 1 commit into
release/2.12from
ew/rocm-24803-fix-windows-hipify-cross-drive
Closed

[release/2.12] Fix Windows cross-drive HIPIFY failure in CUDAExtension#3383
ethanwee1 wants to merge 1 commit into
release/2.12from
ew/rocm-24803-fix-windows-hipify-cross-drive

Conversation

@ethanwee1

Copy link
Copy Markdown

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.
@ethanwee1

Copy link
Copy Markdown
Author

Consolidated into #3382 so the pin and the Windows HIPIFY fix can be tested together in one build.

@ethanwee1 ethanwee1 closed this Jun 30, 2026
@ethanwee1 ethanwee1 deleted the ew/rocm-24803-fix-windows-hipify-cross-drive branch June 30, 2026 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant