pytorch/cmake/public
Douglas Lehr eb4e6ca30c [ROCM] Add ROCM version api within cmake (#69481)
Summary:
In ROCm 5.0 and later the version of the ROCm platform can be obtained via
an api call vs reading from a flat file.

If the header file /opt/rocm/include/rocm_version.h exists,
LoadHIP.cmake compiles source referencing the api and prints out the
ROCM Versions.

If the file does not exist, LoadHIP.cmake will revert to the previous
approach of looking for the version-dev file.

Fixes #{issue number}

cc jeffdaily sunway513 jithunnair-amd ROCmSupport KyleCZH

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

Reviewed By: seemethere, janeyx99

Differential Revision: D34153435

Pulled By: malfet

fbshipit-source-id: f8c0650d27666d2a3cf47d812807798c47210b37
(cherry picked from commit 6cbb4f7a0cc72c23f6afef861134434d2c7f58e6)
2022-02-11 00:15:10 +00:00
..
ComputeLibrary.cmake
cuda.cmake Remove forcing CUDNN_STATIC when CAFFE2_STATIC_LINK_CUDA (#72290) 2022-02-04 14:35:53 +00:00
gflags.cmake
glog.cmake
LoadHIP.cmake [ROCM] Add ROCM version api within cmake (#69481) 2022-02-11 00:15:10 +00:00
mkl.cmake
mkldnn.cmake
protobuf.cmake
threads.cmake
utils.cmake