mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2547] OpenCL CL_INVALID_DEVICE error in common-opencl.c:435 - Error querying PLATFORM_NAME #1677
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#1677
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @darkbyte-ru on GitHub (May 15, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2547
On my system was installed 10 NVIDIA cards, but I can't use them all with JtR.
For example when I run without --fork flag, JtR uses only first card, but display temperature for all cards:
But when I add --fork flag, I got some errors for all cards, except the first, and JtR again uses only one card:
System info:
@ghost commented on GitHub (May 16, 2017):
Thanks for reporting the issue.
This is expected.
Well:
That said:
[1] Could you confirm the -33 return using something like this?
@darkbyte-ru commented on GitHub (May 16, 2017):
Thanks for answer, sure I can debug this problem.
Running a signle card with any index work ok:
I'am run JtR as root
All cl.h found was attached in archive
With this diff I confirm that -33 status code returns:
Memory seems enough for JtR. 32GB avail and ~1G used by JtR.
@magnumripper commented on GitHub (May 16, 2017):
So the mother process works fine but all children are unable to see the OpenCL platform. The only idea I can come up with is trying to run as a user, not root. Running as root is usually a bad idea anyway.
@darkbyte-ru commented on GitHub (May 16, 2017):
Under regular user result is the same: Return -33 for all, except first card.
@magnumripper commented on GitHub (May 16, 2017):
What distro is this? It could be some odd security issue from hardening.
@magnumripper commented on GitHub (May 16, 2017):
Here's a thing to try, just for getting clues. Install MPI (openmpi) libs and binaries, configure john with
--enable-mpiand rebuild, then run like this instead@darkbyte-ru commented on GitHub (May 16, 2017):
Ubuntu Trusty
Thanks! It works, but crash after send SIGUSR1 to mpirun:
And then exit.
@ghost commented on GitHub (May 16, 2017):
Anyone else reading this has tried CUDA 8 drivers?
Random question: have you tried to use less GPUs?
Or
@darkbyte-ru commented on GitHub (May 17, 2017):
For two GPU result the same as for ten:
Also, I just noticed, that solution with mpirun does not work.
gpustat show that JtR run 10 threads on only one GPU:
For sha256 test hashes result the same:
@magnumripper commented on GitHub (May 22, 2017):
Strange. I have seen Ubuntu 16.04 LTS with eight Maxwell or Pascal cards running JtR and it works just fine. I haven't tried 14.04 for a while but that used to work fine too.
@magnumripper commented on GitHub (May 22, 2017):
BTW I've been using Ubuntu drivers, whatever version comes with the distro.
@superhansi commented on GitHub (Aug 9, 2017):
was this issue somehow resolved?
Ubuntu-Server 16.04.2 LTS _Xenial Xerus same behavior
clinfo etc works (same for hashcat -I, john -list)
NVIDIA-SMI 375.66 Driver Version: 375.66
besides no -33
./john 1.shad --format=sha512crypt-opencl --fork=2 --devices=gpu --pot=test.pot
Using default input encoding: UTF-8
Loaded 2 password hashes with 2 different salts (sha512crypt-opencl, crypt(3)
6[SHA512 OpenCL])Node numbers 1-2 of 2 (fork)
Return 0
Return 0
Device 1: GeForce GTX 970
Device 0: GeForce GTX 980
john Thu Aug 10 08:40:48 2017
[0] GeForce GTX 970 | 36'C, 0 % | 2 / 4028 MB |
[1] GeForce GTX 980 | 68'C, 100 % | 950 / 4038 MB | user(948M)
Version: 1.8.0-jumbo-1-5776-gc079f4d+
Build: linux-gnu 64-bit AVX2-ac OMP
SIMD: AVX2, interleaving: MD4:3 MD5:3 SHA1:1 SHA256:1 SHA512:1
$JOHN is ./
Format interface version: 14
Max. number of reported tunable costs: 3
Rec file version: REC4
Charset file version: CHR3
CHARSET_MIN: 1 (0x01)
CHARSET_MAX: 255 (0xff)
CHARSET_LENGTH: 24
SALT_HASH_SIZE: 1048576
Max. Markov mode level: 400
Max. Markov mode password length: 30
gcc version: 5.4.0
GNU libc version: 2.23 (loaded: 2.23)
OpenCL headers version: 2.0
Crypto library: OpenSSL
OpenSSL library version: 01000207f
OpenSSL 1.0.2g 1 Mar 2016
GMP library version: 6.1.0
File locking: fcntl()
fseek(): fseek
ftell(): ftell
fopen(): fopen
memmem(): System's
./john --list=opencl-devices
Return 0
Platform #0 name: NVIDIA CUDA, version: OpenCL 1.2 CUDA 8.0.0
Device #0 (0) name: GeForce GTX 980
Device vendor: NVIDIA Corporation
Device type: GPU (LE)
Device version: OpenCL 1.2 CUDA
Driver version: 375.66 [recommended]
Native vector widths: char 1, short 1, int 1, long 1
Preferred vector width: char 1, short 1, int 1, long 1
Global Memory: 3.0 GB
Global Memory Cache: 256.2 KB
Local Memory: 48.0 KB (Local)
Max memory alloc. size: 1009.10 MB
Max clock (MHz): 1215
Profiling timer res.: 1000 ns
Max Work Group Size: 1024
Parallel compute cores: 16
CUDA cores: 2048 (16 x 128)
Speed index: 2488320
Warp size: 32
Max. GPRs/work-group: 65536
Compute capability: 5.2 (sm_52)
Kernel exec. timeout: no
NVML id: 1
PCI device topology: 02:00.0
PCI lanes: 8/16
Fan speed: 100%
Temperature: 33°C
Utilization: 0%
Device #1 (1) name: GeForce GTX 970
Device vendor: NVIDIA Corporation
Device type: GPU (LE)
Device version: OpenCL 1.2 CUDA
Driver version: 375.66 [recommended]
Native vector widths: char 1, short 1, int 1, long 1
Preferred vector width: char 1, short 1, int 1, long 1
Global Memory: 3.0 GB
Global Memory Cache: 208.2 KB
Local Memory: 48.0 KB (Local)
Max memory alloc. size: 1007.10 MB
Max clock (MHz): 1177
Profiling timer res.: 1000 ns
Max Work Group Size: 1024
Parallel compute cores: 13
CUDA cores: 1664 (13 x 128)
Speed index: 1958528
Warp size: 32
Max. GPRs/work-group: 65536
Compute capability: 5.2 (sm_52)
Kernel exec. timeout: no
NVML id: 0
PCI device topology: 01:00.0
PCI lanes: 8/16
Fan speed: 100%
Temperature: 34°C
Utilization: 0%
@ghost commented on GitHub (Aug 12, 2017):
No
-33means everything is OK and working for you! I mean, noCL_INVALID_DEVICEerror [1].Return 0means success.Why are you not happy with John the Ripper? I see no error in what you posted above.
[1] - The reported error is related to "fork + OpenCL". It happened in darkbyte's machine, but not in OpenWall's server. Neither in yours.
A side note, in my opinion, the
-33return violates the OpenCL specification. It clearly states the expected returns ofclGetPlatformInfo()and INVALID_DEVICE is not among them.@ghost commented on GitHub (Aug 13, 2017):
@superhansi you are right: there is something wrong with latest JtR and --fork.
0168a45a14.@superhansi commented on GitHub (Aug 13, 2017):
john Thu Aug 10 08:40:48 2017
[0] GeForce GTX 970 | 36'C, 0 % | 2 / 4028 MB |
[1] GeForce GTX 980 | 68'C, 100 % | 950 / 4038 MB | user(948M)
this is the problem, JtR only using one device - i should've made it bold in first place
@magnumripper commented on GitHub (Aug 16, 2017):
@darkbyte-ru could you please try latest code and see where we're at now?
@magnumripper commented on GitHub (Nov 7, 2018):
#3450 is most likely a dupe of this issue. Keeping the newer (for more attention) and closing this.