<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 16, 2020 at 2:24 PM Craig Topper <<a href="mailto:craig.topper@gmail.com">craig.topper@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I'm trying to determine the status of CUDA on Windows. This page <a href="https://llvm.org/docs/CompileCudaWithLLVM.html" target="_blank">https://llvm.org/docs/CompileCudaWithLLVM.html</a> mentions PR38811, but that bug was fixed almost a year ago.</div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>That page also mentions the current version of clang is 7.0.0, but we're about to release 10.0.0 so thats almost 3 versions behind.</div><div><br></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div></div><div><div class="gmail_default" style="font-family:verdana,sans-serif">The docs are terribly out of date. I'll update them soon.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">In general, there's no owner for CUDA compilation with clang on windows, no testing infstastructure, etc, so things tend to bitrot. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">At the moment clang-10 or newer should be able to compile CUDA on windows. It's not something that's been tested widely, but I did manage to compile a trivial kernel recently.</div><div class="gmail_default" style="font-family:verdana,sans-serif">The likely source of the problems will be with the code which replies on using standard C++ library in the device-side code. Clang on linux has a set of header wrappers which works for a subset of libc++ and libstdc++. MSVC's standard library is quite different and I'd expect code that uses something like std::complex<...> to fail in interesting ways.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif">--Artem</span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif"> </span><br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>I'd appreciate any information anyone has.</div><div><br></div>Thanks,<br clear="all"><div><div dir="ltr">~Craig</div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">--Artem Belevich</div></div></div>