[Openmp-commits] [PATCH] D45528: [OpenMP] Remove compilation warning when using clang to compile bc files.
Guansong Zhang via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Apr 19 12:49:45 PDT 2018
guansong added a comment.
In https://reviews.llvm.org/D45528#1072542, @guansong wrote:
> I checked again on the format you suggested. To use it, you need #include <inttypes.h> For example the macro was defined like this in my version of the inttypes.h
>
> # if __WORDSIZE == 64
> # define __PRI64_PREFIX "l"
> # define __PRIPTR_PREFIX "l"
> # else
> # define __PRI64_PREFIX "ll"
> # define __PRIPTR_PREFIX
> # endif
>
> # define PRId8 "d"
> # define PRId16 "d"
> # define PRId32 "d"
> # define PRId64 __PRI64_PREFIX "d"
>
>
>
> But the header causes a compilation issue for cuda clang. I am not sure how to solve that problem.
I mean the header file inttypes.h will causes issue for cuda clang, (it looks like it uses some features cuda does not support.)
https://reviews.llvm.org/D45528
More information about the Openmp-commits
mailing list