Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Claudio's SHA-512 formats fail on Bull AMD (old 13.4 driver) #1834

Closed
magnumripper opened this issue Oct 15, 2015 · 1 comment
Closed

Claudio's SHA-512 formats fail on Bull AMD (old 13.4 driver) #1834

magnumripper opened this issue Oct 15, 2015 · 1 comment
Assignees
Labels

Comments

@magnumripper
Copy link
Owner

@magnumripper magnumripper commented Oct 15, 2015

Not sure if we care about it at all (but Myrice's formats work fine with the same ror64 macro)

$ ../run/john -test -dev=1 -form:sha512crypt-opencl
Benchmarking: sha512crypt-opencl, crypt(3) $6$ (rounds=5000) [SHA512 OpenCL]... Device 1: Tahiti [AMD Radeon HD 7900 Series]
Building the kernel, this could take a while
Options used: -I ../run/kernels -cl-mad-enable -D__GPU__ -DDEVICE_INFO=138 -DDEV_VER_MAJOR=1124 -DDEV_VER_MINOR=2 -D_OPENCL_COMPILER  $JOHN/kernels/cryptsha512_kernel_GCN.cl
Build log: "/tmp/OCLwPgB6k.cl", line 70: error: function "amd_bitalign" declared
          implicitly
          t1 = k[i] + w[i] + h + Sigma1(e) + Ch(e, f, g);
                                 ^

"/tmp/OCLwPgB6k.cl", line 85: error: function "amd_bitalign" declared
          implicitly
          w[i & 15] = sigma1(w[(i - 2) & 15]) + sigma0(w[(i - 15) & 15]) + w[(i - 16) & 15] + w[(i - 7) & 15];
                      ^

2 errors detected in the compilation of "/tmp/OCLwPgB6k.cl".

Frontend phase failed compilation.

Error -11 building kernel $JOHN/kernels/cryptsha512_kernel_GCN.cl. DEVICE_INFO=138
OpenCL CL_BUILD_PROGRAM_FAILURE error in common-opencl.c:1004 - clBuildProgram failed.

Similar output for raw-sha512 and xsha512

@magnumripper magnumripper changed the title Claudio's SHA-512 formats fail on Bull (old 13.4 driver) Claudio's SHA-512 formats fail on Bull AMD (old 13.4 driver) Oct 15, 2015
@claudioandre-br
Copy link
Collaborator

@claudioandre-br claudioandre-br commented Oct 15, 2015

Just for the record: the solution is:
#pragma OPENCL EXTENSION cl_amd_media_ops : enable

claudioandre-br added a commit to claudioandre-br/JohnTheRipper that referenced this issue Oct 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.