HomePhabricator

[HIP] Fix rocm detection

Authored by yaxunl on Jun 30 2020, 9:00 PM.

Description

[HIP] Fix rocm detection

Do not detect device library by default in rocm detector.
Only detect device library in Rocm and HIP toolchain.

Separate detection of HIP runtime and Rocm device library.

Detect rocm path by version file in host toolchains.

Also added detecting rocm version and printing rocm
installation path and version with -v.

Fixed include path and device library detection for
ROCm 3.5.

Added --hip-version option. Renamed --hip-device-lib-path
to --rocm-device-lib-path.

Fixed default value for -fhip-new-launch-api.

Added default -std option for HIP.

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

Details

Committed
yaxunlJul 10 2020, 8:20 PM
Differential Revision
D82930: [HIP] Fix rocm detection
Parents
rGe6280925249c: [X86][MMX] Optimize MMX shift intrinsics.
Branches
Unknown
Tags
Unknown