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: unassignedclangb...@nondot.org
          Reporter: xw111lu...@gmail.com
                CC: llvm-bugs@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@login3.summit complex]$ clang++ -g -O3 -fopenmp
-fopenmp-targets=nvptx64-nvidia-cuda -ffast-math complex.cpp 
[yeluo@login3.summit complex]$ ./a.out 
wrong a * b (0,0), correct value (-0.3,0.5)
[yeluo@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to