<div dir="ltr"><div>This is with the release branch (11.0.1, updated Tuesday 17 november). I haven't tried with the trunk... I will try to test the trunk tomorrow.</div><div><br></div><div>Thanks,</div><div>Geoff<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 19, 2020 at 5:41 PM Johannes Doerfert <<a href="mailto:johannesdoerfert@gmail.com">johannesdoerfert@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">Which version of clang is this exactly?<br>
Can you reproduce the error with trunk?<br>
There was a problem that should have been fixed and back ported to the <br>
release branch.<br>
<br>
~ Johannes<br>
<br>
On 11/19/20 7:08 AM, Geoff Levner via cfe-dev wrote:<br>
> If I have a source file including a CUDA kernel and OpenMP directives, I<br>
> can compile it like so on my Linux machine:<br>
><br>
> /usr/local/cuda/bin/nvcc -arch=sm_30 <a href="http://cutest.cu" rel="noreferrer" target="_blank">cutest.cu</a> --compiler-options=-fopenmp<br>
><br>
> I would expect to be able to compile it with clang 11 like so:<br>
><br>
> clang -fopenmp --cuda-gpu-arch=sm_30 <a href="http://cutest.cu" rel="noreferrer" target="_blank">cutest.cu</a> \<br>
>      -L/usr/local/cuda/lib64 -lcudart -ldl -lrt -pthread<br>
><br>
> But when I try, I get a number of undefined function symbols: __nv_isnand,<br>
> __nv_isinfd, __nv_copysign, etc.<br>
><br>
> Am I doing something wrong?<br>
><br>
> Geoff<br>
><br>
><br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>