[HIP-Clang] Fat binary should not be produced for non GPU code 2
authorAaron Enye Shi <enye.shi@gmail.com>
Tue, 2 Apr 2019 20:49:41 +0000 (20:49 +0000)
committerAaron Enye Shi <enye.shi@gmail.com>
Tue, 2 Apr 2019 20:49:41 +0000 (20:49 +0000)
commit8129521318accc44c2a009647572f6ebd3fc56dd
tree6661b70fd54aaa9c86d032af4904882b1e307640
parent19775a4c673aa94f414448818ad28d8a3235acb6
[HIP-Clang] Fat binary should not be produced for non GPU code 2

Also for CUDA, we need to disable producing these fat binary functions when there is no GPU code.

Reviewers: yaxunl, tra

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

llvm-svn: 357526
clang/lib/CodeGen/CGCUDANV.cpp
clang/test/CodeGenCUDA/device-stub.cu