OpenCL no effect?
Posted: 2016-11-21T04:27:31-07:00
Hi! I compiled imagemagick on windows. Trying to process 800x450 image. I have suggestion imagemagick uses my cpu instead of gpu for making blur. Does it normal behavior?
only openmp:
with opencl(second run with cache file):
only openmp:
Code: Select all
PS C:\Users\igors\Downloads\abc> Measure-Command {magick a.jpg -resize 800x800! -blur 20x20 -motion-blur 0x80-90 -motion
-blur 0x80+90 `( a.jpg `( -clone 0 -background black -shadow 60x25+0+0 `) -reverse -background none -layers merge +rep
age `) -gravity center -composite out.jpg}
Days : 0
Hours : 0
Minutes : 1
Seconds : 44
Milliseconds : 950
Ticks : 1049504577
TotalDays : 0.00121470437152778
TotalHours : 0.0291529049166667
TotalMinutes : 1.749174295
TotalSeconds : 104.9504577
TotalMilliseconds : 104950.4577
Code: Select all
PS C:\Users\igors\Downloads\abc> Measure-Command {magick a.jpg -resize 800x800! -blur 20x20 -motion-blur 0x80-90 -motion
-blur 0x80+90 `( a.jpg `( -clone 0 -background black -shadow 60x25+0+0 `) -reverse -background none -layers merge +rep
age `) -gravity center -composite out.jpg}
Days : 0
Hours : 0
Minutes : 1
Seconds : 44
Milliseconds : 668
Ticks : 1046688393
TotalDays : 0.00121144489930556
TotalHours : 0.0290746775833333
TotalMinutes : 1.744480655
TotalSeconds : 104.6688393
TotalMilliseconds : 104668.8393
Code: Select all
type ImagemagickOpenCLDeviceProfile.xml
<devices>
<device name="CPU" score="5.028"/>
<device platform="Intel(R) OpenCL" vendor="Intel(R) Corporation" name="Intel(R) HD Graphics 520" version="20.19.15.4377" maxClockFrequency="1050" maxComputeUnits="24" score="0.7449"/>
<device platform="Intel(R) OpenCL" vendor="Intel(R) Corporation" name="Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz" version="5.2.0.10094" maxClockFrequency="2500" maxComputeUnits="4" score="1.329"/>
<device platform="NVIDIA CUDA" vendor="NVIDIA Corporation" name="GeForce GTX 950M" version="375.70" maxClockFrequency="1124" maxComputeUnits="5" score="1.024"/>
<device platform="Experimental OpenCL 2.1 CPU Only Platform" vendor="Intel(R) Corporation" name="Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz" version="6.1.0.1600" maxClockFrequency="2500" maxComputeUnits="4" score="1.195"/>
</devices>
Code: Select all
magick -version
Version: ImageMagick 7.0.3-7 Q16 x64 2016-11-21 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 190024215
Features: Cipher DPC HDRI Modules OpenCL OpenMP
Delegates (built-in): bzlib cairo flif freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib