|
Message-ID: <4E3A98B2.705@linuxasylum.net> Date: Thu, 04 Aug 2011 15:03:46 +0200 From: Samuele Giovanni Tonon <samu@...uxasylum.net> To: john-users@...ts.openwall.com Subject: Re: JtR CUDA patch On 08/04/11 06:06, Lukas Odzioba wrote: > Hi all! > > I've prepared patch adding nVidia GPU's support for the following formats: > phpass, cryptmd5, cryptsha256, cryptsha512 > > Performance is rather poor, here's a few benchmarks on my GTX460: > > phpass 292k c/s > cryptmd5 391k c/s > cryptsha256 7800 c/s > cryptsha512 5600 c/s > > For now it doesn't utilize multigpu's, but it will be added in near future. > To get best performance hand made tweaks are needed: > > For Fermi's change -arch=sm_10 to -arch=sm_20 in Makefile > Each CUDA format needs specific THREADS and BLOCKS constants defined > in *.h files. > There have got huge impact on performance so you should experiment > with them, here's important heuristics: > -BLOCKS should be multiple of device SM (Streaming Multiprocesors) > -THREADS should be multiple of 32 (usualy more than 128 is needed, up > to 512 on Fermi's). > Please remember to rebuild after changes. > > Patch is uploaded to wiki (http://openwall.info/wiki/john/patches) as > john-1.7.8-allcuda-0.diff > GPU patches have got page on wiki too: (http://openwall.info/wiki/john/GPU) > > If you having any problems with this patch feel free to contact me. > Any kind of feedback is welcomed. > > > Lukas while trying to compile on a nvidia i got this: samu@...esteria:/tmp/john-1.7.8/src$make linux-x86-64-cuda ln -sf x86-64.h arch.h make ../run/john ../run/unshadow ../run/unafs ../run/unique \ JOHN_OBJS="DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o BSDI_fmt.o MD5_fmt.o MD5_std.o BF_fmt.o BF_std.o AFS_fmt.o LM_fmt.o dummy.o batch.o bench.o charset.o common.o compiler.o config.o cracker.o crc32.o external.o formats.o getopt.o idle.o inc.o john.o list.o loader.o logger.o math.o memory.o misc.o options.o params.o path.o recovery.o rpp.o rules.o signals.o single.o status.o tty.o wordlist.o unshadow.o unafs.o unique.o phpasscuda_fmt.o phpass.o cryptmd5cuda_fmt.o cryptmd5.o cryptsha256cuda_fmt.o cryptsha256.o cryptsha512cuda_fmt.o cryptsha512.o c3_fmt.o x86-64.o" \ CFLAGS="-c -Wall -O2 -fomit-frame-pointer -DHAVE_CRYPT" \ LDFLAGS="-s -L/usr/local/cuda/lib -lcudart -lcrypt" ptxas info : Compiling entry function '_Z13kernel_phpassPhPjPci' for 'sm_10' ptxas info : Used 23 registers, 56+0 bytes lmem, 28+16 bytes smem, 28 bytes cmem[1], 12 bytes cmem[14] make[1]: Entering directory `/tmp/john-1.7.8/src' /tmp/john-1.7.8/src/cuda make[1]: execvp: /tmp/john-1.7.8/src/cuda: Permission denied make[1]: *** [phpass.o] Error 127 make[1]: Leaving directory `/tmp/john-1.7.8/src' make: *** [linux-x86-64-cuda] Error 2 am i missing something ? Regards Samuele
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.