[flang-commits] [flang] [llvm] [flang][cuda][NFC] Move CUFDeviceIsActive function to the right place (PR #223453)

LLVM Continuous Integration via flang-commits flang-commits at lists.llvm.org
Tue Sep 15 11:24:22 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `amdgpu-clang-flang` running on `AMD-bb-w-05` while building `flang-rt,flang` at step 3 "annotate".

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

<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)
...
PASS: libomp :: ompt/parallel/parallel_if0.c (174 of 439)
PASS: libomp :: ompt/parallel/nested_serialized.c (175 of 439)
PASS: libomp :: ompt/parallel/nested_serialized_task_frames.c (176 of 439)
PASS: libomp :: ompt/parallel/nested_thread_num.c (177 of 439)
PASS: libomp :: ompt/parallel/nested_threadnum.c (178 of 439)
PASS: libomp :: ompt/tasks/omp_task_depend_all.c (179 of 439)
PASS: libomp :: ompt/tasks/serialized.c (180 of 439)
PASS: libomp :: ompt/parallel/nested_lwt.c (181 of 439)
PASS: libomp :: ompt/parallel/nested_lwt_thread_num.c (182 of 439)
PASS: libarcher :: races/lock-unrelated.c (183 of 439)
FAIL: libarcher :: races/parallel-simple.c (184 of 439)
******************** TEST 'libarcher :: races/parallel-simple.c' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 13
/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang -fopenmp  -gdwarf-4 -O1 -fsanitize=thread  -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src   /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp -latomic && env TSAN_OPTIONS='ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1' /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/deflake.bash /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp 2>&1 | tee /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp.log | /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang -fopenmp -gdwarf-4 -O1 -fsanitize=thread -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp -latomic
# note: command had no output on stdout or stderr
# executed command: env TSAN_OPTIONS=ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1 /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/deflake.bash /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp
# note: command had no output on stdout or stderr
# executed command: tee /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp.log
# note: command had no output on stdout or stderr
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c
# .---command stderr------------
# | /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c:36:11: error: CHECK: expected string not found in input
# | // CHECK: ThreadSanitizer: reported {{[1-7]}} warnings
# |           ^
# | <stdin>:23:5: note: scanning from here
# | DONE
# |     ^
# | <stdin>:24:1: note: possible intended match here
# | ThreadSanitizer: thread T4 finished with ignores enabled, created at:
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            18:  #0 pthread_create /home/botworker/bbot/amdgpu-clang-flang/llvm.src/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1083:3 (parallel-simple.c.tmp+0xa599c) 
# |            19:  #1 __kmp_create_worker <null> (libomp.so+0xcf382) 
# |            20:  
Step 8 (test-openmp) failure: test-openmp (failure)
...
PASS: libomp :: ompt/parallel/parallel_if0.c (174 of 439)
PASS: libomp :: ompt/parallel/nested_serialized.c (175 of 439)
PASS: libomp :: ompt/parallel/nested_serialized_task_frames.c (176 of 439)
PASS: libomp :: ompt/parallel/nested_thread_num.c (177 of 439)
PASS: libomp :: ompt/parallel/nested_threadnum.c (178 of 439)
PASS: libomp :: ompt/tasks/omp_task_depend_all.c (179 of 439)
PASS: libomp :: ompt/tasks/serialized.c (180 of 439)
PASS: libomp :: ompt/parallel/nested_lwt.c (181 of 439)
PASS: libomp :: ompt/parallel/nested_lwt_thread_num.c (182 of 439)
PASS: libarcher :: races/lock-unrelated.c (183 of 439)
FAIL: libarcher :: races/parallel-simple.c (184 of 439)
******************** TEST 'libarcher :: races/parallel-simple.c' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 13
/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang -fopenmp  -gdwarf-4 -O1 -fsanitize=thread  -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src   /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp -latomic && env TSAN_OPTIONS='ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1' /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/deflake.bash /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp 2>&1 | tee /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp.log | /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/clang -fopenmp -gdwarf-4 -O1 -fsanitize=thread -I /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests -I /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -L /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src -Wl,-rpath,/home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/runtime/src /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c -o /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp -latomic
# note: command had no output on stdout or stderr
# executed command: env TSAN_OPTIONS=ignore_noninstrumented_modules=0:ignore_noninstrumented_modules=1 /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/deflake.bash /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp
# note: command had no output on stdout or stderr
# executed command: tee /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/runtimes/runtimes-bins/openmp/tools/archer/tests/races/Output/parallel-simple.c.tmp.log
# note: command had no output on stdout or stderr
# executed command: /home/botworker/bbot/amdgpu-clang-flang/build/llvm.build/./bin/FileCheck /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c
# .---command stderr------------
# | /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c:36:11: error: CHECK: expected string not found in input
# | // CHECK: ThreadSanitizer: reported {{[1-7]}} warnings
# |           ^
# | <stdin>:23:5: note: scanning from here
# | DONE
# |     ^
# | <stdin>:24:1: note: possible intended match here
# | ThreadSanitizer: thread T4 finished with ignores enabled, created at:
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/botworker/bbot/amdgpu-clang-flang/llvm.src/openmp/tools/archer/tests/races/parallel-simple.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            18:  #0 pthread_create /home/botworker/bbot/amdgpu-clang-flang/llvm.src/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp:1083:3 (parallel-simple.c.tmp+0xa599c) 
# |            19:  #1 __kmp_create_worker <null> (libomp.so+0xcf382) 
# |            20:  

```

</details>

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


More information about the flang-commits mailing list