[PATCH] Create a frontend flag to disable CUDA cross-target call checks

Eli Bendersky eliben at google.com
Wed Apr 15 13:19:58 PDT 2015


In http://reviews.llvm.org/D9036#156680, @tra wrote:

> LGTM.
>  On a side note, do you still need fcuda_allow_host_calls_from_host_device ?


Yes, unfortunately. This one is used by the compilation step itself, where Clang then emits a warning (instead of an error). This mimics nvcc's behavior. Some __host__ __device__ functions are only really called on the host side, but the compiler has no way of proving it statically.


http://reviews.llvm.org/D9036

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list