[PATCH] D60220: [CUDA][Windows] Final fix for bug 38811 (Step 3 of 3)

Evgeny Mankov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 28 08:17:27 PDT 2019


emankov added a comment.

In D60220#1723350 <https://reviews.llvm.org/D60220#1723350>, @6yearold wrote:

> I'm seeing quite similar errors on FreeBSD with Clang 8 and 9:
>  Any idea how to fix this?


It looks like CUDA doesn't support `double` argument for device function __isnan on FreeBSD.

1. I'd look at LLVM trunk (10.0.0svn).
2. If the issue were not eliminated in the trunk, I'd make a change for FreeBSD similar to https://reviews.llvm.org/rL358654 to provide declarations for that function, allowing math_functions.hpp to compile, but with preventing from any use of it on the device side.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60220/new/

https://reviews.llvm.org/D60220





More information about the cfe-commits mailing list