[GH-ISSUE #438] john wpa-opencl compile failure on ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series) #168

Closed
opened 2026-10-14 02:55:01 +07:00 by bsakaguchi · 24 comments
Owner

Originally created by @DarkJester on GitHub (Dec 20, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/438

whilst attempting to run ./john -w:password.lst -format=wpapsk-opencl i get an opencl error the same opencl installation works fine with pyrit im using the fxglr-legacy driver backported from debian wheezy and the amd sdk 2.7

root@kali:~/bleeding-jumbo/run# ./hccap2john wpa-Induction.hccap >>crackme
root@kali:~/bleeding-jumbo/run# ./john -w:password.lst -format=wpapsk-opencl crackme
Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series)
Build log: "/tmp/OCLbp0dMT.cl", line 386: error: can't enable all OpenCL extensions or
          unrecognized OpenCL extension
  #pragma OPENCL EXTENSION cl_amd_media_ops : enable
                                              ^

"/tmp/OCLbp0dMT.cl", line 706: warning: unknown attribute "vec_type_hint"
  __attribute__((vec_type_hint(MAYBE_VECTOR_UINT)))
                 ^

"/tmp/OCLbp0dMT.cl", line 725: warning: unknown attribute "vec_type_hint"
  __attribute__((vec_type_hint(MAYBE_VECTOR_UINT)))
                 ^

"/tmp/OCLbp0dMT.cl", line 789: warning: unknown attribute "vec_type_hint"
  __attribute__((vec_type_hint(MAYBE_VECTOR_UINT)))
                 ^

"/tmp/OCLbp0dMT.cl", line 884: warning: unknown attribute "vec_type_hint"
  __attribute__((vec_type_hint(MAYBE_VECTOR_UINT)))
                 ^

"/tmp/OCLbp0dMT.cl", line 981: warning: unknown attribute "vec_type_hint"
  __attribute__((vec_type_hint(MAYBE_VECTOR_UINT)))
                 ^

1 error detected in the compilation of "/tmp/OCLbp0dMT.cl".

Internal error: clc compiler invocation failed.

Error -11 building kernel. DEVICE_INFO=9282
OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line (708) - (clBuildProgram failed.)
Originally created by @DarkJester on GitHub (Dec 20, 2013). Original GitHub issue: https://github.com/openwall/john/issues/438 whilst attempting to run ./john -w:password.lst -format=wpapsk-opencl i get an opencl error the same opencl installation works fine with pyrit im using the fxglr-legacy driver backported from debian wheezy and the amd sdk 2.7 ``` root@kali:~/bleeding-jumbo/run# ./hccap2john wpa-Induction.hccap >>crackme root@kali:~/bleeding-jumbo/run# ./john -w:password.lst -format=wpapsk-opencl crackme Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series) Build log: "/tmp/OCLbp0dMT.cl", line 386: error: can't enable all OpenCL extensions or unrecognized OpenCL extension #pragma OPENCL EXTENSION cl_amd_media_ops : enable ^ "/tmp/OCLbp0dMT.cl", line 706: warning: unknown attribute "vec_type_hint" __attribute__((vec_type_hint(MAYBE_VECTOR_UINT))) ^ "/tmp/OCLbp0dMT.cl", line 725: warning: unknown attribute "vec_type_hint" __attribute__((vec_type_hint(MAYBE_VECTOR_UINT))) ^ "/tmp/OCLbp0dMT.cl", line 789: warning: unknown attribute "vec_type_hint" __attribute__((vec_type_hint(MAYBE_VECTOR_UINT))) ^ "/tmp/OCLbp0dMT.cl", line 884: warning: unknown attribute "vec_type_hint" __attribute__((vec_type_hint(MAYBE_VECTOR_UINT))) ^ "/tmp/OCLbp0dMT.cl", line 981: warning: unknown attribute "vec_type_hint" __attribute__((vec_type_hint(MAYBE_VECTOR_UINT))) ^ 1 error detected in the compilation of "/tmp/OCLbp0dMT.cl". Internal error: clc compiler invocation failed. Error -11 building kernel. DEVICE_INFO=9282 OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line (708) - (clBuildProgram failed.) ```
bsakaguchi 2026-10-14 02:55:01 +07:00
Author
Owner

@magnumripper commented on GitHub (Dec 20, 2013):

Is this an old card or driver? What's the output of --list=opencl-devices?

<!-- gh-comment-id:30997281 --> @magnumripper commented on GitHub (Dec 20, 2013): Is this an old card or driver? What's the output of `--list=opencl-devices`?
Author
Owner

@magnumripper commented on GitHub (Dec 20, 2013):

@gat3way is this pragma line needed at all?

<!-- gh-comment-id:30997516 --> @magnumripper commented on GitHub (Dec 20, 2013): @gat3way is this pragma line needed at all?
Author
Owner

@DarkJester commented on GitHub (Dec 20, 2013):

root@kali:~/bleeding-jumbo/run# ./john --list=opencl-devices
Platform #0 name: AMD Accelerated Parallel Processing
Platform version: OpenCL 1.2 AMD-APP (923.1)
    Device #0 (0) name: ATI RV710
    Board name:     ATI Mobility Radeon HD 4300/4500 Series
    Device vendor:      Advanced Micro Devices, Inc.
    Device type:        GPU (LE)
    Device version:     OpenCL 1.0 AMD-APP (923.1)
    Driver version:     CAL 1.4.1734
    Native vector widths:   char 16, short 8, int 4, long 2
    Preferred vector width: char 16, short 8, int 4, long 2
    Global Memory:      256.2 MB
    Local Memory:       16.0 KB (Global)
    Max memory alloc. size: 128.1 MB
    Max clock (MHz):    550
    Profiling timer res.:   1 ns
    Max Work Group Size:    128
    Parallel compute cores: 2
    Stream processors:  128  (2 x 64)
    PCI device topology:    01:00.0

    Device #1 (1) name: Intel(R) Core(TM) i5 CPU       M 520  @ 2.40GHz
    Device vendor:      GenuineIntel
    Device type:        CPU (LE)
    Device version:     OpenCL 1.2 AMD-APP (923.1)
    Driver version:     2.0 (sse2)
    Native vector widths:   char 16, short 8, int 4, long 2
    Preferred vector width: char 16, short 8, int 4, long 2
    Global Memory:      3.0 GB
    Global Memory Cache:    32.0 KB
    Local Memory:       32.0 KB (Global)
    Max memory alloc. size: 2.0 GB
    Max clock (MHz):    1199
    Profiling timer res.:   1 ns
    Max Work Group Size:    1024
    Parallel compute cores: 4
    PCI device topology:    00:00.0
<!-- gh-comment-id:31007647 --> @DarkJester commented on GitHub (Dec 20, 2013): ``` root@kali:~/bleeding-jumbo/run# ./john --list=opencl-devices Platform #0 name: AMD Accelerated Parallel Processing Platform version: OpenCL 1.2 AMD-APP (923.1) Device #0 (0) name: ATI RV710 Board name: ATI Mobility Radeon HD 4300/4500 Series Device vendor: Advanced Micro Devices, Inc. Device type: GPU (LE) Device version: OpenCL 1.0 AMD-APP (923.1) Driver version: CAL 1.4.1734 Native vector widths: char 16, short 8, int 4, long 2 Preferred vector width: char 16, short 8, int 4, long 2 Global Memory: 256.2 MB Local Memory: 16.0 KB (Global) Max memory alloc. size: 128.1 MB Max clock (MHz): 550 Profiling timer res.: 1 ns Max Work Group Size: 128 Parallel compute cores: 2 Stream processors: 128 (2 x 64) PCI device topology: 01:00.0 Device #1 (1) name: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz Device vendor: GenuineIntel Device type: CPU (LE) Device version: OpenCL 1.2 AMD-APP (923.1) Driver version: 2.0 (sse2) Native vector widths: char 16, short 8, int 4, long 2 Preferred vector width: char 16, short 8, int 4, long 2 Global Memory: 3.0 GB Global Memory Cache: 32.0 KB Local Memory: 32.0 KB (Global) Max memory alloc. size: 2.0 GB Max clock (MHz): 1199 Profiling timer res.: 1 ns Max Work Group Size: 1024 Parallel compute cores: 4 PCI device topology: 00:00.0 ```
Author
Owner

@magnumripper commented on GitHub (Dec 20, 2013):

That device/driver is really outdated, supporting only OpenCL 1.0. We can work around it but it won't be very fast. Try commenting out line 386 of src/kernels/wpapsk_kernel.cl and see if it works at all without it?

<!-- gh-comment-id:31025554 --> @magnumripper commented on GitHub (Dec 20, 2013): That device/driver is really outdated, supporting only OpenCL 1.0. We can work around it but it won't be very fast. Try commenting out line 386 of src/kernels/wpapsk_kernel.cl and see if it works at all without it?
Author
Owner

@DarkJester commented on GitHub (Dec 25, 2013):

i get this output and then a blinking cursor

root@kali:~/bleeding-jumbo/run# ./john -test -format=wpapsk-opencl
Will run 4 OpenMP threads
Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series)

