Changeset 2220


Ignore:
Timestamp:
Dec 18, 2010, 1:47:00 PM (11 years ago)
Author:
Sven Rech
Message:

keysearcher test

Location:
trunk/CrypPlugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/AES/OpenCL/AESOpenCL.cl

    r2218 r2220  
    883883kernel void bruteforceKernel(global unsigned char *userKey, global float *results, int add)
    884884{
    885         size_t x = get_global_id(0)+get_global_id(1)*get_global_size(0);
     885        size_t x = get_global_id(0)+get_global_id(1)*get_global_size(0)+get_global_id(2)*get_global_size(1)*get_global_size(0);
    886886       
    887887        AES_KEY key;   
  • trunk/CrypPlugins/KeySearcher/KeySearcher.cs

    r2218 r2220  
    515515                Mem costs = oclManager.Context.CreateBuffer(MemFlags.READ_WRITE, costArray.Length * 4);
    516516
    517                 IntPtr[] globalWorkSize = { (IntPtr)subbatchSize, (IntPtr)1 };
     517                IntPtr[] globalWorkSize = { (IntPtr)subbatchSize, (IntPtr)1, (IntPtr)1 };
    518518
    519519                keySearcherOpenCLSubbatchOptimizer.BeginMeasurement();
     
    526526                        bruteforceKernel.SetArg(1, costs);
    527527                        bruteforceKernel.SetArg(2, i * subbatchSize);
    528                         oclManager.CQ[deviceIndex].EnqueueNDRangeKernel(bruteforceKernel, 2, null, globalWorkSize, null);
     528                        oclManager.CQ[deviceIndex].EnqueueNDRangeKernel(bruteforceKernel, 3, null, globalWorkSize, null);
    529529                        oclManager.CQ[deviceIndex].EnqueueBarrier();
    530530
Note: See TracChangeset for help on using the changeset viewer.