[llvm] [OpenMP] Fix force-usm test after #157182 (PR #159095)

Jan Patrick Lehr via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 16 06:34:14 PDT 2025


https://github.com/jplehr created https://github.com/llvm/llvm-project/pull/159095

The refactoring lead to an additional data transfer. This changes the assumed transfers in the check-strings to work with that changed behavior.

>From fb8e8b5b08ad1a8d4fc0d0083b6bbee24e9cc1ce Mon Sep 17 00:00:00 2001
From: JP Lehr <JanPatrick.Lehr at amd.com>
Date: Tue, 16 Sep 2025 08:32:31 -0500
Subject: [PATCH] [OpenMP] Fix force-usm test  after #157182

The refactoring lead to an additional data transfer. This changes the
assumed transfers in the check-strings to work with that changed
behavior.
---
 offload/test/offloading/force-usm.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/offload/test/offloading/force-usm.cpp b/offload/test/offloading/force-usm.cpp
index a043ba47f54ad..9988c3dc4e9e0 100644
--- a/offload/test/offloading/force-usm.cpp
+++ b/offload/test/offloading/force-usm.cpp
@@ -48,7 +48,7 @@ int main(void) {
 
 // clang-format off
 // NO-USM: omptarget device 0 info: Copying data from host to device, HstPtr={{.*}}, TgtPtr={{.*}}, Size=4
-// NO-USM-NEXT: omptarget device 0 info: Copying data from host to device, HstPtr={{.*}}, TgtPtr={{.*}}, Size=12
+// NO-USM: omptarget device 0 info: Copying data from host to device, HstPtr={{.*}}, TgtPtr={{.*}}, Size=12
 // NO-USM-NEXT: omptarget device 0 info: Copying data from host to device, HstPtr={{.*}}, TgtPtr={{.*}}, Size=4
 // NO-USM-NEXT: omptarget device 0 info: Copying data from host to device, HstPtr={{.*}}, TgtPtr={{.*}}, Size=8, Name=pGI
 // NO-USM-NEXT: omptarget device 0 info: Copying data from device to host, TgtPtr={{.*}}, HstPtr={{.*}}, Size=4



More information about the llvm-commits mailing list