Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <N1P-8ir5ONRRf_@Safe-mail.net>
Date: Fri, 1 Nov 2019 23:01:55 -0400
From: billwhittaker@...e-mail.net
To: john-users@...ts.openwall.com
Subject: Jetson Nano is unable to find/use CUDA: "No OpenCL devices found"

I am aware of the inefficiency of the Jetson Nano vis-a-vis John as per this link,
Re: Jetson nano - Like the Xeon PHI? - https://www.openwall.com/lists/john-users/2019/03/25/8


	Nonetheless, I am giving john-1.9.0-jumbo-1 a whirl. Despite following the instructions here,
https://openwall.info/wiki/john/GPU
	Specifically (with the symlink of cuda to cuda-10.0), as a non-privileged (i.e. regular) user,

export PATH=$PATH:/usr/local/cuda/bin
export LD_LIBRARY_PATH=:/usr/local/cuda/lib64
export PATH=$PATH:/usr/local/cuda/targets/x86_64-linux/include
export LD_LIBRARY_PATH=:/usr/local/cuda/targets/x86_64-linux/lib


./configure --enable-mpi --enable-rexgen

	and seeing

Configured for building John the Ripper jumbo:

Target CPU ................................. aarch64 ASIMD, 64-bit LE
AES-NI support ............................. no
Target OS .................................. linux-gnu
Cross compiling ............................ no
Legacy arch header ......................... arm64le.h

Optional libraries/features found:
Memory map (share/page large files) ........ yes
Fork support ............................... yes
OpenMP support ............................. yes (not for fast formats)
OpenCL support ............................. yes
Generic crypt(3) format .................... yes
libgmp (PRINCE mode and faster SRP formats)  yes
128-bit integer (faster PRINCE mode) ....... yes
libz (pkzip and some other formats) ........ yes
libbz2 (gpg2john extra decompression logic)  yes
libpcap (vncpcap2john and SIPdump) ......... yes
OpenMPI support (default disabled) ......... yes
ZTEX USB-FPGA module 1.15y support ......... no

Development options (these may hurt performance when enabled):
AddressSanitizer ("ASan") .................. disabled
UndefinedBehaviorSanitizer ("UbSan") ....... disabled
Fuzzing test ............................... no
Experimental code .......................... no
 - librexgen (regex mode) .................. yes

Install missing libraries to get any needed features that were omitted.

Configure finished.  Now "make -s clean && make -sj4" to compile.


	And subsequently doing (with two warnings, included below)
make -s clean && make -sj4
...
rar_fmt_plug.c:442:2: warning: #warning ": target system requires aligned memory access, rar format disabled:" [-Wcpp]
 #warning ": target system requires aligned memory access, rar format disabled:"
  ^~~~~~~
stribog_fmt_plug.c:472:2: warning: #warning Stribog-256 and Stribog-512 formats require SSE 4.1, formats disabled [-Wcpp]
 #warning Stribog-256 and Stribog-512 formats require SSE 4.1, formats disabled
  ^~~~~~~
...

	and confirming
../run/john --list=formats --format=cuda
Unknown ciphertext format name requested

../run/john --list=formats --format=opencl
sha1crypt-opencl, KeePass-opencl, oldoffice-opencl, PBKDF2-HMAC-MD4-opencl, 
PBKDF2-HMAC-MD5-opencl, PBKDF2-HMAC-SHA1-opencl, rar-opencl, RAR5-opencl, 
TrueCrypt-opencl, lotus5-opencl, AndroidBackup-opencl, agilekeychain-opencl, 
ansible-opencl, axcrypt-opencl, axcrypt2-opencl, bcrypt-opencl, 
BitLocker-opencl, bitwarden-opencl, blockchain-opencl, cloudkeychain-opencl, 
md5crypt-opencl, sha256crypt-opencl, sha512crypt-opencl, dashlane-opencl, 
descrypt-opencl, diskcryptor-opencl, diskcryptor-aes-opencl, dmg-opencl, 
electrum-modern-opencl, EncFS-opencl, enpass-opencl, ethereum-opencl, 
ethereum-presale-opencl, FVDE-opencl, geli-opencl, gpg-opencl, iwork-opencl, 
keychain-opencl, keyring-opencl, keystore-opencl, krb5pa-md5-opencl, 
krb5pa-sha1-opencl, krb5asrep-aes-opencl, lp-opencl, lpcli-opencl, LM-opencl, 
mscash-opencl, mscash2-opencl, mysql-sha1-opencl, notes-opencl, NT-opencl, 
ntlmv2-opencl, o5logon-opencl, ODF-opencl, office-opencl, 
OpenBSD-SoftRAID-opencl, PBKDF2-HMAC-SHA256-opencl, 
PBKDF2-HMAC-SHA512-opencl, pem-opencl, pfx-opencl, pgpdisk-opencl, 
pgpsda-opencl, pgpwde-opencl, PHPass-opencl, pwsafe-opencl, RAKP-opencl, 
raw-MD4-opencl, raw-MD5-opencl, raw-SHA1-opencl, raw-SHA256-opencl, 
raw-SHA512-free-opencl, raw-SHA512-opencl, salted-SHA1-opencl, sappse-opencl, 
7z-opencl, SL3-opencl, solarwinds-opencl, ssh-opencl, sspr-opencl, 
strip-opencl, telegram-opencl, tezos-opencl, vmx-opencl, wpapsk-opencl, 
wpapsk-pmk-opencl, XSHA512-free-opencl, XSHA512-opencl, ZIP-opencl

../run/john --test --format=wpapsk-opencl
No OpenCL devices found

	John is unable to see CUDA.


	I have confirmed the availability of CUDA thusly,
NVIDIA_CUDA-10.0_Samples/1_Utilities/deviceQuery/deviceQuery
1_Utilities/deviceQuery/deviceQuery Starting...

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

Detected 1 CUDA Capable device(s)

Device 0: "NVIDIA Tegra X1"
  CUDA Driver Version / Runtime Version          10.0 / 10.0
  CUDA Capability Major/Minor version number:    5.3
  Total amount of global memory:                 3963 MBytes (4155621376 bytes)
  ( 1) Multiprocessors, (128) CUDA Cores/MP:     128 CUDA Cores
  GPU Max Clock rate:                            922 MHz (0.92 GHz)
  Memory Clock rate:                             13 Mhz
  Memory Bus Width:                              64-bit
  L2 Cache Size:                                 262144 bytes
  Maximum Texture Dimension Size (x,y,z)         1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
  Maximum Layered 1D Texture Size, (num) layers  1D=(16384), 2048 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(16384, 16384), 2048 layers
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       49152 bytes
  Total number of registers available per block: 32768
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  2048
  Maximum number of threads per block:           1024
  Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
  Max dimension size of a grid size    (x,y,z): (2147483647, 65535, 65535)
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             512 bytes
  Concurrent copy and kernel execution:          Yes with 1 copy engine(s)
  Run time limit on kernels:                     Yes
  Integrated GPU sharing Host Memory:            Yes
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Disabled
  Device supports Unified Addressing (UVA):      Yes
  Device supports Compute Preemption:            No
  Supports Cooperative Kernel Launch:            No
  Supports MultiDevice Co-op Kernel Launch:      No
  Device PCI Domain ID / Bus ID / location ID:   0 / 0 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.0, CUDA Runtime Version = 10.0, NumDevs = 1
Result = PASS


	I tried with and without symlinks and same with exports. No positive result followed.
	What must I do to allow john to see/use CUDA?

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.