mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
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)
|
||
|---|---|---|
| .. | ||
| ComputeLibrary.cmake | ||
| cuda.cmake | ||
| gflags.cmake | ||
| glog.cmake | ||
| LoadHIP.cmake | ||
| mkl.cmake | ||
| mkldnn.cmake | ||
| protobuf.cmake | ||
| threads.cmake | ||
| utils.cmake | ||