HomePhabricator

[CUDA][HIP] Emit dependent libs for host only

Description

[CUDA][HIP] Emit dependent libs for host only

Recently D60274 was introduced to allow lld to handle dependent libs. However current
usage of dependent libs (e.g. pragma comment(lib, *) in windows header files) are intended
for host only. Emitting the metadata in device IR causes link error in device path.

Until there is a way to different it dependent libs for device or host, metadata for dependent
libs should be emitted for host only. This patch enforces that.

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

Details

Committed
yaxunlMay 28 2019, 2:18 PM
Differential Revision
D62483: [CUDA][HIP] Emit dependent libs for host only
Parents
rL361879: AMDGPU: Temporary drop s_mul_hi_i/u32 patterns
Branches
Unknown
Tags
Unknown