OpenCL tests always run with ro home directory

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
stativ
Posts: 8
Joined: 2013-12-09T04:15:04-07:00
Authentication code: 6789

OpenCL tests always run with ro home directory

Post by stativ »

When ImageMagick is executed under a limited user account (eg. the common "nobody" user) the OpenCL tests are executed every time because the results can't be written into ~/.config/ImageMagick/since the user doesn't have a writable home directory. As a result, the execution always takes very long time.

A use case where this happens is a server that executes ImageMagick on demand under a limited user account.

It would be nice to store the results of the initial tests in a temporary directory in case the home is not writable.
stativ
Posts: 8
Joined: 2013-12-09T04:15:04-07:00
Authentication code: 6789

Re: OpenCL tests always run with ro home directory

Post by stativ »

I just found about IMAGEMAGICK_OPENCL_CACHE_DIR variable that can be used to fix this problem. However, it would still be nice to have some kind of automated fallback to /tmp in case the cache directory is not writable.
Post Reply