pytorch
eb4e6ca3 - [ROCM] Add ROCM version api within cmake (#69481)

Commit
2 years ago
[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)
Author
Committer
Parents
Loading