SWDEV-348678 - hipManagedVar to initialize on all devices

Change-Id: Id714b56e89e4930ee067f3a7472a0029057d2711
This commit is contained in:
Ajay
2022-08-04 00:14:55 +00:00
orang tua d12f205fd1
melakukan b380a95597
4 mengubah file dengan 17 tambahan dan 9 penghapusan
+1 -1
Melihat File
@@ -843,7 +843,7 @@ hipError_t StatCO::initStatManagedVarDevicePtr(int deviceId) {
DeviceVar* dvar = nullptr;
IHIP_RETURN_ONFAIL(var->getStatDeviceVar(&dvar, deviceId));
amd::HostQueue* queue = hip::getNullStream();
amd::HostQueue* queue = g_devices.at(deviceId)->NullStream();
if (queue != nullptr) {
err = ihipMemcpy(reinterpret_cast<address>(dvar->device_ptr()), var->getManagedVarPtr(),
dvar->size(), hipMemcpyHostToDevice, *queue);