]> granicus.if.org Git - imagemagick/commitdiff
Also log the devices that have been found.
authorDirk Lemstra <dirk@lemstra.org>
Thu, 29 Aug 2019 20:31:10 +0000 (22:31 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Thu, 29 Aug 2019 20:31:10 +0000 (22:31 +0200)
MagickCore/opencl.c

index d707428ac27ef8508c977c0967ac95f99ef9712c..0ce33227414e80ddf93bc7443c8a7d8202b1219d 100644 (file)
@@ -393,7 +393,7 @@ static void SelectOpenCLDevice(MagickCLEnv clEnv,cl_device_type type)
     j;
 
   (void) LogMagickEvent(AccelerateEvent,GetMagickModule(),
-    "Selecting OpenCL device for type: %d",(int) type);
+    "Selecting device for type: %d",(int) type);
   for (i = 0; i < clEnv->number_devices; i++)
     clEnv->devices[i]->enabled=MagickFalse;
 
@@ -2407,6 +2407,8 @@ static void LoadOpenCLDevices(MagickCLEnv clEnv)
         sizeof(cl_ulong),&device->local_memory_size,NULL);
 
       clEnv->devices[next]=device;
+      (void) LogMagickEvent(AccelerateEvent,GetMagickModule(),
+        "Found device: %s",device->name);
     }
   }
   if (next != clEnv->number_devices)