SWDEV-447525 - Zero-initialize hipMemPoolProps.

Change-Id: Iee71961bd1d679f0a6a9223e6387748602706c2d
このコミットが含まれているのは:
Jaydeep Patel
2024-03-15 12:15:53 +00:00
コミット b45bc412d7
7個のファイルの変更39行の追加38行の削除
+7 -12
ファイルの表示
@@ -36,18 +36,13 @@ static int AreMemPoolsSupported(int device_id) {
}
static hipMemPoolProps CreateMemPoolProps(const int device_id, const hipMemAllocationHandleType handle_type) {
hipMemPoolProps kPoolProps = {
hipMemAllocationTypePinned,
handle_type,
{
hipMemLocationTypeDevice,
device_id
},
nullptr,
0,
{0}
};
hipMemPoolProps kPoolProps;
memset(&kPoolProps, 0, sizeof(kPoolProps));
kPoolProps.allocType = hipMemAllocationTypePinned;
kPoolProps.handleTypes = handle_type;
kPoolProps.location.type = hipMemLocationTypeDevice;
kPoolProps.location.id = device_id;
kPoolProps.win32SecurityAttributes = nullptr;
return kPoolProps;
}