[llvm-bugs] [Bug 48014] New: Using both -x cuda and -fopenmp complex wrappers block compilation
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 29 13:47:11 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=48014
Bug ID: 48014
Summary: Using both -x cuda and -fopenmp complex wrappers block
compilation
Product: clang
Version: 11.0
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: OpenMP
Assignee: unassignedclangbugs at nondot.org
Reporter: joachim at joameyer.de
CC: llvm-bugs at lists.llvm.org
This is very related to Bug 45533.
If compiling with both -x cuda and -fopenmp (the latter to target CPU), a
number of errors similar to the following are emitted:
In file included from <built-in>:1:
In file included from
/home/joachim/Projekte/sycl/install/llvm11/lib/clang/11.0.0/include/__clang_cuda_runtime_wrapper.h:406:
/home/joachim/Projekte/sycl/install/llvm11/lib/clang/11.0.0/include/__clang_cuda_complex_builtins.h:76:7:
error: no matching function for call to '__nv_isnand'
if (_ISNANd(__real__(z)) && _ISNANd(__imag__(z))) {
^~~~~~~
/home/joachim/Projekte/sycl/install/llvm11/lib/clang/11.0.0/include/__clang_cuda_complex_builtins.h:47:17:
note: expanded from macro '_ISNANd'
#define _ISNANd __nv_isnand
^~~~~~~~~~~
/home/joachim/Projekte/sycl/install/llvm11/lib/clang/11.0.0/include/__clang_cuda_libdevice_declares.h:226:16:
note: candidate function not viable: call to __device__ function from __host__
function
__DEVICE__ int __nv_isnand(double __a);
This is fixed in https://reviews.llvm.org/D90415 for master.
As this is the only missing piece to get the combination of -x cuda and
-fopenmp running with clang 11, I would suggest to backport the change to
release/11.x as well.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201029/13e4520b/attachment.html>
More information about the llvm-bugs
mailing list