From ffd485bda2cb5102311536d2112d7eeed539477f Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 29 Oct 2014 18:17:14 -0400 Subject: [PATCH] P4 to Git Change 1092066 by xcui@merged_opencl_jxcwin on 2014/10/29 18:11:54 EPR #406328 - modified the opencl runtime so that SVM allocation is done for every SVM capable devices, not just one device. This is the part of changes for SVM multiple device support. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#7 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#32 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/context.hpp#22 edit --- opencl/api/opencl/amdocl/cl_svm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencl/api/opencl/amdocl/cl_svm.cpp b/opencl/api/opencl/amdocl/cl_svm.cpp index cca509d980..fcd815e0a3 100644 --- a/opencl/api/opencl/amdocl/cl_svm.cpp +++ b/opencl/api/opencl/amdocl/cl_svm.cpp @@ -133,7 +133,7 @@ RUNTIME_ENTRY_RET_NOERRCODE(void*, clSVMAlloc, ( return NULL; } - const std::vector& devices = as_amd(context)->devices(); + const std::vector& devices = as_amd(context)->svmDevices(); bool sizePass = false; cl_device_svm_capabilities combinedSvmCapabilities = 0; const cl_uint hostAddressBits = LP64_SWITCH(32, 64);