<!-- gh-comment-id:31201436 --> @DarkJester commented on GitHub (Dec 25, 2013): i get this output and then a blinking cursor root@kali:~/bleeding-jumbo/run# ./john -test -format=wpapsk-opencl Will run 4 OpenMP threads Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series)
Author
Owner

@magnumripper commented on GitHub (Dec 26, 2013):

It never ends? I'm afraid your device [driver] is too old. We might have a chance to support it but I'm not sure how to detect the situation.

<!-- gh-comment-id:31207954 --> @magnumripper commented on GitHub (Dec 26, 2013): It never ends? I'm afraid your device [driver] is too old. We might have a chance to support it but I'm not sure how to detect the situation.
Author
Owner

@magnumripper commented on GitHub (Dec 26, 2013):

Possibly fixed in f7189d8. @DarkJester please try out latest code and report back.

<!-- gh-comment-id:31233531 --> @magnumripper commented on GitHub (Dec 26, 2013): Possibly fixed in f7189d8. @DarkJester please try out latest code and report back.
Author
Owner

@DarkJester commented on GitHub (Dec 27, 2013):

it still hangs with a blinking cursor... ps reports john using 98.8% cpu also. other opencl formats fail now also

root@kali:~/JohnTheRipper-bleeding-jumbo/run# ./john -test -format=Raw-MD5-opencl
Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series)
OpenCL error (CL_INVALID_EVENT) in file (common-opencl.c) at line (1221) - (Failed to get profiling info)

