/// Copy the memory associated with a global from the host to its counterpart
/// on the device. The name, size, and origin are defined by \p HostGlobal.
/// The destination is defined by \p DeviceGlobal.
- Error writeGlobalToDevice(GenericDeviceTy &Device, DeviceImageTy &Image,
- const GlobalTy &HostGlobal,
+ Error writeGlobalToDevice(GenericDeviceTy &Device, const GlobalTy &HostGlobal,
const GlobalTy &DeviceGlobal) {
return moveGlobalBetweenDeviceAndHost(Device, HostGlobal, DeviceGlobal,
/* D2H */ false);
// can access host addresses directly. There is no longer a
// need for device copies.
GlobalTy HostGlobal(GlobalEntry);
- if (auto Err = GHandler.writeGlobalToDevice(*this, Image, HostGlobal,
- DeviceGlobal))
+ if (auto Err =
+ GHandler.writeGlobalToDevice(*this, HostGlobal, DeviceGlobal))
return Err;
}