Well spotted - BOINC "GFLOPS peak" is the theoretical 8 * compute units
* max clock (not an actual speed measurement), and matches the 24
compute units clinfo reports, not the 48 compute units this GPU is
supposed to have.

Beignet can take this value from an internal hardcoded list (in
src/cl_device_id.c, which says 48 for this GPU), but by default it
prefers to ask the kernel.

This change should both confirm that that's where the 24 is coming from,
and change it back to 48 to allow testing whether this is the source of
the slowdown (warning: untested, might crash/hang the system):

--- a/src/intel/intel_driver.c
+++ b/src/intel/intel_driver.c
@@ -975,7 +975,7 @@ unsigned int eu_total;
 
 /* Prefer driver-queried max compute units if supported */
 if (!drm_intel_get_eu_total(driver->fd, &eu_total))
-  device->max_compute_unit = eu_total;
+  printf("kernel says %i compute units, hardcoded says %i\n", eu_total, 
device->max_compute_unit);
 else if (IS_CHERRYVIEW(device->device_id))
   printf(CHV_CONFIG_WARNING);
 #else

Procedure for recompiling a package with changes:

# requires a deb-src line in /etc/apt/sources.list - if there is a commented 
one there, uncomment it
sudo apt-get install build-essential
sudo apt-get build-dep beignet
apt-get source beignet
cd beignet*
# make your changes
# the patch name this asks for can be anything, the header can be left as-is
dpkg-source --commit
dpkg-buildpackage -us -uc
sudo dpkg -i ../beignet*.deb

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1800752

Title:
  Performance degraded in Cosmic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/beignet/+bug/1800752/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to