Hi,
Executed my application with debugging information:
Libomptarget → Use default device id 0
Libomptarget → Checking whether device 0 is ready.
Libomptarget → Is the device 0 (local ID 0) initialized? 1
Libomptarget → Device 0 is ready to use.
Libomptarget → Entry 0: Base=0x00003fffcf5263d8, Begin=0x00003fffcf5263e0, Size=8, Type=0x21
Libomptarget → Entry 1: Base=0x00003fffcf5263e0, Begin=0x0000000000000000, Size=262720080, Type=0x11
Libomptarget → Looking up mapping(HstPtrBegin=0x00003fffcf5263e0, Size=8)…
Libomptarget → Mapping exists with HstPtrBegin=0x00003fffcf5263e0, TgtPtrBegin=0x0000110048400008, Size=8, updated RefCount=4
Libomptarget → There are 8 bytes allocated at target address 0x0000110048400008 - is not new
Libomptarget → Has a pointer entry:
Libomptarget → Looking up mapping(HstPtrBegin=0x00003fffcf5263e0, Size=8)…
Libomptarget → Mapping exists with HstPtrBegin=0x00003fffcf5263e0, TgtPtrBegin=0x0000110048400008, Size=8, updated RefCount=5
Libomptarget → There are 8 bytes allocated at target address 0x0000110048400008 - is not new
Libomptarget → Looking up mapping(HstPtrBegin=0x0000000000000000, Size=262720080)…
Libomptarget → Creating new map entry: HstBase=0x0000000000000000, HstBegin=0x0000000000000000, HstEnd=0x000000000fa8ca50, TgtBegin=0x0000110060000000
Libomptarget → There are 262720080 bytes allocated at target address 0x0000110060000000 - is new
Libomptarget → Moving 262720080 bytes (hst:0x0000000000000000) → (tgt:0x0000110060000000)
Target CUDA RTL → Error when copying data from host to device. Pointers: host = 0x0000000000000000, device = 0x0000110060000000, size = 262720080
Target CUDA RTL → CUDA error is: invalid argument
Libomptarget → Copying data to device failed.
Libomptarget fatal error 1: failure of target construct while offloading is mandatory
[…]
I think I am not seeing a major warning regarding use of map clause, so
I am not sure what’s wrong with my programming.