[cfe-dev] Determine CUDA qualifiers in AST
Felix Schmitt
felix.schmitt at zih.tu-dresden.de
Thu Jun 16 14:10:28 PDT 2011
Peter Collingbourne <peter at ...> writes:
>
> Assuming you are using the NVIDIA header files, you should add
> -D__CUDACC__ to your frontend command line. This will cause the
> headers to both define the __global__ (etc.) macros correctly and
> declare the blockIdx (etc.) variables.
>
Thanks a lot,
using addMacroDef("__CUDACC__") on the PreprocessorOpts did the trick.
Felix
More information about the cfe-dev
mailing list