Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • Add-PKGBUILD
  • HSA
  • add-clFFT_GetSize
  • add-dylib-target
  • clmathfft
  • counting-mallocs
  • longer_dft_support
  • master
  • remove-CPU-constraint
  • current_brp_apps
  • current_fgrp_apps
11 results

Target

Select target project
  • einsteinathome/libclfft
  • maxBensch/libclfft
  • brevilo/libclfft
3 results
Select Git revision
  • BRP_build_fixes
  • CLFFT_NO_MAD_ENABLE
  • HSA
  • clmathfft
  • improve_Makefile
  • longer_dft_support
  • master
  • override_cl_compile_options
  • current_brp_apps
  • current_fgrp_apps
10 results
Show changes
Commits on Source (1)
......@@ -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);
......