|
@@ -90,7 +90,7 @@ kernel_gpu_opencl_wrapper( fp* image, // input image
|
|
|
fatal_CL(error, __LINE__);
|
|
|
|
|
|
// Select the 1st platform
|
|
|
- cl_platform_id platform = platforms[0];
|
|
|
+ cl_platform_id platform = platforms[1];
|
|
|
|
|
|
// Get the name of the selected platform and print it (if there are multiple platforms, choose the first one)
|
|
|
char pbuf[100];
|
|
@@ -540,7 +540,7 @@ kernel_gpu_opencl_wrapper( fp* image, // input image
|
|
|
|
|
|
error = clSetKernelArg( extract_kernel,
|
|
|
0,
|
|
|
- sizeof(long),
|
|
|
+ sizeof(long)*2,
|
|
|
(void *) &Ne);
|
|
|
if (error != CL_SUCCESS)
|
|
|
fatal_CL(error, __LINE__);
|
|
@@ -589,7 +589,7 @@ kernel_gpu_opencl_wrapper( fp* image, // input image
|
|
|
|
|
|
error = clSetKernelArg( prepare_kernel,
|
|
|
0,
|
|
|
- sizeof(long),
|
|
|
+ sizeof(long)*2,
|
|
|
(void *) &Ne);
|
|
|
if (error != CL_SUCCESS)
|
|
|
fatal_CL(error, __LINE__);
|
|
@@ -631,7 +631,7 @@ kernel_gpu_opencl_wrapper( fp* image, // input image
|
|
|
|
|
|
error = clSetKernelArg( reduce_kernel,
|
|
|
0,
|
|
|
- sizeof(long),
|
|
|
+ sizeof(long)*2,
|
|
|
(void *) &Ne);
|
|
|
if (error != CL_SUCCESS)
|
|
|
fatal_CL(error, __LINE__);
|
|
@@ -672,7 +672,7 @@ kernel_gpu_opencl_wrapper( fp* image, // input image
|
|
|
fatal_CL(error, __LINE__);
|
|
|
error = clSetKernelArg( srad_kernel,
|
|
|
3,
|
|
|
- sizeof(long),
|
|
|
+ sizeof(long)*2,
|
|
|
(void *) &Ne);
|
|
|
if (error != CL_SUCCESS)
|
|
|
fatal_CL(error, __LINE__);
|
|
@@ -761,7 +761,7 @@ kernel_gpu_opencl_wrapper( fp* image, // input image
|
|
|
fatal_CL(error, __LINE__);
|
|
|
error = clSetKernelArg( srad2_kernel,
|
|
|
3,
|
|
|
- sizeof(long),
|
|
|
+ sizeof(long)*2,
|
|
|
(void *) &Ne);
|
|
|
if (error != CL_SUCCESS)
|
|
|
fatal_CL(error, __LINE__);
|
|
@@ -880,7 +880,7 @@ kernel_gpu_opencl_wrapper( fp* image, // input image
|
|
|
// set arguments that were uptaded in this loop
|
|
|
error = clSetKernelArg( reduce_kernel,
|
|
|
1,
|
|
|
- sizeof(long),
|
|
|
+ sizeof(long)*2,
|
|
|
(void *) &no);
|
|
|
if (error != CL_SUCCESS)
|
|
|
fatal_CL(error, __LINE__);
|
|
@@ -1037,7 +1037,7 @@ kernel_gpu_opencl_wrapper( fp* image, // input image
|
|
|
|
|
|
error = clSetKernelArg( compress_kernel,
|
|
|
0,
|
|
|
- sizeof(long),
|
|
|
+ sizeof(long)*2,
|
|
|
(void *) &Ne);
|
|
|
if (error != CL_SUCCESS)
|
|
|
fatal_CL(error, __LINE__);
|