SWDEV-387508 - do not treat uuid as string
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: I4de88330650eba4e4259686cdb5fb089b17aa8e4
Этот коммит содержится в:
коммит произвёл
Shadi Dashmiz
родитель
42e7cb77d9
Коммит
261ce9837c
@@ -268,8 +268,7 @@ hipError_t hipDeviceGetUuid(hipUUID* uuid, hipDevice_t device) {
|
||||
|
||||
auto* deviceHandle = g_devices[device]->devices()[0];
|
||||
const auto& info = deviceHandle->info();
|
||||
|
||||
::strncpy(uuid->bytes, info.uuid_, 16);
|
||||
memcpy(uuid->bytes, info.uuid_, sizeof(info.uuid_));
|
||||
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user