2015-12-04 14:47:52 +00:00
|
|
|
/**
|
2016-09-11 20:20:15 +00:00
|
|
|
* Author......: See docs/credits.txt
|
2015-12-04 14:47:52 +00:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-05-25 21:04:26 +00:00
|
|
|
#include "inc_hash_constants.h"
|
|
|
|
#include "inc_vendor.cl"
|
|
|
|
#include "inc_types.cl"
|
2015-12-04 14:47:52 +00:00
|
|
|
|
2018-11-21 12:00:30 +00:00
|
|
|
__kernel void amp (__global pw_t * restrict pws, __global pw_t * restrict pws_amp, __global const kernel_rule_t * restrict rules_buf, __global const pw_t * restrict combs_buf, __constant const bf_t * restrict bfs_buf, const u32 combs_mode, const u64 gid_max)
|
2015-12-04 14:47:52 +00:00
|
|
|
{
|
2017-08-19 14:39:22 +00:00
|
|
|
const u64 gid = get_global_id (0);
|
2015-12-04 14:47:52 +00:00
|
|
|
|
|
|
|
if (gid >= gid_max) return;
|
|
|
|
|
|
|
|
const u32 w0r = bfs_buf[0].i;
|
|
|
|
|
2018-02-05 16:18:58 +00:00
|
|
|
pws[gid].i[0] |= w0r;
|
2015-12-04 14:47:52 +00:00
|
|
|
}
|