1
mirror of https://github.com/hashcat/hashcat synced 2024-11-20 23:27:31 +01:00

More CUDA special backports to HIP

This commit is contained in:
Jens Steube 2021-07-18 22:56:22 +02:00
parent 257098a301
commit 0d8b4b74ad
4 changed files with 3 additions and 14 deletions

View File

@ -309,8 +309,9 @@ DECLSPEC u64 rotr64_S (const u64 a, const int n)
return out.v64;
}
#define FIXED_THREAD_COUNT(n) __launch_bounds__((n), 0)
#define SYNC_THREADS() __syncthreads ()
#define FIXED_THREAD_COUNT(n) __attribute__((amdgpu_flat_work_group_size (1, (n))))
#define SYNC_THREADS() __builtin_amdgcn_s_barrier ()
#endif
#ifdef IS_OPENCL

View File

@ -775,11 +775,7 @@ KERNEL_FQ void m02500_aux3 (KERN_ATTR_TMPS_ESALT (wpa_pbkdf2_tmp_t, wpa_eapol_t)
s_te4[i] = te4[i];
}
#if defined IS_CUDA || defined IS_HIP
__syncthreads();
#else
SYNC_THREADS ();
#endif
#else

View File

@ -797,11 +797,7 @@ KERNEL_FQ void m22000_aux3 (KERN_ATTR_TMPS_ESALT (wpa_pbkdf2_tmp_t, wpa_t))
s_te4[i] = te4[i];
}
#if defined IS_CUDA || defined IS_HIP
__syncthreads();
#else
SYNC_THREADS ();
#endif
#else

View File

@ -610,11 +610,7 @@ KERNEL_FQ void m22001_aux3 (KERN_ATTR_TMPS_ESALT (wpa_pmk_tmp_t, wpa_t))
s_te4[i] = te4[i];
}
#if defined IS_CUDA || defined IS_HIP
__syncthreads();
#else
SYNC_THREADS ();
#endif
#else