• Umang Yadav's avatar
    Avoid registering host buffer ptr multiple times during hip copies (#1245) · 7596f3f1
    Umang Yadav authored
    Currently, while copying a host buffer to the device, it first registers/maps the host buffer pointer to address space of the device.
    
    If the host buffer has been allocated by the hipHostMalloc then, it is implicitly registered to the device's address space, and no need to register again. This PR adds a check for the same.
    7596f3f1
hip.cpp 8.4 KB