]> git.pld-linux.org Git - packages/beignet.git/blame - beignet-reduce-notfound-output.patch
- merged some Debian patches
[packages/beignet.git] / beignet-reduce-notfound-output.patch
CommitLineData
7d3d7cb5
JB
1Description: Reduce error spew on unsupported hardware
2
3Loading beignet on unsupported hardware produces ~20 errors, even
4if another ICD is also installed that does support the hardware.
5Replace these with one message that explicitly says what to do.
6
7Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
8
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
15+ default:
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");
17 ret = NULL;
18 break;
19- default:
20- printf("cl_get_gt_device(): error, unknown device: %x\n", device_id);
21 }
22
23 if (ret == NULL)
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)) {
27 }
28
29 if(!intel_driver_is_active(intel)) {
30- fprintf(stderr, "Device open failed, aborting...\n");
31 return CL_DEVICE_NOT_FOUND;
32 }
33
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);
37 if (dev_fd == -1) {
38- fprintf(stderr, "open(\"%s\", O_RDWR) failed: %s\n", dev_name, strerror(errno));
39 return 0;
40 }
41
This page took 0.030078 seconds and 4 git commands to generate.