SWDEV-447525 - Zero-initialize hipMemPoolProps.

Change-Id: Iee71961bd1d679f0a6a9223e6387748602706c2d
This commit is contained in:
Jaydeep Patel
2024-03-15 12:15:53 +00:00
parent a19e465add
commit b45bc412d7
7 changed files with 39 additions and 38 deletions
+1 -1
View File
@@ -404,12 +404,12 @@ class MemPoolGuard {
break;
case MemPools::created:
hipMemPoolProps pool_props;
memset(&pool_props, 0, sizeof(pool_props));
pool_props.allocType = hipMemAllocationTypePinned;
pool_props.handleTypes = handle_type_;
pool_props.location.type = hipMemLocationTypeDevice;
pool_props.location.id = device_;
pool_props.win32SecurityAttributes = nullptr;
memset(pool_props.reserved, 0, sizeof(pool_props.reserved));
HIP_CHECK(hipMemPoolCreate(&mempool_, &pool_props));
}