EDIT SOME opencl formats now fail

root@kali:~/JohnTheRipper-bleeding-jumbo/run# ./john -test -format=ntlmv2-opencl
Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series)
Local worksize (LWS) 32, Global worksize (GWS) 65536
Benchmarking: ntlmv2-opencl, NTLMv2 C/R [MD4 HMAC-MD5 OpenCL 4x]... DONE
Many salts: 6229K c/s real, 209715K c/s virtual
Only one salt: 3563K c/s real, 24466K c/s virtual

<!-- gh-comment-id:31240944 --> @DarkJester commented on GitHub (Dec 27, 2013): it still hangs with a blinking cursor... ps reports john using 98.8% cpu also. other opencl formats fail now also root@kali:~/JohnTheRipper-bleeding-jumbo/run# ./john -test -format=Raw-MD5-opencl Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series) OpenCL error (CL_INVALID_EVENT) in file (common-opencl.c) at line (1221) - (Failed to get profiling info) EDIT SOME opencl formats now fail root@kali:~/JohnTheRipper-bleeding-jumbo/run# ./john -test -format=ntlmv2-opencl Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series) Local worksize (LWS) 32, Global worksize (GWS) 65536 Benchmarking: ntlmv2-opencl, NTLMv2 C/R [MD4 HMAC-MD5 OpenCL 4x]... DONE Many salts: 6229K c/s real, 209715K c/s virtual Only one salt: 3563K c/s real, 24466K c/s virtual
Author
Owner

