3

I'm trying to experiment with GPU-accelerated resize operations using ImageMagick.

On my Windows machine, using convert -list configure lists only FEATURES OpenMP and not the OpenCL I expected since I have an NVidia CUDA GPU installed.

Is there something else I must do?

In production, we'll be on Linux. Will I also have to do something extra to get hardware acceleration enabled?

Hennes
  • 65,804
  • 7
  • 115
  • 169
Luke Puplett
  • 1,691

1 Answers1

6

OpenCL has to be enabled at compile time.

The Windows distribution of ImageMagick is compiled without OpenCL at this moment. You will have to compile it yourself to enable this.

You can find some information about doing that here.

The reason it is not enabled by default is because this will add a dependency to OpenCL.dll and this library is not always available on a Windows system. We are working on a change that will dynamically load this library so we can enable OpenCL by default.

On your Linux machine you also need to compile ImageMagick with the --enable-opencl option. It is possible that your Linux distribution has enabled this by default.

Olli
  • 7,739
dlemstra
  • 1,553