This is an archive of the discontinued LLVM Phabricator instance.

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

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

Details

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.

Diff Detail

Event Timeline

whchung created this revision.Jun 5 2020, 2:29 PM
whchung updated this revision to Diff 268943.Jun 5 2020, 2:32 PM

Fix build error due to incorrect lint.

whchung updated this revision to Diff 268969.Jun 5 2020, 5:21 PM

Add logic to detech AMD ISA version.

whchung retitled this revision from [mlir][mlir-rocm-runner] Detech HIP version and set HSA code object version. to [mlir][mlir-rocm-runner] Detech HIP version and AMD ISA version..Jun 5 2020, 5:21 PM
whchung edited the summary of this revision. (Show Details)
whchung updated this revision to Diff 268972.Jun 5 2020, 5:37 PM

Revise HIP version detection logic to be more descriptive.

whchung edited the summary of this revision. (Show Details)Jun 5 2020, 7:15 PM
whchung retitled this revision from [mlir][mlir-rocm-runner] Detech HIP version and AMD ISA version. to [mlir][mlir-rocm-runner] Detect HIP version and AMD ISA version..Jun 5 2020, 7:20 PM
whchung updated this revision to Diff 268986.Jun 5 2020, 7:21 PM

Fix typos in the commit log.

yaxunl accepted this revision.Jun 5 2020, 7:22 PM

LGTM

This revision is now accepted and ready to land.Jun 5 2020, 7:22 PM
This revision was automatically updated to reflect the committed changes.