Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Nov 2016 10:26:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 214204] Unable to run OpenCL programs while X11 session is active
Message-ID:  <bug-214204-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214204

            Bug ID: 214204
           Summary: Unable to run OpenCL programs while X11 session is
                    active
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: danfe@FreeBSD.org
          Assignee: x11@FreeBSD.org
             Flags: maintainer-feedback?(x11@FreeBSD.org)

I've decided to play with OpenCL on AMD A8-5550M APU laptop of mine a bit, =
so
I've read our wiki [1], installed necessary ports, googled for a simple Ope=
nCL
program source code [2], built it, and run.

It ran OK, but only when I switched from my X11 session to console, or if I=
 run
it as root.  Being inside X, it reports:

> radeon: Failed to get PCI ID, error number -13
> Using platform: Clover
>  No devices found. Check OpenCL installation!
devel/clinfo also behaves this way (finds no devices) and spits out the same
error.  My user belongs to "video" group, and permissions on /dev/dri/* are
sane (default, "rw-" for "video" group).

-13 indicates "permission denied" (-EACCES).  Apparently, similar (or perha=
ps
related) bug was discovered and fixed in Mesa back in 2012 [3].  The code in
current Mesa is different though.  Perhaps FreeBSD needs special treatment,=
 or
original bug resurfaced.  I'm not an expert on Mesa codebase but will gladly
provide any additional details and happy to test patches.

[1] https://wiki.freebsd.org/Graphics/OpenCL
[2]
http://simpleopencl.blogspot.ru/2013/06/tutorial-simple-start-with-opencl-a=
nd-c.html
[3] https://lists.freedesktop.org/archives/mesa-commit/2012-July/038068.html

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214204-13>