- /**
- * Detect if the user has both an Intel and and AMD OpenCL runtime and not filtered any of them
- * In this case mark it for later use
- */
-
- int has_intel = 0;
- int has_amd = 0;
-
- for (uint platform_id = 0; platform_id < platforms_cnt; platform_id++)
- {
- if ((opencl_platforms_filter & (1 << platform_id)) == 0) continue;
-
- cl_platform_id platform = platforms[platform_id];
-
- char platform_vendor[INFOSZ] = { 0 };
-
- hc_clGetPlatformInfo (data.ocl, platform, CL_PLATFORM_VENDOR, sizeof (platform_vendor), platform_vendor, NULL);
-
- if (strcmp (platform_vendor, CL_VENDOR_AMD) == 0)
- {
- has_intel = 1;
- }
- else if (strcmp (platform_vendor, CL_VENDOR_INTEL_SDK) == 0)
- {
- has_amd = 1;
- }
- }
-