Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sun, 29 Apr 2012 20:05:16 -0300
From: Claudio André <>
Subject: Changes in common_opencl.c

Hi, i created a CPU only kernel (a .cl new file). Keep everything in 
just one file was a nightmare.

It is 10% better than John non Jumbo (crypt(3)), and, of course, worse 
than OpenSSL one.

To do so, i had to change common_opencl.c, especially, to allow me "init 
opencl" and later "compile the kernel". I add new functions, existing 
code still works fine.
I also added better suport for get CPU/GPU information: cpu(n), gpu(n), 
gpu_amd(n), gpu_nvidia(n), etc.

Any complains? To understant, a patch snip:

-    opencl_init("$JOHN/", gpu_id, platform_id);
+    opencl_init_dev(gpu_id, platform_id);
+    if (cpu(get_device_info()))
+        opencl_build_kernel("$JOHN/", gpu_id);
+    else
+        opencl_build_kernel("$JOHN/", gpu_id);

The "complete", not appliable patch attached.


View attachment "diff.patch" of type "text/x-patch" (34177 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.