Page 1 of 1

OpenCL tests always run with ro home directory

Posted: 2014-05-18T14:57:13-07:00
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.

Re: OpenCL tests always run with ro home directory

Posted: 2014-05-19T05:33:37-07:00
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.