P4 to Git Change 1987492 by kjayapra@0_HIPWS_LNX1_ROCM on 2019/08/22 11:31:51

SWDEV-188177 - Using the context from owner() in device::Program functions.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#61 edit
Bu işleme şunda yer alıyor:
foreman
2019-08-22 11:42:53 -04:00
ebeveyn dd4a6df8d2
işleme d34d591676
+2 -2
Dosyayı Görüntüle
@@ -3208,8 +3208,8 @@ bool Program::defineUndefinedVars() {
continue;
}
amd_mem_obj = new (device().GlbCtx()) amd::Buffer(device().GlbCtx(),
CL_MEM_USE_HOST_PTR, hsize);
amd_mem_obj = new (owner()->context()) amd::Buffer(const_cast<amd::Context&>(owner()->context()),
CL_MEM_USE_HOST_PTR, hsize);
if (amd_mem_obj == nullptr) {
LogError("[OCL] failed to create a mem object!");
return false;