HomePhabricator

[mlir][mlir-rocm-runner] Detect HIP version and AMD ISA version.

Authored by whchung on Jun 5 2020, 2:26 PM.

Description

[mlir][mlir-rocm-runner] Detect HIP version and AMD ISA version.

Summary:
Prior to ROCm / HIP 3.5, HSA code object V2 is the default binary format.
Starting from ROCm 3.5, HSA code object V3 becomes default.

Also invoke rocm_agent_enumerator to detect proper AMD ISA version on the
system. Use gfx900 as the fallback value.

Reviewers: jerryyin yaxunl

Subscribers: mgorny, yaxunl, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, frgossen, Kayjukh, jurahul, msifontes

Tags: #mlir

Differential Revision: https://reviews.llvm.org/D81309

Details

Committed
whchungJun 5 2020, 8:15 PM
Differential Revision
D81309: [mlir][mlir-rocm-runner] Detect HIP version and AMD ISA version.
Parents
rG473220c4df7f: [gn build] Port 29203480632
Branches
Unknown
Tags
Unknown