[TransferBench] Fixing bug with fine-grained memory allocation (#311)

* Fixing bug with fine-grained memory
这个提交包含在:
gilbertlee-amd 编写, GitHub 于 2020-12-15 17:37:31 -07:00 提交
1 父节点 ae0c4092c7
当前提交 41c35dad48
1 个文件已更改
+1
+1
查看文件
@@ -764,6 +764,7 @@ void AllocateMemory(MemType memType, int devIndex, size_t numBytes, float** memP
}
else if (memType == MEM_GPU_FINE)
{
HIP_CALL(hipSetDevice(devIndex));
HIP_CALL(hipExtMallocWithFlags((void**)memPtr, numBytes, hipDeviceMallocFinegrained));
}
else