[all-commits] [llvm/llvm-project] 0e2167: Fixing LIBOMPTARGET_INFO message, for Copying data...

Felipe Cabarcas via All-commits all-commits at lists.llvm.org
Fri Mar 15 12:25:36 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0e21672d996282973d9a7aca675a7f9510ba4bb8
      https://github.com/llvm/llvm-project/commit/0e21672d996282973d9a7aca675a7f9510ba4bb8
  Author: Felipe Cabarcas <110852406+fel-cab at users.noreply.github.com>
  Date:   2024-03-15 (Fri, 15 Mar 2024)

  Changed paths:
    M openmp/libomptarget/src/OpenMP/Mapping.cpp

  Log Message:
  -----------
  Fixing LIBOMPTARGET_INFO message, for Copying data from device to host (#85444)

When running OpenMP offloading application with LIBOMPTARGET_INFO=-1,
the addresses of the Copying data from **device** to **host**, the
address are swap.
As an example, Currently the address would be
```
omptarget device 0 info: Mapping exists with HstPtrBegin=0x00007ffddaf0fb90, TgtPtrBegin=0x00007fb385404000, Size=8000, DynRefCount=0 (decremented, delayed deletion), HoldRefCount=0
omptarget device 0 info: Copying data from device to host, TgtPtr=0x00007ffddaf0fb90, HstPtr=0x00007fb385404000, Size=8000, Name=d
```
And it should be
```
omptarget device 0 info: Copying data from device to host, TgtPtr=0x00007fb385404000, HstPtr=0x00007ffddaf0fb90, Size=8000, Name=d
```

---------

Co-authored-by: fel-cab <fel-cab at github.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list