P4 to Git Change 1094478 by xcui@merged_opencl_jxcwin on 2014/11/06 14:40:09
EPR #408459 - added an env variable OCL_FORCE_CPU_SVM in the runtime, so that the svm feature for CPU can be enabled manually even for non OpenCL 2.0 support for CPU device. code review: http://ocltc.amd.com/reviews/r/6190/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/cpu/cpudevice.cpp#268 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#218 edit
Este cometimento está contido em:
1 ascendente
37a837dc8f
cometimento
b124582a38
2 ficheiros modificados
+4
-1
Não existem ficheiros que correspondam à sua pesquisa
@@ -266,7 +266,7 @@ Device::init()
|
||||
|
||||
info.executionCapabilities_ = CL_EXEC_KERNEL | CL_EXEC_NATIVE_KERNEL;
|
||||
// Enable SVM only for OpenCL 2.0
|
||||
if ((OPENCL_MAJOR >= 2) && (CPU_OPENCL_VERSION >= 200)) {
|
||||
if (((OPENCL_MAJOR >= 2) && (CPU_OPENCL_VERSION >= 200)) || OCL_FORCE_CPU_SVM) {
|
||||
info.svmCapabilities_ = CL_DEVICE_SVM_COARSE_GRAIN_BUFFER |
|
||||
CL_DEVICE_SVM_FINE_GRAIN_BUFFER |
|
||||
CL_DEVICE_SVM_FINE_GRAIN_SYSTEM |
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador