From: cristy Date: Wed, 26 Oct 2011 23:47:02 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6736 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc9c80d22d7aacc8604feb4fc1ffea13b230fb13;p=imagemagick --- diff --git a/MagickCore/accelerate.c b/MagickCore/accelerate.c index a2b5f4880..356a814f5 100644 --- a/MagickCore/accelerate.c +++ b/MagickCore/accelerate.c @@ -556,6 +556,39 @@ static ConvolveInfo *GetConvolveInfo(const Image *image,const char *name, convolve_info=DestroyConvolveInfo(convolve_info); return((ConvolveInfo *) NULL); } + if (image->debug != MagickFalse) + { + char + attribute[MaxTextExtent]; + + size_t + length; + + clGetDeviceInfo(convolve_info->devices[0],CL_DEVICE_NAME, + sizeof(attribute),attribute,&length); + (void) LogMagickEvent(AccelerateEvent,GetMagickModule(),"Name: %s", + attribute); + clGetDeviceInfo(convolve_info->devices[0],CL_DEVICE_VENDOR, + sizeof(attribute),attribute,&length); + (void) LogMagickEvent(AccelerateEvent,GetMagickModule(),"Vendor: %s", + attribute); + clGetDeviceInfo(convolve_info->devices[0],CL_DEVICE_VERSION, + sizeof(attribute),attribute,&length); + (void) LogMagickEvent(AccelerateEvent,GetMagickModule(), + "Driver Version: %s",attribute); + clGetDeviceInfo(convolve_info->devices[0],CL_DEVICE_PROFILE, + sizeof(attribute),attribute,&length); + (void) LogMagickEvent(AccelerateEvent,GetMagickModule(),"Profile: %s", + attribute); + clGetDeviceInfo(convolve_info->devices[0],CL_DRIVER_VERSION, + sizeof(attribute),attribute,&length); + (void) LogMagickEvent(AccelerateEvent,GetMagickModule(),"Driver: %s", + attribute); + clGetDeviceInfo(convolve_info->devices[0],CL_DEVICE_EXTENSIONS, + sizeof(attribute),attribute,&length); + (void) LogMagickEvent(AccelerateEvent,GetMagickModule(),"Extensions: %s", + attribute); + } /* Create OpenCL command queue. */