forked from hashcat/hashcat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinc_amp.h
34 lines (27 loc) · 1.03 KB
/
inc_amp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifndef _INC_AMP_H
#define _INC_AMP_H
#if defined IS_METAL
#define KERN_ATTR_AMP \
GLOBAL_AS pw_t *pws, \
GLOBAL_AS pw_t *pws_amp, \
CONSTANT_AS const kernel_rule_t *rules_buf, \
GLOBAL_AS const pw_t *combs_buf, \
GLOBAL_AS const bf_t *bfs_buf, \
CONSTANT_AS const u32 &combs_mode, \
CONSTANT_AS const u64 &gid_max, \
uint hc_gid [[ thread_position_in_grid ]]
#else // CUDA, HIP, OpenCL
#define KERN_ATTR_AMP \
GLOBAL_AS pw_t *pws, \
GLOBAL_AS pw_t *pws_amp, \
CONSTANT_AS const kernel_rule_t *rules_buf, \
GLOBAL_AS const pw_t *combs_buf, \
GLOBAL_AS const bf_t *bfs_buf, \
const u32 combs_mode, \
const u64 gid_max
#endif // IS_METAL
#endif // _INC_AMP_H