[flang-commits] [flang] [flang] Restrict O0 hlfir.assign scalar-to-array inlining to OpenMP target device (PR #201774)
LLVM Continuous Integration via flang-commits
flang-commits at lists.llvm.org
Mon Jun 8 09:12:46 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-clang-flang` running on `rocm-worker-hw-01` while building `flang` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/67/builds/6134
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-clang-flang.py ...' (failure)
...
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_ptr_and_star_local.c (909 of 1380)
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_ptr_and_subscript_global.c (910 of 1380)
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_ptr_and_subscript_local.c (911 of 1380)
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_ptr_then_ptee_then_attach.c (912 of 1380)
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_structptr_and_member_global.c (913 of 1380)
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_structptr_and_member_local.c (914 of 1380)
PASS: libomptarget :: amdgcn-amd-amdhsa :: sanitizer/ptr_outside_alloc_2.c (915 of 1380)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/thread_state_1.c (916 of 1380)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/declare_mapper_nested_default_mappers_1.cpp (917 of 1380)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: api/omp_device_managed_memory_alloc.c (918 of 1380)
FAIL: libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-threads.cpp (919 of 1380)
******************** TEST 'libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-threads.cpp' FAILED ********************
Exit Code: 125
Command Output (stdout):
--
# RUN: at line 2
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp -Xoffload-linker -lompdevice
# executed command: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp -Xoffload-linker -lompdevice
# note: command had no output on stdout or stderr
# RUN: at line 3
rm -rf /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# executed command: rm -rf /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 4
mkdir -p /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# executed command: mkdir -p /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 5
env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp 2>&1 | /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp
# executed command: env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp
# note: command had no output on stdout or stderr
# executed command: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp
# note: command had no output on stdout or stderr
# RUN: at line 6
ls -t /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/*.json | sed -n '1p' | grep . | xargs -I {} /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay --verify {}
# executed command: ls -t '/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/*.json'
# note: command had no output on stdout or stderr
# executed command: sed -n 1p
# note: command had no output on stdout or stderr
# executed command: grep .
# note: command had no output on stdout or stderr
# executed command: xargs -I '{}' /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay --verify '{}'
# .---command stderr------------
# | Display only launched kernel:
# | Kernel 'omp target in main @ 30 (__omp_offloading_fc00_28a3a89_main_l30)'
# | OFFLOAD ERROR: memory access fault by GPU 2 (agent 0x5d578ae75f90) at virtual address 0x4800000000. Reasons: Unknown (0)
# | Use 'OFFLOAD_TRACK_ALLOCATION_TRACES=true' to track device allocations
# | xargs: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay: terminated by signal 6
Step 9 (Add check check-offload) failure: Add check check-offload (failure)
...
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_ptr_and_star_local.c (909 of 1380)
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_ptr_and_subscript_global.c (910 of 1380)
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_ptr_and_subscript_local.c (911 of 1380)
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_ptr_then_ptee_then_attach.c (912 of 1380)
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_structptr_and_member_global.c (913 of 1380)
UNSUPPORTED: libomptarget :: x86_64-unknown-linux-gnu :: mapping/map_structptr_and_member_local.c (914 of 1380)
PASS: libomptarget :: amdgcn-amd-amdhsa :: sanitizer/ptr_outside_alloc_2.c (915 of 1380)
PASS: libomptarget :: amdgcn-amd-amdhsa :: offloading/thread_state_1.c (916 of 1380)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: mapping/declare_mapper_nested_default_mappers_1.cpp (917 of 1380)
PASS: libomptarget :: x86_64-unknown-linux-gnu :: api/omp_device_managed_memory_alloc.c (918 of 1380)
FAIL: libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-threads.cpp (919 of 1380)
******************** TEST 'libomptarget :: amdgcn-amd-amdhsa :: tools/omp-kernel-replay/record-replay-diff-threads.cpp' FAILED ********************
Exit Code: 125
Command Output (stdout):
--
# RUN: at line 2
/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp -Xoffload-linker -lompdevice
# executed command: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/clang++ -fopenmp -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test -I /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -L /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib/x86_64-unknown-linux-gnu -Wl,-rpath,/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./lib -fopenmp-targets=amdgcn-amd-amdhsa /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp -o /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp -Xoffload-linker -lompdevice
# note: command had no output on stdout or stderr
# RUN: at line 3
rm -rf /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# executed command: rm -rf /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 4
mkdir -p /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# executed command: mkdir -p /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir
# note: command had no output on stdout or stderr
# RUN: at line 5
env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp 2>&1 | /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp
# executed command: env LIBOMPTARGET_RECORD=1 LIBOMPTARGET_RECORD_MEMSIZE=536870912 LIBOMPTARGET_RECORD_DIR=/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp
# note: command had no output on stdout or stderr
# executed command: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-clang-flang/llvm.src/offload/test/tools/omp-kernel-replay/record-replay-diff-threads.cpp
# note: command had no output on stdout or stderr
# RUN: at line 6
ls -t /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/*.json | sed -n '1p' | grep . | xargs -I {} /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay --verify {}
# executed command: ls -t '/home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/tools/omp-kernel-replay/Output/record-replay-diff-threads.cpp.tmp.testdir/*.json'
# note: command had no output on stdout or stderr
# executed command: sed -n 1p
# note: command had no output on stdout or stderr
# executed command: grep .
# note: command had no output on stdout or stderr
# executed command: xargs -I '{}' /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay --verify '{}'
# .---command stderr------------
# | Display only launched kernel:
# | Kernel 'omp target in main @ 30 (__omp_offloading_fc00_28a3a89_main_l30)'
# | OFFLOAD ERROR: memory access fault by GPU 2 (agent 0x5d578ae75f90) at virtual address 0x4800000000. Reasons: Unknown (0)
# | Use 'OFFLOAD_TRACK_ALLOCATION_TRACES=true' to track device allocations
# | xargs: /home/botworker/builds/openmp-offload-amdgpu-clang-flang/build/llvm.build/./bin/llvm-omp-kernel-replay: terminated by signal 6
```
</details>
https://github.com/llvm/llvm-project/pull/201774
More information about the flang-commits
mailing list