Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 02 Jul 2013 22:16:21 -0300
From: Claudio André <claudioandre.br@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: bug: GPU use in CPU-only formats

On 02-07-2013 22:01, Claudio André wrote:
>> > Can't we do all initial "opening" of anything GPU-related in the
>> > format's init(), if the format is GPU-enabled, and not any sooner?
>> > 
>> > Perhaps there's some implementation difficulty that I am missing.
>
> It is possible, but if the user ask for -dev=7, i have to check if
> there is such device, counting all available devices in each platform.

As Jim showed us recently (on john-users), a listed device is not an
available device. You have to create a context to get its real situation.

>
> diff --git a/src/john.c b/src/john.c
> index ec79393..9187391 100644
> --- a/src/john.c
>
>  #ifdef HAVE_OPENCL
>      if (any_opencl_device_exists()) {
>          john_register_one(&fmt_opencl_NSLDAPS);

As you can see above, JtR only register and list an OpenCL format if the
user can use it (devices detected). If we do nothing during
initialization, we can't do a check like this.

Claudio

[ CONTENT OF TYPE text/html SKIPPED ]

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