[Bug 241550] Base Clang can't compile trivial CUDA programs: error: no matching function for call to '__isnan'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Oct 29 18:05:49 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241550

Dimitry Andric <dim at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |theraven at FreeBSD.org

--- Comment #2 from Dimitry Andric <dim at FreeBSD.org> ---
It's unfortunate that the cuda headers use these __isnan functions, which seem
to be glibc specific.

That said, I see the error is not in the clang-supplied cuda wrapper headers,
but in
/usr/home/arr/cuda/var/cuda-repo-10-0-local-10.0.130-410.48/usr/local/cuda-10.0//include/crt/math_functions.hpp.
 So this is some specific thing that is (maybe) being used all of the place in
CUDA code?

We do indeed have an __inline_isnan, but it is currently only used for the
__fp_type_select() macro in math.h.  The name originates in base r253215 by
David, which says "Cleanups to math.h that prevent namespace conflicts with
C++".

It looks like the name used to be __isnan before that commit, but why it was
changed is unclear.  There is no __isnan in the C++ standards, as far as I can
see.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list