[HIP-Clang] Fat binary should not be produced for non GPU code
authorAaron Enye Shi <enye.shi@gmail.com>
Tue, 2 Apr 2019 20:10:18 +0000 (20:10 +0000)
committerAaron Enye Shi <enye.shi@gmail.com>
Tue, 2 Apr 2019 20:10:18 +0000 (20:10 +0000)
commit13d8e929409fb1a1f8a2318250923c90f3abac7c
tree27aad49cef42e1da44ec25980327a80e50e7d4cd
parent9ca4ff2666299898b657c363e091096a78203898
[HIP-Clang] Fat binary should not be produced for non GPU code

Skip producing the fat binary functions for HIP when no device code is present.

Reviewers: yaxunl

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

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