[llvm-branch-commits] [clang] [llvm] [offload][OpenMP][NFC] Add a default-grid run to the no-loop tests (PR #229677)

Nicole Aschenbrenner via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 19 08:49:37 PDT 2026


================
@@ -89,3 +90,14 @@ int main(void) {
 // CHECK:  omptarget device {{[0-9]+}} info: Launching kernel {{.*}} SPMD mode
 // CHECK:  info: #Args: 3 Teams x Thrds:   16x  16 {{.*}}
 // CHECK:  number of errors: 0
+
+// DEFAULT:  omptarget device {{[0-9]+}} info: Launching kernel {{.*}} SPMD-No-Loop mode
----------------
nicebert wrote:

I added a no-loop kernel with a trip count of 1000000 to both the C and the Fortran test. Both runs now take the team and thread counts from the trace and check that their product covers the trip count, which a plain SPMD launch with the default grid doesn't.

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


More information about the llvm-branch-commits mailing list