[ROCm] Update HIP_VERSION to TORCH_HIP_VERSION (#62786)
authorPruthvi Madugundu <pmagundu@amd.com>
Fri, 13 Aug 2021 21:57:17 +0000 (14:57 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 13 Aug 2021 22:00:43 +0000 (15:00 -0700)
commitab7a47298039da3b60b4e33cbb70c5fc06e1a315
treeaa014bd0a0e2d65e2a6b1eaebcf7f1894bbc57d4
parente711b5ce6c4982960c293b005da37a6d91253bd7
[ROCm] Update HIP_VERSION to TORCH_HIP_VERSION (#62786)

Summary:
- HIP_VERSION semantic versioning will change in ROCm4.3. The changes essentially remove the dependency on HIP_VERSION provided in the hip header to keep code compatible with older and newer versions of ROCm.
- TORCH_HIP_VERSION is derived from HIP_VERSION_MAJOR and HIP_VERSION_MINOR

Pull Request resolved: https://github.com/pytorch/pytorch/pull/62786

Reviewed By: bdhirsh

Differential Revision: D30281682

Pulled By: seemethere

fbshipit-source-id: e41e69fb9e13de5ddd1af99ba5bbdcbb7b64b673
17 files changed:
aten/src/ATen/cuda/CUDABlas.cpp
aten/src/ATen/cuda/CUDABlas.h
aten/src/ATen/cuda/CublasHandlePool.cpp
aten/src/ATen/cuda/nvrtc_stub/ATenNVRTC.h
aten/src/ATen/native/cuda/Copy.cu
aten/src/ATen/native/cuda/SoftMax.cu
c10/cuda/CUDAFunctions.h
caffe2/operators/elementwise_ops.cu
caffe2/operators/hip/pool_op_miopen.hip
caffe2/operators/relu_op.cu
caffe2/utils/math_gpu.cu
cmake/Dependencies.cmake
cmake/public/LoadHIP.cmake
torch/csrc/cuda/nccl.cpp
torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp
torch/csrc/jit/codegen/fuser/cuda/fused_kernel.cpp
torch/utils/hipify/cuda_to_hip_mappings.py