Issue 87839
Summary [flang][OpenMP] reduction on complex data type not yet implemented
Labels flang
Assignees
Reporter ye-luo
    Consider this issue as a feature request. complex data type is very common in Fortran.

Got `not yet implemented`
```
yeluo@skylake09:~> flang-new -fopenmp -O3 main.f90
error: loc("/home/yeluo/main.f90":6:9): /gpfs/jlse-fs0/users/yeluo/opt/llvm-clang/llvm-project-nightly/flang/lib/Lower/OpenMP/ReductionProcessor.cpp:135: not yet implemented: Reduction of some types is not supported
LLVM ERROR: aborting
```

reproducer
```
program omp_reduction
 implicit none
  integer i
  complex(kind=8) a, b
  a = 1.d0
 !$omp parallel do reduction(+: a)
  do i = 1, 10
    a = a + i*(1.d0, 1.d0)
  enddo
  write(*,*) a

  b = 1.d0
  !$omp parallel reduction(+: b)
  !$omp do
  do i = 1, 100
    b = b + i*(1.d0, 1.d0)
  enddo
  !$omp end parallel
  write(*,*) b
end program
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to