<div dir="ltr"><div>Hi Jon,</div><div>gcc 6 toolchain used to work for me and I never got gcc >=7 working due the massive mess in math header.</div><div>I configured clang with -DGCC_INSTALL_PREFIX=/opt/gcc/6.5 to force clang always picking up my own build of gcc 6.5.<br></div><div>My fresh build of clang today can compile my programs although I did workaround std::fpclassify in the application source code.<br></div><div><br></div><div>gcc 6.5 works + CUDA 10.1 build clang openmp offload properly.<br></div><div>The OS is ubuntu 18.04 and I used CUDA 10.1.</div><div>The machine has Ryzen 1700x and GTX1050Ti (pascal sm_61).</div><div><br></div><div>Best,<br></div><div>Ye</div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">===================<br>
Ye Luo, Ph.D.<br>Computational Science Division & Leadership Computing Facility<br>
Argonne National Laboratory</div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Jon Chesterfield via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org">openmp-dev@lists.llvm.org</a>> 于2019年11月5日周二 上午8:02写道:<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="auto">There's a conflict between the clang math forwards for cuda and libstdc++. At least, cuda 10.0 plus libstdc++ 7.2 or 7.4 error on duplicate, incompatible versions.<div dir="auto"><br></div><div dir="auto">For those that have the proprietary nvcc toolchain working with clang openmp, please share your gnu toolchain + cuda version, along with any unexpected config tricks you needed to use to get it it work. Plus what the host arch / GPU are please.</div><div dir="auto"><br></div><div dir="auto">My config doesn't really work so I can't start us off.</div><div dir="auto"><br></div><div dir="auto">Thank you</div><div dir="auto"><br></div><div dir="auto">Jon</div></div>
_______________________________________________<br>
Openmp-dev mailing list<br>
<a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br>
</blockquote></div>