[Openmp-dev] Error when copying data from host to device.

Alexey Bataev via Openmp-dev openmp-dev at lists.llvm.org
Fri Nov 8 16:29:33 PST 2019


Did you allocate memory on the host?

Best regards,
Alexey Bataev

> 8 нояб. 2019 г., в 19:13, Itaru Kitayama via Openmp-dev <openmp-dev at lists.llvm.org> написал(а):
> 
> 
> 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.
> 
> _______________________________________________
> Openmp-dev mailing list
> Openmp-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev


More information about the Openmp-dev mailing list