@magnumripper commented on GitHub (Dec 27, 2013):

OK. The now failing formats are likely due to need of rebooting after wpapsk hang. I guess we're out of luck with that driver. The format runs just fine on other old devices, weak or not.

<!-- gh-comment-id:31242509 --> @magnumripper commented on GitHub (Dec 27, 2013): OK. The now failing formats are likely due to need of rebooting after wpapsk hang. I guess we're out of luck with that driver. The format runs just fine on other old devices, weak or not.
Author
Owner

@DarkJester commented on GitHub (Dec 27, 2013):

i rebooted raw-md5 still fails with the same error ntlmv2 still works

<!-- gh-comment-id:31242693 --> @DarkJester commented on GitHub (Dec 27, 2013): i rebooted raw-md5 still fails with the same error ntlmv2 still works
Author
Owner

@magnumripper commented on GitHub (Dec 27, 2013):

You could try changing line 87 in opencl/wpapsk_kernel.cl like this:

- #if gpu_nvidia(DEVICE_INFO) /* Lukas' original SHA-1 */
+ #if 1 //gpu_nvidia(DEVICE_INFO) /* Lukas' original SHA-1 */

This switches to different SHA-1 code that we normally use for nvidia, but it's not really nvidia specific.

<!-- gh-comment-id:31242734 --> @magnumripper commented on GitHub (Dec 27, 2013): You could try changing line 87 in opencl/wpapsk_kernel.cl like this: ``` - #if gpu_nvidia(DEVICE_INFO) /* Lukas' original SHA-1 */ + #if 1 //gpu_nvidia(DEVICE_INFO) /* Lukas' original SHA-1 */ ``` This switches to different SHA-1 code that we normally use for nvidia, but it's not really nvidia specific.
Author
Owner

@magnumripper commented on GitHub (Dec 27, 2013):

Did raw-md5 work fine before? Nothing has changed in that format.

<!-- gh-comment-id:31242742 --> @magnumripper commented on GitHub (Dec 27, 2013): Did raw-md5 work fine before? Nothing has changed in that format.
Author
Owner

@magnumripper commented on GitHub (Dec 27, 2013):

Another thing you can try is supplying --test=0 instead of just --test. This runs a quicker self-test, no benchmark. If that works but the benchmark fails, you might work around the problem by supplying LWS and/or GWS environment variables when running wpapsk. Eg:

LWS=64 GWS=16384 ./john -test -form:wpapsk-opencl

If this works, try doubling GWS until you get max. speed and no hang. If you are really lucky, only LWS has to be set and GWS can auto-tune:

LWS=64 ./john -test -form:wpapsk-opencl
<!-- gh-comment-id:31242850 --> @magnumripper commented on GitHub (Dec 27, 2013): Another thing you can try is supplying --test=0 instead of just --test. This runs a quicker self-test, no benchmark. If that works but the benchmark fails, you might work around the problem by supplying LWS and/or GWS environment variables when running wpapsk. Eg: ``` LWS=64 GWS=16384 ./john -test -form:wpapsk-opencl ``` If this works, try doubling GWS until you get max. speed and no hang. If you are really lucky, only LWS has to be set and GWS can auto-tune: ``` LWS=64 ./john -test -form:wpapsk-opencl ```
Author
Owner

@DarkJester commented on GitHub (Dec 27, 2013):

i rolled back to the older code seems raw-md5 is broken in that as well. its strange how ntlmv2-opencl works. setting LWS/GWS and editing the wpa kernel didn't help.

