Gentoo Archives: gentoo-dev

From: "Chí-Thanh Christopher Nguyễn" <chithanh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Solving OpenCL /dev/dri/card* sandbox issues w/ ImageMagick
Date: Wed, 02 Apr 2014 15:20:08
Message-Id: 533C2A97.3080203@gentoo.org
In Reply to: Re: [gentoo-dev] Solving OpenCL /dev/dri/card* sandbox issues w/ ImageMagick by Samuli Suominen
1 Samuli Suominen schrieb:
2 > You are right
3 > I believe this started after a major mesa version bump, so I'd start
4 > looking for the culprit
5 > in Mesa's OpenCL code, but I have no idea howto go futher with the
6 > debugging... yet
7
8 The problem is finding a general way for OpenCL to force it to run on
9 the CPU. For Mesa OpenGL there is LIBGL_ALWAYS_SOFTWARE, but for OpenCL
10 there is nothing similar.
11
12 > Meanwhile, =media-gfx/imagemagick-6.8.8.10[opencl] now installs the
13 > sandbox.d file,
14 > workaround is better here than nothing since this is affecting multiple
15 > binaries,
16 > packages :/
17 >
18 > - Samuli
19 >
20
21 For ImageMagick specifically, the MAGICK_OCL_DEVICE environment variable
22 could be set per[1].
23
24 Another option would be to hide the existence of the GPU OpenCL device
25 from the applications using the OCL_ICD_VENDORS variable.
26
27
28 Best regards,
29 Chí-Thanh Christopher Nguyễn
30
31
32 [1] http://www.imagemagick.org/script/opencl.php