1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-07 15:18:15 +00:00
hashcat/OpenCL/inc_amp.h
Gabriele Gristina bcc351068f
Metal Backend:
- added support to 2D/3D Compute
- improved compute workloads calculation
Makefile:
- updated MACOSX_DEPLOYMENT_TARGET to 15.0
Unit tests:
- updated install_modules.sh with Crypt::Argon2

Argon2 start works with Apple Metal
2025-07-03 22:06:32 +02:00

35 lines
1.0 KiB
C

/**
* 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, \
uint3 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