pytorch/cmake
dsashidh 4ff9b7fa31 Fix diagnostic message for CUDA version mismatch in cuda.cmake (#157370)
This PR fixes  #157354

It fixes the issue in 'cmake/public/cuda.cmake' where a diagnostic message incorrectly showed an empty CUDA version when 'FindCUDA' and header-reported versions differed.

The problem was caused by this line:

set(${cuda_version_from_findcuda} ${CUDA_VERSION_STRING})

This incorrectly used the value of cuda_version_from_findcuda as a variable name. As a result the version string wasn't assigned and the error message omitted the version. This has been corrected to:

set(cuda_version_from_findcuda ${CUDA_VERSION_STRING})

Now the diagnostic message properly displays the CUDA version reported by FindCUDA.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/157370
Approved by: https://github.com/soulitzer
2025-07-11 20:58:35 +00:00
..
External [ROCm] Bump AOTriton to 0.10b (#156499) 2025-06-25 07:09:03 +00:00
Modules [1/N] Don't use CUDA.cmake module (#157188) 2025-07-08 03:05:35 +00:00
Modules_CUDA_fix [CUDA] Support family-conditional compute capabilies in TORCH_CUDA_ARCH_LIST (#157999) 2025-07-11 20:34:59 +00:00
public Fix diagnostic message for CUDA version mismatch in cuda.cmake (#157370) 2025-07-11 20:58:35 +00:00
Allowlist.cmake
BLAS_ABI.cmake Check F2C BLAS for OpenBLAS and other vendors (#143846) 2025-07-01 05:56:24 +00:00
BuildVariables.cmake
Caffe2Config.cmake.in xpu: improve error handling and reporting in XPU cmake files (#149353) 2025-03-20 02:00:39 +00:00
cmake_uninstall.cmake.in
Codegen.cmake [CUTLASS] [CUDA] SM100 GroupMM (#156203) 2025-06-28 23:02:00 +00:00
DebugHelper.cmake [BE] fix typos in cmake/ (#156079) 2025-06-17 19:25:43 +00:00
Dependencies.cmake Check F2C BLAS for OpenBLAS and other vendors (#143846) 2025-07-01 05:56:24 +00:00
FlatBuffers.cmake
IncludeSource.cpp.in
iOS.cmake [BE] fix typos in cmake/ (#156079) 2025-06-17 19:25:43 +00:00
Metal.cmake [Build] Allow metal shaders to include ATen headers (#156256) 2025-06-18 01:03:25 +00:00
MiscCheck.cmake Remove CAFFE2_USE_EXCEPTION_PTR (#147247) 2025-03-06 02:56:23 +00:00
prioritized_text.txt [Build] Add linker script optimization (#121975) 2024-04-09 20:22:25 +00:00
ProtoBuf.cmake [Reland] Use 3.27 as the minimum CMake version (#154783) 2025-06-14 16:37:51 +00:00
ProtoBufPatch.cmake
Summary.cmake [SymmMem] find_path does not search /usr/local/lib (#157695) 2025-07-08 01:21:59 +00:00
TorchConfig.cmake.in Revert "Simplify nvtx3 CMake handling, always use nvtx3 (#153784)" 2025-06-24 20:02:07 +00:00
TorchConfigVersion.cmake.in
VulkanCodegen.cmake [BE][CMake] Use FindPython module (#124613) 2024-05-29 13:17:35 +00:00
VulkanDependencies.cmake