P4 to Git Change 2049201 by skudchad@skudchad_test2_win_opencl on 2019/12/20 11:44:13

SWDEV-216708 - [hipclang-vdi-rocm][FBA-77]hipGetDeviceCount() query should not trigger any queue creation.
	- KFD queues get created when we call hsa_executable_load_agent_code_object when creating a blitProgram at init. Delay blit creation until when needed
	- Queue also gets created when we init a xferQueue. Delay that too until when needed.

	If we want to have a lite init, there are multiple changes needed in both OpenCL and HIP. Thats rather a feature to work on later.

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocblit.cpp#34 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#148 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#47 edit
这个提交包含在:
foreman 于 2019-12-20 11:50:41 -05:00 提交
1 父节点 30ba6b114c
当前提交 1384e82e60
3 个文件已更改
+32 -24

没有与搜索条件相匹配的文件

+3 -1
查看文件
@@ -733,7 +733,9 @@ bool KernelBlitManager::create(amd::Device& device) {
bool KernelBlitManager::createProgram(Device& device) {
if (device.blitProgram() == nullptr) {
return false;
if (!device.createBlitProgram()) {
return false;
}
}
std::vector<amd::Device*> devices;