Memory consumption rises over a run, by ~2GB by the failure point. The exact number of iterations before failure depends on the beignet version but not the matrix size.
git bisect finds that this was introduced by https://cgit.freedesktop.org/beignet/commit/?id=7ae1517cfc373847f168ffb3e41b635861af19c7 (between 1.2.x and 1.3.x). However, this is a large commit and trying to revert it on 1.3.2 fails with conflicts, so this doesn't provide an immediate way to fix the problem. As a workaround, it is probably possible to compile beignet 1.2.x from source in Ubuntu 16.04 (use LLVM/Clang 3.8), but I haven't tried this. ** Changed in: beignet (Ubuntu) Status: New => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1776867 Title: OpenCL-beignet EnqueueNDRangeKernel fails after multiple execution with error -5 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/beignet/+bug/1776867/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs