Summary: | lang/clover: Unable to run OpenCL programs while X11 session is active | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Alexey Dokuchaev <danfe> |
Component: | Individual Port(s) | Assignee: | freebsd-x11 (Nobody) <x11> |
Status: | Closed Overcome By Events | ||
Severity: | Affects Only Me | CC: | jbeich, manu, val, w.schwarzenfeld |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(x11) |
Version: | Latest | ||
Hardware: | amd64 | ||
OS: | Any |
Description
Alexey Dokuchaev
2016-11-04 10:26:07 UTC
Is this still relevant? I believe so; albeit I cannot test it right now on the same hardware, I do not recall any commits and/or discussions that might have changed anything in this regard since it was reported. (In reply to Alexey Dokuchaev from comment #0) > radeon: Failed to get PCI ID, error number -13 Find out which DRM ioctl fails and/or try radeonkms from graphics/drm-next-kmod. Maybe sharing a device between r600 and clover requires userptr or is supported only on newer hardware. Greg, can you reproduce the bug on amdgpu? For one, i915kms via lang/beignet requires userptr for OpenCL 2.0 but maybe amdgpu/radeonkms via lang/clover require it for any OpenCL version. Playing with `graphics/drm-next-kmod' back in May 2017 did not bring me any luck: loading radeonkms immediately locked up the entire system, end of story. (Not that I was very frustrated by that fact; I'm not really interested in anything next-ish anyway, I prefer to work with in-tree code and preferably of older versions.) (In reply to Jan Beich from comment #4) clover never worked for me on amdgpu, instant crash regardless of X11 sessions or whatever, I'm not sure if it's even supposed to work on amdgpu? I'll post the stack trace here when I get home err actually it hangs in a mutex, while creating a pthread o_0 https://gist.github.com/myfreeweb/c27af4790d88c37fb0f9314883bc1d78 (In reply to Greg V from comment #7) That looks similar to bug 220767. Try to prepend LD_PRELOAD=/lib/libthr.so.3 or rebuild devel/clinfo with LDFLAGS+=-lpthread (In reply to Jan Beich from comment #9) wow thanks it works!! segfaults on exit * thread #1, name = 'clinfo', stop reason = signal SIGSEGV * frame #0: 0x0000000807356260 frame #1: 0x0000000800a2b8f5 libc.so.7`__cxa_finalize(dso=0x0000000000000000) at atexit.c:239 frame #2: 0x00000008009b9051 libc.so.7`exit(status=0) at exit.c:74 frame #3: 0x0000000000401526 clinfo`___lldb_unnamed_symbol1$$clinfo + 390 but outputs all device information just fine. (Currently running under Weston, not Xorg) Closing this bug, if this is still with up to date packages please reopen. |