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.
OpenCL tests always run with ro home directory
Re: OpenCL tests always run with ro home directory
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.