Page 1 of 1

initialization error

PostPosted: Tue Jul 07, 2009 3:00 am
by oj7412
i've run the multiforcer in terminal on my mac and it seems to work fine as it launches CPU kernel for password length 0, 1, 2, 3, but then i receive the cuda error: initialization error. any suggestions? i'm kinda new at this... thanks!

Re: initialization error

PostPosted: Tue Jul 07, 2009 8:07 am
by Bitweasil
Len 0-3 are dealt with on the CPU in the 0.6 release.

You don't have CUDA working on your machine.

Reinstall the toolkit, do a custom install, and make sure the CUDA kext is checked - for some reason, this doesn't get installed by default on some machines.

Re: initialization error

PostPosted: Wed Jan 13, 2010 9:11 pm
by aliby
Ugh. I'm getting the same thing with the 3.0.1 beta version of the CUDA driver for mac. Here's the output:

Code: Select all
Cryptohaze.com CUDA Multiforcer (multiple hash brute forcer)
by Bitweasil
Version 0.61 beta, length 0-14
Currently supported hash types: MD5 MD4 NTLM
Hash type: NTLM
CUDA Device Information:
Device 0: "Device Emulation (CPU)"
  Number of cores:                               128
  Clock rate:                                    1.35 GHz
Charset loaded (96 characters)
Hashes loaded (11 hashes)
Launching CPU kernel for password length 0
Launching CPU kernel for password length 1
Launching CPU kernel for password length 2
Launching CPU kernel for password length 3

NTLM : 58C265F052A65CE7A745A79DE13D443E: 'bad'    0x626164
NTLM : E0FBA38268D0EC66EF1CB452D5885E53: 'abc'    0x616263
NTLM : E0FBA38268D0EC66EF1CB452D5885E53: 'abc'    0x616263
Cuda error: initialization error.


However, deviceQuery does work and shows this:
Code: Select all
./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

There is 1 device supporting CUDA

Device 0: "GeForce 9400M"
  CUDA Driver Version:                           3.0
  CUDA Runtime Version:                          3.0
  CUDA Capability Major revision number:         1
  CUDA Capability Minor revision number:         1
  Total amount of global memory:                 266010624 bytes
  Number of multiprocessors:                     2
  Number of cores:                               16
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       16384 bytes
  Total number of registers available per block: 8192
  Warp size:                                     32
  Maximum number of threads per block:           512
  Maximum sizes of each dimension of a block:    512 x 512 x 64
  Maximum sizes of each dimension of a grid:     65535 x 65535 x 1
  Maximum memory pitch:                          262144 bytes
  Texture alignment:                             256 bytes
  Clock rate:                                    1.10 GHz
  Concurrent copy and execution:                 No
  Run time limit on kernels:                     Yes
  Integrated:                                    Yes
  Support host page-locked memory mapping:       Yes
  Compute mode:                                  Default (multiple host threads can use this device simultaneously)

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 52219, CUDA Runtime Version = 3.0, NumDevs = 1, Device = GeForce 9400M


Test PASSED



At one point I had this working. Then I restarted and it hasn't worked since. I've tried reinstalling both the 2.3 and the 3.0.1 beta drivers, sdk, toolkit etc to no avail.

Any thoughts?

Re: initialization error

PostPosted: Thu Jan 14, 2010 12:00 am
by aliby
I was able to fix this by doing:
Code: Select all
export PATH=/usr/local/cuda/bin:$PATH
export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH


I also created ~/.bash_profile and added the above to it in order to (hopefully) have this done automatically upon initializing a shell