[ROCm] remove HCC references (#111975)

- rename `__HIP_PLATFORM_HCC__` to `__HIP_PLATFORM_AMD__`
- rename `HIP_HCC_FLAGS` to `HIP_CLANG_FLAGS`
- rename `PYTORCH_HIP_HCC_LIBRARIES` to `PYTORCH_HIP_LIBRARIES`
- workaround in tools/amd_build/build_amd.py until submodules are updated

These symbols have had a long deprecation cycle and will finally be removed in ROCm 6.0.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/111975
Approved by: https://github.com/ezyang, https://github.com/hongxiayang
This commit is contained in:
Jeff Daily
2023-10-26 02:39:01 +00:00
committed by PyTorch MergeBot
parent f1785373c0
commit 28c0b07d19
12 changed files with 65 additions and 38 deletions

View File

@ -46,9 +46,9 @@
// however hipblas v1 is still using its custom type
#define HIP_R_16F HIPBLAS_R_16F
#define HIP_R_32F HIPBLAS_R_32F
#else // __HIP_PLATFORM_HCC
#else // USE_ROCM
#define CUBLAS_HALF_TYPE __half
#endif // __HIP_PLATFORM_HCC
#endif // USE_ROCM
#include "caffe2/utils/math/utils.h"