<!-- gh-comment-id:31243392 --> @DarkJester commented on GitHub (Dec 27, 2013): i rolled back to the older code seems raw-md5 is broken in that as well. its strange how ntlmv2-opencl works. setting LWS/GWS and editing the wpa kernel didn't help.
Author
Owner

@DarkJester commented on GitHub (Dec 27, 2013):

Testing: wpapsk, WPA/WPA2 PSK [PBKDF2-SHA1 128/128 SSE2 4x]... (4xOMP) PASS
Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series)
Build log: "/tmp/OCLWeJb5X.cl", line 331: warning: goto statement may cause irreducible
          control flow
            if (mask == ~(int)0) goto next_hash;
                                 ^

"/tmp/OCLWeJb5X.cl", line 334: error: function "atomic_max" declared implicitly
        atomic_max( &output[i],section + 1) ;
        ^

"/tmp/OCLWeJb5X.cl", line 313: warning: variable "index" was declared but
          never referenced
    int index, flag, depth, idx;
        ^

"/tmp/OCLWeJb5X.cl", line 313: warning: variable "flag" was declared but never
          referenced
    int index, flag, depth, idx;
               ^

"/tmp/OCLWeJb5X.cl", line 313: warning: variable "depth" was declared but
          never referenced
    int index, flag, depth, idx;
                     ^

"/tmp/OCLWeJb5X.cl", line 313: warning: variable "idx" was declared but never
          referenced
    int index, flag, depth, idx;
                            ^

"/tmp/OCLWeJb5X.cl", line 314: warning: variable "b" was declared but never
          referenced
    DES_bs_vector *b;
                   ^

"/tmp/OCLWeJb5X.cl", line 1130: warning: goto statement may cause irreducible
          control flow
            goto finalize_keys;
            ^

"/tmp/OCLWeJb5X.cl", line 1154: warning: goto statement may cause irreducible
          control flow
        loop_body();
        ^

"/tmp/OCLWeJb5X.cl", line 1156: warning: goto statement may cause irreducible
          control flow
        if (rounds_and_swapped > 0) goto start;
                                    ^

"/tmp/OCLWeJb5X.cl", line 1159: warning: goto statement may cause irreducible
          control flow
        if (--iterations) goto swap;
                          ^

"/tmp/OCLWeJb5X.cl", line 1161: warning: argument of type "vtype *" is
          incompatible with parameter of type "int *"
        cmp(B, binary, num_loaded_hash, output, section);
            ^

"/tmp/OCLWeJb5X.cl", line 1178: warning: goto statement may cause irreducible
          control flow
        if (--rounds_and_swapped) goto start;
                                  ^

"/tmp/OCLWeJb5X.cl", line 1184: warning: goto statement may cause irreducible
          control flow
        goto start;
        ^

"/tmp/OCLWeJb5X.cl", line 1189: warning: goto statement may cause irreducible
          control flow
        goto body;
        ^

1 error detected in the compilation of "/tmp/OCLWeJb5X.cl".

Internal error: clc compiler invocation failed.

