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@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@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>


-- 
--Artem Belevich
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to