SWDEV-447525 - Zero-initialize hipMemPoolProps.

Change-Id: Iee71961bd1d679f0a6a9223e6387748602706c2d
이 커밋은 다음에 포함됨:
Jaydeep Patel가 2024-03-15 14:26:00 +00:00를 커밋했습니다
1 부모 a19e465add
커밋 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;
}