[cfe-users] Usage of CLang CUDA target with MinGW stdlib

Artem Belevich via cfe-users cfe-users at lists.llvm.org
Fri Nov 9 11:36:52 PST 2018


On Fri, Nov 9, 2018 at 11:31 AM KOLANICH <kolan_n at mail.ru> wrote:

> > -nocudainc should get clang's headers out of your
> >way, but it will be up to you to provide the equivalent.
>
> Yes, corriander provides replacements for NVidia headers. But the problem
> is in the header shipped with CLang.
>

The problem is that you ended up including the headers (that do ship with
clang) that were not intended to be used in your case. -nocudainc is there
specifically to *not* use those headers. If you use -nocudainc, Clang's
cuda-specific wrappers will not be in the header include path and clang
will include <new> from whatever standard C++ library you have installed.

-- 
--Artem Belevich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20181109/5cae338d/attachment.html>


More information about the cfe-users mailing list