Skip to content

Conversation

@kaechele
Copy link

@kaechele kaechele commented Aug 6, 2025

Copilot AI review requested due to automatic review settings August 6, 2025 15:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses CUDA 12 compatibility issues by implementing a workaround for PyTorch's NVTX library detection. The fix creates an alias from the legacy CUDA::nvToolsExt target to the newer CUDA::nvtx3 target when using CUDA 12 or later, ensuring PyTorch can properly link against the NVTX profiling library.

  • Adds version check for CUDA compiler version 12 and above
  • Creates CUDA::nvToolsExt interface target as alias to CUDA::nvtx3 when needed
  • Sets TORCH_CUDA_USE_NVTX3 compile definition to enable PyTorch NVTX3 support

kaechele and others added 2 commits September 14, 2025 14:30
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

Failed to install on Windows: Cannot build wheel for torchmcubes

1 participant