[PATCH] D82930: [HIP] Fix rocm detection
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 30 21:39:04 PDT 2020
yaxunl created this revision.
yaxunl added reviewers: tra, arsenm.
Herald added subscribers: kerbowa, nhaehnle, wdng, jvesely.
Do not detect device library by default in rocm detector. Only detect device library in HIP toolchain.
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.
https://reviews.llvm.org/D82930
Files:
clang/lib/Driver/ToolChains/AMDGPU.cpp
clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/MSVC.cpp
clang/lib/Driver/ToolChains/ROCm.h
clang/test/Driver/Inputs/rocm/bin/.hipVersion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82930.274678.patch
Type: text/x-patch
Size: 8251 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200701/d015ec0d/attachment-0001.bin>
More information about the cfe-commits
mailing list