[cfe-users] Usage of CLang CUDA target with MinGW stdlib
Artem Belevich via cfe-users
cfe-users at lists.llvm.org
Wed Nov 7 15:25:38 PST 2018
This may be same/similar to https://bugs.llvm.org/show_bug.cgi?id=38811
Basically, there's no owner for CUDA support on windows. Someone needs to
figure out why/how CUDA includes behave differently under mingw and figure
out how to work around that in the CUDA wrapper headers in clang.
On Fri, Nov 2, 2018 at 2:23 PM KOLANICH via cfe-users <
cfe-users at lists.llvm.org> wrote:
> Hello everybody.
>
> Could anyone clarify how to use this cuda target (-std=c++11 -x cuda) with
> MinGW stdlib?
>
> I mean I get errors
>
> <censored2>\LLVM-7.0.0-win32\lib\clang\7.0.0\include\cuda_wrappers\new:41:12:
> error: use of undeclared identifier 'malloc' return ::malloc(size);
> <censored2>\LLVM-7.0.0-win32\lib\clang\7.0.0\include\cuda_wrappers\new:58:7:
> error: no type named 'free' in the global namespace ::free(ptr);
>
> and I wonder what I should do to fix them.
> _______________________________________________
> cfe-users mailing list
> cfe-users at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
--
--Artem Belevich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20181107/fca885f2/attachment.html>
More information about the cfe-users
mailing list