GraphicsMagick with OpenCL support.
GraphicsMagick (short for gm) has no plans to support OpenCL, see the official website FAQ: "Are there any plans to use OpenCL or CUDA to use a GPU?”.
Based on version: GraphicsMagick-1.3.35
- Windows
- Linux
- Use the newly added
--enable-openclparameter when compilinggm.
$ ./configure --enable-opencl- Set the environment variable
MAGICK_OCL_DEVICEtotrue,GPUorCPUto enable hardware acceleration.
From FAQ of gm: "How often does GraphicsMagick pick up new code from ImageMagick?" to learn that im currently uses the Apache protocol, which focuses on patent protection.
So here is attached Copyright.txt for gm, LICENSE for im and NOTICE for im, click to view details.
| Iterations | Zoom in/out | Disable OpenCL | Enable OpenCL | |
|---|---|---|---|---|
| ResizeImage() | 100 | 50% | 6.36s | 8.05s |
| ResizeImage() | 100 | 200% | 26.6s | 18.7s |
| ScaleImage() | 100 | 50% | 5.89s | 5.15s |
| ScaleImage() | 100 | 200% | 23.6s | 15.8s |