[all-commits] [llvm/llvm-project] 98ab43: [HIP] Fix device only linking for -fgpu-rdc
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Mon Jan 10 14:38:35 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 98ab43a1d209875ce9cc39420d3e6af57ed0f5b2
https://github.com/llvm/llvm-project/commit/98ab43a1d209875ce9cc39420d3e6af57ed0f5b2
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2022-01-10 (Mon, 10 Jan 2022)
Changed paths:
M clang/lib/Driver/Driver.cpp
M clang/test/Driver/hip-phases.hip
M clang/test/Driver/hip-toolchain-rdc-separate.hip
Log Message:
-----------
[HIP] Fix device only linking for -fgpu-rdc
Currently when -fgpu-rdc is specified, HIP toolchain always does host linking even
if --cuda-device-only is specified.
This patch fixes that. Only device linking is performed when --cuda-device-only
is specified.
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D116840
More information about the All-commits
mailing list