Error -11 building kernel. DEVICE_INFO=9282
OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line (708) - (clBuildProgram failed.)
<!-- gh-comment-id:31243539 --> @DarkJester commented on GitHub (Dec 27, 2013): ``` Testing: wpapsk, WPA/WPA2 PSK [PBKDF2-SHA1 128/128 SSE2 4x]... (4xOMP) PASS Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series) Build log: "/tmp/OCLWeJb5X.cl", line 331: warning: goto statement may cause irreducible control flow if (mask == ~(int)0) goto next_hash; ^ "/tmp/OCLWeJb5X.cl", line 334: error: function "atomic_max" declared implicitly atomic_max( &output[i],section + 1) ; ^ "/tmp/OCLWeJb5X.cl", line 313: warning: variable "index" was declared but never referenced int index, flag, depth, idx; ^ "/tmp/OCLWeJb5X.cl", line 313: warning: variable "flag" was declared but never referenced int index, flag, depth, idx; ^ "/tmp/OCLWeJb5X.cl", line 313: warning: variable "depth" was declared but never referenced int index, flag, depth, idx; ^ "/tmp/OCLWeJb5X.cl", line 313: warning: variable "idx" was declared but never referenced int index, flag, depth, idx; ^ "/tmp/OCLWeJb5X.cl", line 314: warning: variable "b" was declared but never referenced DES_bs_vector *b; ^ "/tmp/OCLWeJb5X.cl", line 1130: warning: goto statement may cause irreducible control flow goto finalize_keys; ^ "/tmp/OCLWeJb5X.cl", line 1154: warning: goto statement may cause irreducible control flow loop_body(); ^ "/tmp/OCLWeJb5X.cl", line 1156: warning: goto statement may cause irreducible control flow if (rounds_and_swapped > 0) goto start; ^ "/tmp/OCLWeJb5X.cl", line 1159: warning: goto statement may cause irreducible control flow if (--iterations) goto swap; ^ "/tmp/OCLWeJb5X.cl", line 1161: warning: argument of type "vtype *" is incompatible with parameter of type "int *" cmp(B, binary, num_loaded_hash, output, section); ^ "/tmp/OCLWeJb5X.cl", line 1178: warning: goto statement may cause irreducible control flow if (--rounds_and_swapped) goto start; ^ "/tmp/OCLWeJb5X.cl", line 1184: warning: goto statement may cause irreducible control flow goto start; ^ "/tmp/OCLWeJb5X.cl", line 1189: warning: goto statement may cause irreducible control flow goto body; ^ 1 error detected in the compilation of "/tmp/OCLWeJb5X.cl". Internal error: clc compiler invocation failed. Error -11 building kernel. DEVICE_INFO=9282 OpenCL error (CL_BUILD_PROGRAM_FAILURE) in file (common-opencl.c) at line (708) - (clBuildProgram failed.) ```
Author
Owner

@DarkJester commented on GitHub (Dec 27, 2013):

i can give ssh to this box if u want.

<!-- gh-comment-id:31243617 --> @DarkJester commented on GitHub (Dec 27, 2013): i can give ssh to this box if u want.
Author
Owner

@magnumripper commented on GitHub (Dec 27, 2013):

Those warnings are from descrypt-opencl. That format never handled odd/weak devices well.

Re: ssh, that would probably help a lot, but not right now. Maybe later!

BTW I assume you have similar problems with encfs-opencl and krb5pa-sha1-opencl becuase their kernels are very similar to wpapsk. Or are they working?

<!-- gh-comment-id:31243752 --> @magnumripper commented on GitHub (Dec 27, 2013): Those warnings are from descrypt-opencl. That format never handled odd/weak devices well. Re: ssh, that would probably help a lot, but not right now. Maybe later! BTW I assume you have similar problems with encfs-opencl and krb5pa-sha1-opencl becuase their kernels are very similar to wpapsk. Or are they working?
Author
Owner

@magnumripper commented on GitHub (Dec 27, 2013):

Also, have you tried oclHashcat's wpapsk on this machine?

<!-- gh-comment-id:31243777 --> @magnumripper commented on GitHub (Dec 27, 2013): Also, have you tried oclHashcat's wpapsk on this machine?
Author
Owner

@DarkJester commented on GitHub (Dec 27, 2013):

hashcat works ok

root@kali:~# hashcat -m 2500 -a3 /root/wpa-Induction.hccap ?d?d?d?d?d?d?d?d
This copy of hashcat will expire on 01.01.2013. Please upgrade to continue using hashcat.

Initializing hashcat v0.44 by atom with 8 threads and 32mb segment-size...

Added hashes from file /root/wpa-Induction.hccap: 1 (1 salts)
Activating quick-digest mode for single-hash with salt

NOTE: press enter for status-screen

