Skip to content

Commit 02060e1

Browse files
committed
allow reqd_sub_group_size only on Intel GPU
1 parent 82c5561 commit 02060e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bitcracker/SYCL/src/attack.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,11 @@ double attack(
11021102
cgh.depends_on(e1);
11031103
cgh.parallel_for(
11041104
sycl::nd_range<1>(in_range, wg_size),
1105-
[=](sycl::nd_item<1> item) [[intel::reqd_sub_group_size(16)]] {
1105+
[=](sycl::nd_item<1> item)
1106+
#if !defined(USE_NVIDIA_BACKEND) && !defined(USE_AMDHIP_BACKEND)
1107+
[[intel::reqd_sub_group_size(16)]]
1108+
#endif
1109+
{
11061110
decrypt_vmk_with_mac(
11071111
num_read_pswd,
11081112
d_found,

0 commit comments

Comments
 (0)