Cycles: Cleanup, indentation
This commit is contained in:
@@ -356,10 +356,10 @@ bool OpenCLDeviceBase::OpenCLProgram::compile_kernel(const string *debug_src)
|
|||||||
cl_int ciErr;
|
cl_int ciErr;
|
||||||
|
|
||||||
program = clCreateProgramWithSource(device->cxContext,
|
program = clCreateProgramWithSource(device->cxContext,
|
||||||
1,
|
1,
|
||||||
&source_str,
|
&source_str,
|
||||||
&source_len,
|
&source_len,
|
||||||
&ciErr);
|
&ciErr);
|
||||||
|
|
||||||
if(ciErr != CL_SUCCESS) {
|
if(ciErr != CL_SUCCESS) {
|
||||||
add_error(string("OpenCL program creation failed: ") + clewErrorString(ciErr));
|
add_error(string("OpenCL program creation failed: ") + clewErrorString(ciErr));
|
||||||
@@ -761,10 +761,10 @@ void OpenCLInfo::get_usable_devices(vector<OpenCLPlatformDevice> *usable_devices
|
|||||||
num_devices = 0;
|
num_devices = 0;
|
||||||
cl_int ciErr;
|
cl_int ciErr;
|
||||||
if((ciErr = clGetDeviceIDs(platform_id,
|
if((ciErr = clGetDeviceIDs(platform_id,
|
||||||
device_type,
|
device_type,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
&num_devices)) != CL_SUCCESS || num_devices == 0)
|
&num_devices)) != CL_SUCCESS || num_devices == 0)
|
||||||
{
|
{
|
||||||
FIRST_VLOG(2) << "Ignoring platform " << platform_name
|
FIRST_VLOG(2) << "Ignoring platform " << platform_name
|
||||||
<< ", failed to fetch number of devices: " << string(clewErrorString(ciErr));
|
<< ", failed to fetch number of devices: " << string(clewErrorString(ciErr));
|
||||||
|
Reference in New Issue
Block a user