bkerler / opencl_brute

MD5,SHA1,SHA256,SHA512,HMAC,PBKDF2,SCrypt Bruteforcing tools using OpenCL (GPU, yay!) and Python
MIT License
163 stars 44 forks source link

clBuildProgram failed: BUILD_PROGRAM_FAILURE #26

Open mloffer156 opened 3 months ago

mloffer156 commented 3 months ago
root@CT100:/var/share_guest/opencl_brute# python3 test.py 0
Using salt: b'salty123'
Testing md5 ..
Ok m8!
Testing hmac using md5.cl
1 warning and 1 error generated.
Traceback (most recent call last):
  File "test.py", line 370, in <module>
    main(sys.argv)
  File "test.py", line 325, in main
    md5_hmac_test(opencl_algos, passwordlist, salt)
  File "test.py", line 84, in md5_hmac_test
    ctx = opencl_algo.cl_md5_init("pbkdf2.cl")
  File "/var/share_guest/opencl_brute/Library/opencl.py", line 638, in cl_md5_init
    prg = self.opencl_ctx.compile(bufStructs, 'md5.cl', option)
  File "/var/share_guest/opencl_brute/Library/opencl.py", line 155, in compile
    prg = cl.Program(self.ctx, src).build()
  File "/usr/local/lib/python3.8/dist-packages/pyopencl/__init__.py", line 518, in build
    self._build_and_catch_errors(
  File "/usr/local/lib/python3.8/dist-packages/pyopencl/__init__.py", line 574, in _build_and_catch_errors
    raise err
pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE

Build on <pyopencl.Device 'NVIDIA GeForce RTX 3070 Ti' on 'NVIDIA CUDA' at `0x12949b0>:`

<kernel>:591:71: error: passing '__generic unsigned int *' to parameter of type 'unsigned int *' changes address space of pointer
    hash_private(input_2, hashBlockSize_bytes + hashDigestSize_bytes, output);
                                                                      ^~~~~~
<kernel>:473:1: note: passing argument to parameter 'output' here
def_hash(hash_private, __private, __private, md_pad__private, process512Block__private)
^
<kernel>:453:93: note: expanded from macro 'def_hash'
static void funcName(m_tag unsigned int *m, const int m_len_bytes, output_tag unsigned int *output)    \
                                                                                            ^
<kernel>:722:20: warning: initializing '__global unsigned int *' with an expression of type 'unsigned int const __global[8]' discards qualifiers
    __global word *pwdBuffer = pwdbuffer_arg[0].buffer;
                   ^           ~~~~~~~~~~~~~~~~~~~~~~~
===========================================================================
Build on <pyopencl.Device 'NVIDIA GeForce RTX 2060' on 'NVIDIA CUDA' at 0x12b7800>:

(options: -I /usr/local/lib/python3.8/dist-packages/pyopencl/cl)

My GPUs: screen