[PATCH] D60141: [HIP-Clang] Fat binary should not be produced for non GPU code
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 2 13:20:16 PDT 2019
tra added a comment.
General nit: please use diffs with very large context when you submit patches with Phabricator.
https://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface
================
Comment at: lib/CodeGen/CGCUDANV.cpp:475-476
return nullptr;
+ if (IsHIP && EmittedKernels.empty() && DeviceVars.empty())
+ return nullptr;
// void __{cuda|hip}_register_globals(void* handle);
----------------
I think this would make sense for CUDA, too.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60141/new/
https://reviews.llvm.org/D60141
More information about the cfe-commits
mailing list