Hi
I have a speed problem and I was following a post in which I found the exact problem that another user faced (https://magick.codeplex.com/discussions/657120): I have to resize hundred of images and the first one (the first after the program starts each time) takes 6-8 seconds against the 1-2 second for any other one.
The solution given to the user is to set:
Here is my ImagemagickOpenCLDeviceProfile.xml:
<devices>
<device name="CPU" score="28.35"/>
<device platform="Intel(R) OpenCL" vendor="Intel(R) Corporation" name="Intel(R) HD Graphics 4400" version="20.19.15.4444" maxClockFrequency="1000" maxComputeUnits="20" score="0.6067"/>
<device platform="Intel(R) OpenCL" vendor="Intel(R) Corporation" name="Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz" version="5.2.0.10094" maxClockFrequency="1700" maxComputeUnits="4" score="2.261"/>
</devices>
Furthermore, I enabled trace logging on a file and I write you the lines where the time loss takes place:
24/10/2016 12.51.28 | 2016-10-24T12:51:28+02:00 0:02.926 2.328u 7.0.3 Trace MyApp.Win.vshost.exe[6056]: splay-tree.c/GetValueFromSplayTree/891/Trace
...
24/10/2016 12.51.28 | 2016-10-24T12:51:28+02:00 0:02.927 2.328u 7.0.3 Exception MyApp.Win.vshost.exe[6056]: blob.c/FileToBlob/992/Exception
unable to open file 'C:\Users\MyUser\AppData\Local\ImageMagick\magick_opencl_Intel(R)_HD_Graphics_4400_241a4c0f_32.bin': No such file or directory
24/10/2016 12.51.28 | 2016-10-24T12:51:28+02:00 0:02.928 2.328u 7.0.3 Trace MyApp.Win.vshost.exe[6056]: utility.c/GetPathComponent/1213/Trace
....\ImageMagick\MagickCore\blob.c
24/10/2016 12.51.32 | 2016-10-24T12:51:32+02:00 0:07.308 6.063u 7.0.3 Trace MyApp.Win.vshost.exe[6056]: image.c/CloneImage/812/Trace
C:\FOTO\BMW_40\EZ454YZ_1.JPG
24/10/2016 12.51.32 | 2016-10-24T12:51:32+02:00 0:07.334 6.063u 7.0.3 Trace MyApp.Win.vshost.exe[6056]: image.c/GetImageInfo/1343/Trace
...
I installed from nuGet the last version of MagicK.NET, the 8bit anycpu version
What could be the cause?
Thank you
I have a speed problem and I was following a post in which I found the exact problem that another user faced (https://magick.codeplex.com/discussions/657120): I have to resize hundred of images and the first one (the first after the program starts each time) takes 6-8 seconds against the 1-2 second for any other one.
The solution given to the user is to set:
OpenCL.IsEnabled = false
I don't think this is a solution to my problem because the elaboration performance drops dramatically, taking 10 or more times.Here is my ImagemagickOpenCLDeviceProfile.xml:
<devices>
<device name="CPU" score="28.35"/>
<device platform="Intel(R) OpenCL" vendor="Intel(R) Corporation" name="Intel(R) HD Graphics 4400" version="20.19.15.4444" maxClockFrequency="1000" maxComputeUnits="20" score="0.6067"/>
<device platform="Intel(R) OpenCL" vendor="Intel(R) Corporation" name="Intel(R) Core(TM) i3-4010U CPU @ 1.70GHz" version="5.2.0.10094" maxClockFrequency="1700" maxComputeUnits="4" score="2.261"/>
</devices>
Furthermore, I enabled trace logging on a file and I write you the lines where the time loss takes place:
24/10/2016 12.51.28 | 2016-10-24T12:51:28+02:00 0:02.926 2.328u 7.0.3 Trace MyApp.Win.vshost.exe[6056]: splay-tree.c/GetValueFromSplayTree/891/Trace
...
24/10/2016 12.51.28 | 2016-10-24T12:51:28+02:00 0:02.927 2.328u 7.0.3 Exception MyApp.Win.vshost.exe[6056]: blob.c/FileToBlob/992/Exception
unable to open file 'C:\Users\MyUser\AppData\Local\ImageMagick\magick_opencl_Intel(R)_HD_Graphics_4400_241a4c0f_32.bin': No such file or directory
24/10/2016 12.51.28 | 2016-10-24T12:51:28+02:00 0:02.928 2.328u 7.0.3 Trace MyApp.Win.vshost.exe[6056]: utility.c/GetPathComponent/1213/Trace
....\ImageMagick\MagickCore\blob.c
24/10/2016 12.51.32 | 2016-10-24T12:51:32+02:00 0:07.308 6.063u 7.0.3 Trace MyApp.Win.vshost.exe[6056]: image.c/CloneImage/812/Trace
C:\FOTO\BMW_40\EZ454YZ_1.JPG
24/10/2016 12.51.32 | 2016-10-24T12:51:32+02:00 0:07.334 6.063u 7.0.3 Trace MyApp.Win.vshost.exe[6056]: image.c/GetImageInfo/1343/Trace
...
I installed from nuGet the last version of MagicK.NET, the 8bit anycpu version
What could be the cause?
Thank you