P4 to Git Change 2043802 by cpaquot@cpaquot-ocl-lc-lnx on 2019/12/11 03:06:02

SWDEV-213526 - [hip] OOM issue
	Delay any access to device layers till HIP API is called by app.
	This allows the app to fork the process first and then call HIP which is legal.
	Doing hip calls then fork isn't legal nor supported by ROCm.

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_internal.hpp#49 edit
... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#55 edit
这个提交包含在:
foreman
2019-12-11 03:11:19 -05:00
父节点 441c3d0a5b
当前提交 f5921646e4
共修改 3 个文件,包含 61 行新增和 27 行删除
+2
查看文件
@@ -65,6 +65,8 @@ void init() {
if (host_context && CL_SUCCESS != host_context->create(nullptr)) {
host_context->release();
}
PlatformState::instance().init();
}
amd::Context* getCurrentContext() {