__builtin_nexttoward &co lower to a libcall, e.g. nexttowardf(), that
CUDA does not have.
Rather than try to implement it, we simply remove these calls -- nvcc
doesn't support them either.
Paths
| Differential D39703
[CUDA] Remove implementations of nexttoward and nextafter. AbandonedPublic Authored by jlebar on Nov 6 2017, 3:06 PM.
Details
Summary __builtin_nexttoward &co lower to a libcall, e.g. nexttowardf(), that Rather than try to implement it, we simply remove these calls -- nvcc
Diff Detail
Event TimelineComment Actions Libdevice does provide implementation for __nv_nextafterf() and __nv_nextafter() and it has corresponding wrappers in math_functions.h[pp]. Perhaps we should keep nextafter around. Comment Actions
Oh, that changes things, since nexttoward is basically the same thing as nextafter. Thanks. Let's scrap this and try again.
Revision Contents
Diff 121800 clang/lib/Headers/__clang_cuda_cmath.h
clang/lib/Headers/__clang_cuda_math_forward_declares.h
|