HomePhabricator

[CUDA][HIP] Add -Xarch_device and -Xarch_host options

Authored by yaxunl on Mar 23 2020, 11:23 AM.

Description

[CUDA][HIP] Add -Xarch_device and -Xarch_host options

The argument after -Xarch_device will be added to the arguments for CUDA/HIP
device compilation and will be removed for host compilation.

The argument after -Xarch_host will be added to the arguments for CUDA/HIP
host compilation and will be removed for device compilation.

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

Details