[llvm-bugs] [Bug 45003] New: std::complex support in offload region needed

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Feb 23 18:18:11 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=45003

            Bug ID: 45003
           Summary: std::complex support in offload region needed
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xw111luoye at gmail.com
                CC: llvm-bugs at lists.llvm.org

https://github.com/ye-luo/openmp-target/blob/master/hands-on/tests/complex/complex.cpp

I cannot test this on x86 due to math header issue but I can test on power 9.
So far std::complex doesn't work at all.
[yeluo at login3.summit complex]$ clang++ -g -O3 -fopenmp
-fopenmp-targets=nvptx64-nvidia-cuda -ffast-math complex.cpp 
[yeluo at login3.summit complex]$ ./a.out 
wrong a * b (0,0), correct value (-0.3,0.5)
[yeluo at login3.summit complex]$ clang++ -g -O3 -fopenmp
-fopenmp-targets=nvptx64-nvidia-cuda complex.cpp 
nvlink error   : Undefined reference to '__mulsc3' in
'/tmp/complex-5ceac3.cubin'
clang-11: error: nvlink command failed with exit code 255 (use -v to see
invocation)

-- 
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/20200224/b05bc676/attachment.html>


More information about the llvm-bugs mailing list