Input.Mode: Mask (?d)
Index.....: 0/1 (segment), 10 (words), 0 (bytes)
Recovered.: 0/1 hashes, 0/1 salts
Speed/sec.: - plains, - words
Progress..: 10/10 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--

hashcat+ fails

root@kali:~# /usr/bin/oclhashcat+ -m 2500 -a3 /root/wpa-Induction.hccap ?d?d?d?d?d?d?d?d
oclHashcat-plus v0.15 by atom starting...

Hashes: 1 total, 1 unique salts, 1 unique digests
Bitmaps: 8 bits, 256 entries, 0x000000ff mask, 1024 bytes
Workload: 16 loops, 8 accel
Watchdog: Temperature abort trigger disabled
Watchdog: Temperature retain trigger disabled
Device #1: ATI RV710, 256MB, 550Mhz, 2MCU
Device #1: Kernel ./kernels/4098/m2500.ATI RV710_923.1_CAL 1.4.1734.kernel not found in cache! Building may take a while...
ERROR: clBuildProgram() -11

<!-- gh-comment-id:31244058 --> @DarkJester commented on GitHub (Dec 27, 2013): hashcat works ok root@kali:~# hashcat -m 2500 -a3 /root/wpa-Induction.hccap ?d?d?d?d?d?d?d?d This copy of hashcat will expire on 01.01.2013. Please upgrade to continue using hashcat. Initializing hashcat v0.44 by atom with 8 threads and 32mb segment-size... Added hashes from file /root/wpa-Induction.hccap: 1 (1 salts) Activating quick-digest mode for single-hash with salt NOTE: press enter for status-screen Input.Mode: Mask (?d) Index.....: 0/1 (segment), 10 (words), 0 (bytes) Recovered.: 0/1 hashes, 0/1 salts Speed/sec.: - plains, - words Progress..: 10/10 (100.00%) Running...: --:--:--:-- Estimated.: --:--:--:-- hashcat+ fails root@kali:~# /usr/bin/oclhashcat+ -m 2500 -a3 /root/wpa-Induction.hccap ?d?d?d?d?d?d?d?d oclHashcat-plus v0.15 by atom starting... Hashes: 1 total, 1 unique salts, 1 unique digests Bitmaps: 8 bits, 256 entries, 0x000000ff mask, 1024 bytes Workload: 16 loops, 8 accel Watchdog: Temperature abort trigger disabled Watchdog: Temperature retain trigger disabled Device #1: ATI RV710, 256MB, 550Mhz, 2MCU Device #1: Kernel ./kernels/4098/m2500.ATI RV710_923.1_CAL 1.4.1734.kernel not found in cache! Building may take a while... ERROR: clBuildProgram() -11
Author
Owner

@DarkJester commented on GitHub (Dec 27, 2013):

i upgraded amd sdk to 2.8 and the output of list devices changed. compiling against amd sdk 2.9 causes a seg fault. using 2.8 all tests pass but only use cpu.

root@kali:~/JohnTheRipper-bleeding-jumbo/run# ./john --list=opencl-devices
Platform #0 name: AMD Accelerated Parallel Processing
Platform version: OpenCL 1.2 AMD-APP (1113.2)
Device #0 (0) name: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz
Device vendor: GenuineIntel
Device type: CPU (LE)
Device version: OpenCL 1.2 AMD-APP (1113.2)
Driver version: 1113.2 (sse2)
Native vector widths: char 16, short 8, int 4, long 2
Preferred vector width: char 16, short 8, int 4, long 2
Global Memory: 3.0 GB
Global Memory Cache: 32.0 KB
Local Memory: 32.0 KB (Global)
Max memory alloc. size: 2.0 GB
Max clock (MHz): 1199
Profiling timer res.: 1 ns
Max Work Group Size: 1024
Parallel compute cores: 4
PCI device topology: 00:00.0

