pytorch/cmake
Pruthvi Madugundu 085e2f7bdd [ROCm] Changes not to rely on CUDA_VERSION or HIP_VERSION (#65610)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65610

- Replace HIP_PLATFORM_HCC with USE_ROCM
- Dont rely on CUDA_VERSION or HIP_VERSION and use USE_ROCM and ROCM_VERSION.

- In the next PR
   - Will be removing the mapping from CUDA_VERSION to HIP_VERSION and CUDA to HIP in hipify.
   - HIP_PLATFORM_HCC is deprecated, so will add HIP_PLATFORM_AMD to support HIP host code compilation on gcc.

cc jeffdaily sunway513 jithunnair-amd ROCmSupport amathews-amd

Reviewed By: jbschlosser

Differential Revision: D30909053

Pulled By: ezyang

fbshipit-source-id: 224a966ebf1aaec79beccbbd686fdf3d49267e06
2021-09-29 09:55:43 -07:00
..
External Disable ccache for nccl builds (#62208) 2021-07-27 08:07:26 -07:00
Modules Support system-provided Intel TBB (#61934) 2021-08-02 07:39:00 -07:00
Modules_CUDA_fix Lint trailing newlines (#54737) 2021-03-30 13:09:52 -07:00
public Remove CUDA 9.2 and older references from our cmake (#65065) 2021-09-16 12:54:49 -07:00
Allowlist.cmake Replace whitelist with allowlist (#42067) 2020-07-28 08:01:16 -07:00
BuildVariables.cmake Remove Caffe2_MAIN_LIBS (#38408) 2020-05-15 12:27:15 -07:00
Caffe2Config.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
Caffe2ConfigVersion.cmake.in Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
cmake_uninstall.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
Codegen.cmake Add AVX512 support in ATen & remove AVX support (#61903) 2021-07-22 08:51:49 -07:00
DebugHelper.cmake Add debug helper function to check target property (#52093) 2021-02-11 15:37:14 -08:00
Dependencies.cmake Revert D31193205: [pytorch][PR] CMake: Limit python include directories to only python libraries 2021-09-29 09:49:33 -07:00
GoogleTestPatch.cmake Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
iOS.cmake Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
Metal.cmake [GPU] Enable Metal on macosx (#47635) 2020-11-17 14:44:34 -08:00
MiscCheck.cmake Disable RDYNAMIC check with MSVC (#62949) 2021-08-18 11:51:23 -07:00
ProtoBuf.cmake Update protobuf to 3.13.1 (#62571) 2021-08-19 23:43:55 -07:00
ProtoBufPatch.cmake Update protobuf to 3.13.1 (#62571) 2021-08-19 23:43:55 -07:00
Summary.cmake [ROCm] Changes not to rely on CUDA_VERSION or HIP_VERSION (#65610) 2021-09-29 09:55:43 -07:00
TorchConfig.cmake.in Expand Kineto platform support (ci-all) (#56323) 2021-05-05 15:00:01 -07:00
TorchConfigVersion.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
VulkanCodegen.cmake [vulkan] Fix glslc path for desktop build (#56507) 2021-05-11 14:18:39 -07:00
VulkanDependencies.cmake [Vulkan]Fix build warnings-treated-as-error on Linux. (#52781) 2021-03-03 13:48:43 -08:00