Commit 0edfa5d2 authored by Bernd Machenschalk's avatar Bernd Machenschalk
Browse files

Merge branch 'remove-GPU-constraint' into 'master'

Remove GPU constraint

See merge request einsteinathome/libclfft!4
parents 137b4784 8d760160
......@@ -719,7 +719,7 @@ cl_device_type getGlobalDeviceType()
return CL_DEVICE_TYPE_DEFAULT;
}
// default
return CL_DEVICE_TYPE_GPU;
return CL_DEVICE_TYPE_ALL;
}
void
......@@ -762,12 +762,6 @@ int main (int argc, char * const argv[]) {
unsigned int num_devices;
cl_device_type device_type = getGlobalDeviceType();
if(device_type != CL_DEVICE_TYPE_GPU)
{
log_info("Test only supported on DEVICE_TYPE_GPU\n");
test_finish();
exit(0);
}
cl_uint numPlatforms;
cl_platform_id platform = NULL;
......
......@@ -364,7 +364,6 @@ clFFT_CreatePlanAdv( cl_context context, clFFT_Dim3 n, clFFT_Dimension dim, clFF
cl_fft_plan *plan = NULL;
ostringstream kString;
int num_devices;
int gpu_found = 0;
cl_device_id devices[16];
size_t ret_size;
cl_device_type device_type;
......@@ -435,9 +434,6 @@ patch_kernel_source:
err = clGetDeviceInfo(devices[i], CL_DEVICE_TYPE, sizeof(device_type), &device_type, NULL);
ERR_MACRO(err);
if(device_type == CL_DEVICE_TYPE_GPU)
{
gpu_found = 1;
err = clBuildProgram(plan->program, 1, &devices[i], "-cl-mad-enable -cl-single-precision-constant", NULL, NULL);
if (err != CL_SUCCESS)
{
......@@ -463,10 +459,6 @@ patch_kernel_source:
ERR_MACRO(err);
}
}
}
if(!gpu_found)
ERR_MACRO(CL_INVALID_CONTEXT);
err = createKernelList(plan);
ERR_MACRO(err);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment