Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 14 Jan 2013 19:10:08 -0200
From: Claudio André <claudioandre.br@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: Changes to common-opencl.c

Em 13-01-2013 00:42, magnum escreveu:
> Simply change the existing --device option to --devices and with John's normal way of allowing abbreviations, --device will still work as well :-)
>
> Then of course there's some parsing to do. With VCL (which is awesome) in mind, I think support for all these forms will be appreciated:
>
> --device=3
>
> --devices=1,2,5
>
> --devices=3-5
>
> --devices=gpus
>
> --devices=cpus
>
> --devices=all

I created a fake multi-gpu format to test this. Examples:
Device 0 - GPU
Device 1 - CPU

Running it, you can see if:
../run/john -fo:sha256crypt-ng-opencl -t --devices=gpu     #Only GPU
../run/john -fo:sha256crypt-ng-opencl -t --devices=cpu     #Only CPU
../run/john -fo:sha256crypt-ng-opencl -t --devices=gpu,0   #Only GPU
../run/john -fo:sha256crypt-ng-opencl -t --devices=cpu,1   #Only CPU
../run/john -fo:sha256crypt-ng-opencl -t --devices=gpu,3   #Only GPU + 
error
../run/john -fo:sha256crypt-ng-opencl -t --devices=cpu,3   #Only CPU + error
../run/john -fo:sha256crypt-ng-opencl -t --devices=gpu,1   #Both CPU and GPU
../run/john -fo:sha256crypt-ng-opencl -t --devices=cpu,0   #Both CPU and GPU
../run/john -fo:sha256crypt-ng-opencl -t --devices=all #Everything
../run/john -fo:sha256crypt-ng-opencl -t --devices=all,3 #Everything + error

Using bull:
$ ../run/john -fo:sha256crypt-ng-opencl -t --devices=cpu,gpu
Device 2: AMD FX(tm)-8120 Eight-Core Processor
Device 0: GeForce GTX 570
Device 1: Tahiti (AMD Radeon HD 7900 Series)
Local worksize (LWS) 1, global worksize (GWS) 1024
Benchmarking: sha256crypt (rounds=5000) [OpenCL]... DONE
Raw:    1543 c/s real, 194 c/s virtual

- This ng format compile for all selected devices, but uses only the 
first one in crypt-all (it is not real multi-gpu).

Claudio

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.