diff options
author | Felipe Cabarcas <110852406+fel-cab@users.noreply.github.com> | 2024-03-15 15:25:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 15:25:14 -0400 |
commit | 0e21672d996282973d9a7aca675a7f9510ba4bb8 (patch) | |
tree | d1e5fcd4324f50fd9e28957a845d0a9c551908da /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 89b7b3b9952210fbd9bd0db95385bfed69ffc7a3 (diff) | |
download | llvm-0e21672d996282973d9a7aca675a7f9510ba4bb8.zip llvm-0e21672d996282973d9a7aca675a7f9510ba4bb8.tar.gz llvm-0e21672d996282973d9a7aca675a7f9510ba4bb8.tar.bz2 |
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@github.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions