Skip to content

Commit ba01306

Browse files
committed
[Libomptarget] Fix LIBOMPTARGET_INFO test
Summary: A patch added a new line to one of the info outputs without updating this test. This patch adds the new text to the existing test.
1 parent 526af13 commit ba01306

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

openmp/libomptarget/src/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ TargetPointerResultTy DeviceTy::getTargetPointer(
297297
HstPtrName))
298298
.first->HDTT;
299299
INFO(OMP_INFOTYPE_MAPPING_CHANGED, DeviceID,
300-
"Creating new map entry with HstPtrBase= " DPxMOD
300+
"Creating new map entry with HstPtrBase=" DPxMOD
301301
", HstPtrBegin=" DPxMOD ", TgtPtrBegin=" DPxMOD ", Size=%ld, "
302302
"DynRefCount=%s, HoldRefCount=%s, Name=%s\n",
303303
DPxPTR(HstPtrBase), DPxPTR(HstPtrBegin), DPxPTR(Ptr), Size,

openmp/libomptarget/test/offloading/info.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ int main() {
2626
// INFO: Libomptarget device 0 info: alloc(A[0:64])[256]
2727
// INFO: Libomptarget device 0 info: tofrom(B[0:64])[256]
2828
// INFO: Libomptarget device 0 info: to(C[0:64])[256]
29-
// INFO: Libomptarget device 0 info: Creating new map entry with HstPtrBegin={{.*}}, TgtPtrBegin={{.*}}, Size=256, DynRefCount=1, HoldRefCount=0, Name=A[0:64]
30-
// INFO: Libomptarget device 0 info: Creating new map entry with HstPtrBegin={{.*}}, TgtPtrBegin={{.*}}, Size=256, DynRefCount=0, HoldRefCount=1, Name=B[0:64]
29+
// INFO: Libomptarget device 0 info: Creating new map entry with HstPtrBase={{.*}}, HstPtrBegin={{.*}}, TgtPtrBegin={{.*}}, Size=256, DynRefCount=1, HoldRefCount=0, Name=A[0:64]
30+
// INFO: Libomptarget device 0 info: Creating new map entry with HstPtrBase={{.*}}, HstPtrBegin={{.*}}, TgtPtrBegin={{.*}}, Size=256, DynRefCount=0, HoldRefCount=1, Name=B[0:64]
3131
// INFO: Libomptarget device 0 info: Copying data from host to device, HstPtr={{.*}}, TgtPtr={{.*}}, Size=256, Name=B[0:64]
32-
// INFO: Libomptarget device 0 info: Creating new map entry with HstPtrBegin={{.*}}, TgtPtrBegin={{.*}}, Size=256, DynRefCount=1, HoldRefCount=0, Name=C[0:64]
32+
// INFO: Libomptarget device 0 info: Creating new map entry with HstPtrBase={{.*}}, HstPtrBegin={{.*}}, TgtPtrBegin={{.*}}, Size=256, DynRefCount=1, HoldRefCount=0, Name=C[0:64]
3333
// INFO: Libomptarget device 0 info: Copying data from host to device, HstPtr={{.*}}, TgtPtr={{.*}}, Size=256, Name=C[0:64]
3434
// INFO: Libomptarget device 0 info: OpenMP Host-Device pointer mappings after block at info.c:{{[0-9]+}}:{{[0-9]+}}:
3535
// INFO: Libomptarget device 0 info: Host Ptr Target Ptr Size (B) DynRefCount HoldRefCount Declaration

0 commit comments

Comments
 (0)