pytorch/cmake
Peter Bell c500f1d13b [CMake] Fix TORCH_CUDA_ARCH_LIST warning (#104680)
The warning complains that `TORCH_CUDA_ARCH_LIST` is set on the environment
instead of being defined as a build variable, which is fixed by the change to
`tools/setup_helpers/cmake.py`.

However, I still see the warning even with this fix because
```cmake
if((NOT EXISTS ${TORCH_CUDA_ARCH_LIST}) ...
```
is actually checking whether a file exists called "7.5" (or whatever arch is
being requested). Instead we want to check if the variable is defined.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/104680
Approved by: https://github.com/albanD
2023-07-07 15:12:54 +00:00
..
External
Modules
Modules_CUDA_fix
public [CMake] Fix TORCH_CUDA_ARCH_LIST warning (#104680) 2023-07-07 15:12:54 +00:00
Allowlist.cmake
BuildVariables.cmake
Caffe2Config.cmake.in
CheckAbi.cmake
cmake_uninstall.cmake.in
Codegen.cmake
DebugHelper.cmake
Dependencies.cmake cmake: allow USE_SYSTEM_ZSTD (#104611) 2023-07-05 04:47:35 +00:00
FlatBuffers.cmake
GoogleTestPatch.cmake
IncludeSource.cpp.in
iOS.cmake
Metal.cmake
MiscCheck.cmake
ProtoBuf.cmake
ProtoBufPatch.cmake
Summary.cmake Enable mimalloc on pytorch Windows (#102595) 2023-06-27 08:53:26 +00:00
TorchConfig.cmake.in [LibTorch] Fix append_whole_archive macro (#103348) 2023-06-10 02:53:37 +00:00
TorchConfigVersion.cmake.in
VulkanCodegen.cmake
VulkanDependencies.cmake