1 Description: Reduce error spew on unsupported hardware
3 Loading beignet on unsupported hardware produces ~20 errors, even
4 if another ICD is also installed that does support the hardware.
5 Replace these with one message that explicitly says what to do.
7 Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
9 --- a/src/cl_device_id.c
10 +++ b/src/cl_device_id.c
11 @@ -797,10 +797,10 @@ glk12eu_break:
12 case PCI_CHIP_SANDYBRIDGE_BRIDGE_S:
13 case PCI_CHIP_SANDYBRIDGE_S_GT:
14 // Intel(R) HD Graphics SandyBridge not supported yet
16 + fprintf(stderr, "beignet-opencl-icd: no supported GPU found, this is probably the wrong opencl-icd package for this hardware\n(If you have multiple ICDs installed and OpenCL works, you can ignore this message)\n");
20 - printf("cl_get_gt_device(): error, unknown device: %x\n", device_id);
24 --- a/src/intel/intel_driver.c
25 +++ b/src/intel/intel_driver.c
26 @@ -263,7 +263,6 @@ if(!intel_driver_is_active(intel)) {
29 if(!intel_driver_is_active(intel)) {
30 - fprintf(stderr, "Device open failed, aborting...\n");
31 return CL_DEVICE_NOT_FOUND;
34 @@ -324,7 +323,6 @@ drm_client_t client;
35 // usually dev_name = "/dev/dri/card%d"
36 dev_fd = open(dev_name, O_RDWR);
38 - fprintf(stderr, "open(\"%s\", O_RDWR) failed: %s\n", dev_name, strerror(errno));