Align gpu-id-array size to multiple of sizeof(uint32_t)
Change-Id: I9f46b6a331a8d928ef570b420fb60b99b2edfdd1
Signed-off-by: Ben Goz <ben.goz@amd.com>
[ROCm/ROCR-Runtime commit: 00386734b1]
This commit is contained in:
committed by
Gerrit Code Review
parent
e8327090b9
commit
89905c0cd7
@@ -275,7 +275,7 @@ hsaKmtMapMemoryToGPUNodes(
|
||||
return ret;
|
||||
|
||||
ret = fmm_register_memory(MemoryAddress, MemorySizeInBytes,
|
||||
gpu_id_array, NumberOfNodes);
|
||||
gpu_id_array, NumberOfNodes*sizeof(uint32_t));
|
||||
if (ret != HSAKMT_STATUS_SUCCESS)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user