Convert and OpenCL
Posted: 2011-12-12T03:10:34-07:00
Hi!
I have task. Need install imagemagick on server and resize images on GPU.
First time = 12s rotate and resize image, before compile with opencl.
I install cuda, cuda drivers from nvidia and compiled imagick:
Next do make and make install.
After try rotate and resize image. Wihtout OpenCL time = 12sec and with opencl time = 12s. OpenCL not work!
Please. Help me solve this problem!
Thank you!
P.S. SORRY MY ENGLISH :-[
I have task. Need install imagemagick on server and resize images on GPU.
First time = 12s rotate and resize image, before compile with opencl.
I install cuda, cuda drivers from nvidia and compiled imagick:
Code: Select all
export LD_LIBRARY_PATH=/usr/local/cuda/lib64
export C_INCLUDE_PATH=/usr/local/cuda/include
./configure \
--prefix=/usr \
--enable-shared \
--enable-openmp \
--enable-opencl \
--without-dps \
--without-djvu \
--without-fftw \
--without-fpx \
--without-gslib \
--without-gvc \
--without-jbig \
--without-lcms \
--without-lcms2 \
--without-lzma \
--without-openexr \
--without-pango \
--without-rsvg \
--without-tiff \
--without-webp \
--without-wmf \
--without-xml | grep -e cl.h -e OpenCL
Code: Select all
checking CL/cl.h usability... yes
checking CL/cl.h presence... yes
checking for CL/cl.h... yes
checking OpenCL/cl.h usability... no
checking OpenCL/cl.h presence... no
checking for OpenCL/cl.h... no
checking for OpenCL library... -lOpenCL
After try rotate and resize image. Wihtout OpenCL time = 12sec and with opencl time = 12s. OpenCL not work!
Please. Help me solve this problem!
Code: Select all
time convert -rotate 45 -resize 800x600 -quality 80 ~/2.jpg ~/1.jpg
P.S. SORRY MY ENGLISH :-[