P4 to Git Change 1590010 by skudchad@skudchad_test2_win_opencl on 2018/08/06 21:18:48

SWDEV-145570 - [HIP] - Fix some issues in hip runtime
	- Set stream for event
	- Free mem needs to be reported in bytes but runtime backends reports in Kb

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/15586/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_memory.cpp#40 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#15 edit
This commit is contained in:
foreman
2018-08-06 21:24:14 -04:00
parent f4add6058a
commit b4ccaeffe1
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ hipError_t hipMemGetInfo(size_t* free, size_t* total) {
return hipErrorInvalidValue;
}
*free = freeMemory[0];
*free = freeMemory[0] * Ki;
*total = device->info().globalMemSize_;
return hipSuccess;