[llvm] [OpenMP] Remove 'omp assumes' scopes now that we have no inline ASM (PR #123611)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 06:49:17 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-libc-amdgpu-runtime` running on `omp-vega20-1` while building `offload` at step 7 "Add check check-offload".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/73/builds/12027

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (Add check check-offload) failure: test (failure)
******************** TEST 'libomptarget :: amdgcn-amd-amdhsa :: jit/empty_kernel_lvl1.c' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang -fopenmp    -I /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/test -I /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload -L /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./lib -L /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src  -nogpulib -Wl,-rpath,/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./lib  -fopenmp-targets=amdgcn-amd-amdhsa -O3 /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/test/jit/empty_kernel_lvl1.c -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp -Xoffload-linker -lc -Xoffload-linker -lm /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./lib/libomptarget.devicertl.a -fopenmp-target-jit      -DTGT1_DIRECTIVE="target"
# executed command: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/clang -fopenmp -I /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/test -I /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload -L /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./lib -L /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -nogpulib -Wl,-rpath,/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload -Wl,-rpath,/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./lib -fopenmp-targets=amdgcn-amd-amdhsa -O3 /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/test/jit/empty_kernel_lvl1.c -o /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp -Xoffload-linker -lc -Xoffload-linker -lm /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./lib/libomptarget.devicertl.a -fopenmp-target-jit -DTGT1_DIRECTIVE=target
# RUN: at line 4
env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp.pre.ll          LIBOMPTARGET_JIT_SKIP_OPT=true                        /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp
# executed command: env LIBOMPTARGET_JIT_PRE_OPT_IR_MODULE=/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp.pre.ll LIBOMPTARGET_JIT_SKIP_OPT=true /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp
# RUN: at line 7
/home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/FileCheck --input-file /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp.pre.ll /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/test/jit/empty_kernel.inc --check-prefix=FIRST
# executed command: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/./bin/FileCheck --input-file /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp.pre.ll /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/test/jit/empty_kernel.inc --check-prefix=FIRST
# .---command stderr------------
# | /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/test/jit/empty_kernel.inc:37:16: error: FIRST-NEXT: is not on the line after the previous match
# | // FIRST-NEXT: ret void
# |                ^
# | /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp.pre.ll:29:2: note: 'next' match was here
# |  ret void
# |  ^
# | /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp.pre.ll:26:80: note: previous match ended here
# | define weak_odr protected amdgpu_kernel void @__omp_offloading_802_d8282ad_main_l2(ptr noalias noundef %0) local_unnamed_addr #1 {
# |                                                                                ^
# | /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp.pre.ll:27:1: note: non-matching line after previous match is here
# |  tail call void @llvm.amdgcn.s.barrier() #2
# | ^
# | 
# | Input file: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.build/runtimes/runtimes-bins/offload/test/amdgcn-amd-amdhsa/jit/Output/empty_kernel_lvl1.c.tmp.pre.ll
# | Check file: /home/ompworker/bbot/openmp-offload-libc-amdgpu-runtime/llvm.src/offload/test/jit/empty_kernel.inc
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          .
# |          .
# |          .
# |         24:  
# |         25: ; Function Attrs: alwaysinline mustprogress norecurse nounwind 
# |         26: define weak_odr protected amdgpu_kernel void @__omp_offloading_802_d8282ad_main_l2(ptr noalias noundef %0) local_unnamed_addr #1 { 
# |         27:  tail call void @llvm.amdgcn.s.barrier() #2 
# |         28:  tail call void @llvm.amdgcn.s.barrier() #2 
# |         29:  ret void 
# | next:37      !~~~~~~~  error: match on wrong line
# |         30: } 
# |         31:  
# |         32: attributes #0 = { convergent nocallback nofree nounwind willreturn } 
# |         33: attributes #1 = { alwaysinline mustprogress norecurse nounwind "amdgpu-flat-work-group-size"="1,256" "amdgpu-no-agpr" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-flat-scratch-init" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "kernel" "no-trapping-math"="true" "omp_target_thread_limit"="256" "stack-protector-buffer-size"="8" "target-cpu"="gfx906" "target-features"="+16-bit-insts,+ci-insts,+dl-insts,+dot1-insts,+dot10-insts,+dot2-insts,+dot7-insts,+dpp,+gfx8-insts,+gfx9-insts,+s-memrealtime,+s-memtime-inst,+wavefrontsize64" "uniform-work-group-size"="true" } 
# |         34: attributes #2 = { "llvm.assume"="ext_aligned_barrier" } 
...

```

</details>

https://github.com/llvm/llvm-project/pull/123611


More information about the llvm-commits mailing list