[PATCH] CUDA: Add option to allow host device functions to call host functions

Eli Bendersky eliben at google.com
Tue Feb 24 11:07:44 PST 2015


================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:6070
@@ -6069,1 +6069,3 @@
   "function %1 in %select{__device__|__global__|__host__|__host__ __device__}2 function">;
+def warn_host_device_function_calling_host_function : Warning<
+  "calling __host__ function %0 from __host__ __device__ function %1 can lead to runtime errors">,
----------------
Update this name to the new one for consistency

http://reviews.llvm.org/D7841

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






More information about the cfe-commits mailing list