<font size=2 face="sans-serif">Hi James,</font><br><br><font size=2 face="sans-serif">If you're installing the compiler from
source please use the following version.</font><br><br><font size=2 face="sans-serif">This is a mirror of trunk:</font><br><br><a href="https://github.com/clang-ykt"><font size=2 color=blue face="sans-serif">https://github.com/clang-ykt</font></a><br><br><font size=2 face="sans-serif">Clone Clang, LLVM and OpenMP runtime.</font><br><br><font size=2 color=#008000 face="sans-serif">IMPORTANT: For each repo
checkout <b>patched-upstream</b> branch.</font><br><br><font size=2 face="sans-serif">The Clang <b>patched-upstream</b> branch
contains a patch that fixes your problem.</font><br><br><font size=2 face="sans-serif">Thanks,</font><br><br><font size=2 face="sans-serif">--Doru</font><br><font size=2 face="sans-serif"><br></font><br><br><br><br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">James Price via Openmp-dev
<openmp-dev@lists.llvm.org></font><br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">"openmp-dev@lists.llvm.org"
<openmp-dev@lists.llvm.org></font><br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">03/19/2019 07:51 AM</font><br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">[Openmp-dev]
Math functions when offloading to CUDA devices</font><br><font size=1 color=#5f5f5f face="sans-serif">Sent by:
</font><font size=1 face="sans-serif">"Openmp-dev"
<openmp-dev-bounces@lists.llvm.org></font><br><hr noshade><br><br><br><tt><font size=2>Hi,<br><br>One of the issues we frequently hit when using the Clang OpenMP implementation
on NVIDIA GPUs is the lack of support for many common math functions (e.g.
cos/sin). Trying to use them produces errors of the form:<br><br> fatal error: error in backend: Cannot select: 0x47b33a0:
f64 = fsin 0x47b2f90<br><br>Translating math functions in target regions is listed as a feature that
isn’t supported yet, but is this something that is expected to be implemented
soon? Failing that, if someone can describe the desired approach to implement
this I might be able to take a stab at getting some initial patches together
(depending on the complexity).<br><br>Some functions such as sqrt work fine, but I assume this is because they
map directly to NVVM intrinsics.<br><br>Cheers,<br><br>James<br><br>_______________________________________________<br>Openmp-dev mailing list<br>Openmp-dev@lists.llvm.org<br></font></tt><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev"><tt><font size=2>https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</font></tt></a><tt><font size=2><br><br></font></tt><br><br><BR>