mirror of
https://github.com/bvanroll/odiseectf.git
synced 2025-08-29 11:52:43 +00:00
idk
This commit is contained in:
25
olivierdeschacht/OpenCL/amp_a0.cl
Normal file
25
olivierdeschacht/OpenCL/amp_a0.cl
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Author......: See docs/credits.txt
|
||||
* License.....: MIT
|
||||
*/
|
||||
|
||||
#include "inc_hash_constants.h"
|
||||
#include "inc_vendor.cl"
|
||||
#include "inc_types.cl"
|
||||
#include "inc_rp.h"
|
||||
#include "inc_rp.cl"
|
||||
|
||||
__kernel void amp (__global pw_t *pws, __global pw_t *pws_amp, __constant const kernel_rule_t *rules_buf, __global const pw_t *combs_buf, __global const bf_t *bfs_buf, const u32 combs_mode, const u64 gid_max)
|
||||
{
|
||||
const u64 gid = get_global_id (0);
|
||||
|
||||
if (gid >= gid_max) return;
|
||||
|
||||
if (rules_buf[0].cmds[0] == RULE_OP_MANGLE_NOOP && rules_buf[0].cmds[1] == 0) return;
|
||||
|
||||
pw_t pw = pws_amp[gid];
|
||||
|
||||
pw.pw_len = apply_rules (rules_buf[0].cmds, pw.i, pw.pw_len);
|
||||
|
||||
pws[gid] = pw;
|
||||
}
|
Reference in New Issue
Block a user