[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:20:04 PDT 2018

guansong added a comment.

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.


More information about the Openmp-commits mailing list