Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 17 Mar 2013 13:44:33 +0100
From: magnum <john.magnum@...hmail.com>
To: john-users@...ts.openwall.com
Subject: Re: opencl

On 17 Mar, 2013, at 1:09 , Chris Mulligan <chris.mulligan@...il.com> wrote:
> Kotai:JohnTheRipper chmullig$ ./run/john --format=agilekeychain-opencl --rules=WordlistOnly --wordlist=wl.txt openwall.hash
> OpenCL platform 0: Apple, 2 device(s).
> Device 1: GeForce GT 330M
> Build log: <program source>:15:10: fatal error: 'opencl_device_info.h' file not found
> #include "opencl_device_info.h"
>         ^
> 
> Error -11 building kernel. DEVICE_INFO=130
> OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line (209) - (clBuildProgram failed.)

This is a known bug in OSX. We need to document it (I thought I already did). The thing is the OpenCL compiler does not obey the -Ipath given when building, so any headers needed by the kernel must exist in current directory:

magnum@...r-osx:john [unstable-jumbo]$ run/john -t -fo:agilekeychain-opencl 
OpenCL platform 0: Apple, 2 device(s).
Device 1: GeForce GT 650M
Build log: <program source>:15:10: fatal error: 'opencl_device_info.h' file not found
#include "opencl_device_info.h"
         ^

Error -11 building kernel. DEVICE_INFO=130
OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line (209) - (clBuildProgram failed.)

magnum@...r-osx:john [unstable-jumbo]$ cd src

magnum@...r-osx:src [unstable-jumbo]$ ../run/john -t -fo:agilekeychain-opencl 
OpenCL platform 0: Apple, 2 device(s).
Device 1: GeForce GT 650M
Local worksize (LWS) 64, Global worksize (GWS) 9216
Benchmarking: 1Password Agile Keychain PBKDF2-HMAC-SHA-1 AES [OpenCL]... DONE
Raw:	13454 c/s real, 83781 c/s virtual

Note that after a succesful build, the kernel binary is cached. So once the successful run-time build is made, you can move away from src:

magnum@...r-osx:src [unstable-jumbo]$ cd ..
magnum@...r-osx:john [unstable-jumbo]$ run/john -t -fo:agilekeychain-opencl 
OpenCL platform 0: Apple, 2 device(s).
Device 1: GeForce GT 650M
Local worksize (LWS) 64, Global worksize (GWS) 9216
Benchmarking: 1Password Agile Keychain PBKDF2-HMAC-SHA-1 AES [OpenCL]... DONE
Raw:	13356 c/s real, 83781 c/s virtual

magnum

Powered by blists - more mailing lists

Your e-mail address:

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