[PATCH] D61765: [OpenMP][Clang][BugFix] Split declares and math functions inclusion.

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 13 13:06:57 PDT 2019


tra added a comment.

In D61765#1500309 <https://reviews.llvm.org/D61765#1500309>, @gtbercea wrote:

> As soon as libc++ the limits header included in
>
>   __clang_cuda_cmath.h:15
>   ``` is not found:
>  
>  
>
>
> __clang_cuda_cmath.h:15:10: fatal error: 'limits' file not found
>  #include <limits>
>
>   Not even CUDA works actually so I'm not sure what the best answer to this problem is.


Could you give me more details on how you've got this error?

If this change breaks CUDA compilation with libc++, that's going to be a problem. Currently CUDA and clang's headers we ship do work with both libc++ and few versions of libstdc++:
E.g: http://lab.llvm.org:8011/builders/clang-cuda-build/builds/33364/steps/ninja%20build%20simple%20CUDA%20tests/logs/stdio


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61765/new/

https://reviews.llvm.org/D61765





More information about the cfe-commits mailing list