Closed
Description
reproducer code https://github.com/ye-luo/openmp-target/blob/master/tests/complex/complex_reduction.cpp
$ clang++ -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx906 -fopenmp-target-new-runtime -O3 complex_reduction.cpp -lm
$ ./a.out
Testing float
hierarchical parallelism wrong reduction value check(0,0) correct value (4950,-4950)
Testing double
hierarchical parallelism wrong reduction value check(0,0) correct value (4950,-4950)
On a different machine with MI50, different OS. I got
[GPU Memory Error] Addr: 0x7f0613e00000 Reason: Page not present or supervisor privilege.
Memory access fault by GPU node-2 (Agent handle: 0x1b883b0) on address 0x7f0613e00000. Reason: Page not present or supervisor privilege.