<!-- gh-comment-id:31244842 --> @DarkJester commented on GitHub (Dec 27, 2013): i upgraded amd sdk to 2.8 and the output of list devices changed. compiling against amd sdk 2.9 causes a seg fault. using 2.8 all tests pass but only use cpu. root@kali:~/JohnTheRipper-bleeding-jumbo/run# ./john --list=opencl-devices Platform #0 name: AMD Accelerated Parallel Processing Platform version: OpenCL 1.2 AMD-APP (1113.2) Device #0 (0) name: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz Device vendor: GenuineIntel Device type: CPU (LE) Device version: OpenCL 1.2 AMD-APP (1113.2) Driver version: 1113.2 (sse2) Native vector widths: char 16, short 8, int 4, long 2 Preferred vector width: char 16, short 8, int 4, long 2 Global Memory: 3.0 GB Global Memory Cache: 32.0 KB Local Memory: 32.0 KB (Global) Max memory alloc. size: 2.0 GB Max clock (MHz): 1199 Profiling timer res.: 1 ns Max Work Group Size: 1024 Parallel compute cores: 4 PCI device topology: 00:00.0
Author
Owner

@magnumripper commented on GitHub (Dec 27, 2013):

Your install is broken, you need to get the GPU back in the list.

<!-- gh-comment-id:31245394 --> @magnumripper commented on GitHub (Dec 27, 2013): Your install is broken, you need to get the GPU back in the list.
Author
Owner

@DarkJester commented on GitHub (Dec 27, 2013):

as soon as i rollback to the older 2.7 sdk the gpu shows

<!-- gh-comment-id:31245805 --> @DarkJester commented on GitHub (Dec 27, 2013): as soon as i rollback to the older 2.7 sdk the gpu shows
Author
Owner

@magnumripper commented on GitHub (Dec 27, 2013):

You might need the SDK for building but you only need the driver for running JtR. They probably removed support for your old card in newer SDK's. You need to ensure you use your legacy driver and not the one that comes with the SDK. Hashcat forums usually advice against installing the SDK at all because it often ends up wrong. If you do something like this:

ldd john | grep libOpenCL
        libOpenCL.so.1 => /opt/AMDAPP/lib/x86_64/libOpenCL.so.1 (0x00007f0b2eef1000)

In the case above (this was one of our test machines) you see the OpenCL library is from the SDK. If it says eg. fglrx in the path instead of AMDAPP it's the non-SDK driver. Details may vary. On an Ubuntu machine you can do something like this to enforce the latter:

LD_LIBRARY_PATH=/usr/lib/fglrx ./john -t -form:wpapsk-opencl
<!-- gh-comment-id:31259157 --> @magnumripper commented on GitHub (Dec 27, 2013): You might need the SDK for building but you only need the driver for running JtR. They probably removed support for your old card in newer SDK's. You need to ensure you use your legacy driver and not the one that comes with the SDK. Hashcat forums usually advice against installing the SDK at all because it often ends up wrong. If you do something like this: ``` ldd john | grep libOpenCL libOpenCL.so.1 => /opt/AMDAPP/lib/x86_64/libOpenCL.so.1 (0x00007f0b2eef1000) ``` In the case above (this was one of our test machines) you see the OpenCL library is from the SDK. If it says eg. fglrx in the path instead of AMDAPP it's the non-SDK driver. Details may vary. On an Ubuntu machine you can do something like this to enforce the latter: ``` LD_LIBRARY_PATH=/usr/lib/fglrx ./john -t -form:wpapsk-opencl ```
Author
Owner

@magnumripper commented on GitHub (Apr 22, 2014):

WPAPSK is confirmed working fine for RV710 when using --force-scalar. If you uncomment the ForceScalar = Y in john.conf you don't need to add it on the command line all the time.

<!-- gh-comment-id:41073591 --> @magnumripper commented on GitHub (Apr 22, 2014): WPAPSK is confirmed working fine for RV710 when using --force-scalar. If you uncomment the `ForceScalar = Y` in john.conf you don't need to add it on the command line all the time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#168
No description provided.