|
|
@ -13,22 +13,22 @@ class OpenCL extends BaseCfg |
|
|
|
/** |
|
|
|
* @var integral 是否使用cpu渲染,默认是 |
|
|
|
*/ |
|
|
|
protected $cpuUse = self::CLOSE; |
|
|
|
public $cpuUse = self::CLOSE; |
|
|
|
|
|
|
|
/** |
|
|
|
* @var integral 是否使用gpu渲染,默认否 |
|
|
|
*/ |
|
|
|
protected $gpuUse = self::OPEN; |
|
|
|
public $gpuUse = self::OPEN; |
|
|
|
|
|
|
|
/** |
|
|
|
* @var string 在GPU渲染模式下,使用哪些GPU设备 |
|
|
|
* @var string 控制使用哪些GPU设备的字符串(取值:是一段能标识系统中一个或多个GPU设备的ID字符串) |
|
|
|
*/ |
|
|
|
protected $devicesSelect = '10'; |
|
|
|
public $devicesSelect = '10'; |
|
|
|
|
|
|
|
/** |
|
|
|
* @var integral 在GPU渲染模式下,CPU是否渲染,并以多少线程渲染 |
|
|
|
* @var integral GPU渲染模式下,设置CPU是否渲染和多少线程渲染(取值范围: 0 >= $threadsCount ) |
|
|
|
*/ |
|
|
|
protected $nativeThreadsCount = 4; |
|
|
|
public $nativeThreadsCount = 4; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -50,22 +50,4 @@ class OpenCL extends BaseCfg |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 在GPU渲染模式下,设置使用哪些GPU设备 |
|
|
|
* @var string $gpuIdStr 传入一个控制使用哪些GPU设备的字符串 |
|
|
|
*/ |
|
|
|
public function selectDevices($gpuIdStr) |
|
|
|
{ |
|
|
|
$this->devicesSelect = $gpuIdStr; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 在GPU渲染模式下,设置CPU是否渲染,并以多少线程渲染 |
|
|
|
* @var integer $nativeThreadsCount 传入一个控制CPU是否渲染,并以多少线程渲染的整数 |
|
|
|
*/ |
|
|
|
public function setNativeThreadsCount($count) |
|
|
|
{ |
|
|
|
$this->nativeThreadsCount = $count; |
|
|
|
} |
|
|
|
|
|
|
|
} |