Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 417b60f

Browse files
authored
[SYCL] Use Subgroup size 16 as default for InlineASM tests (#1476)
Subgroup size 8 is not supported on all gpu platforms. Instead use 16 as default subgroup size unless specifically testing a given size (8 or 32 for example in some tests).
1 parent 376bc88 commit 417b60f

22 files changed

+62
-61
lines changed

SYCL/InlineAsm/Negative/asm_bad_opcode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ struct KernelFunctor {
1313
void operator()(sycl::handler &cgh) {
1414
cgh.parallel_for<KernelFunctor>(
1515
sycl::range<1>{16},
16-
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
16+
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
1717
#if defined(__SYCL_DEVICE_ONLY__)
1818
asm volatile(".decl tmp1 v_type=G type=d num_elts=16 align=GRF\n"
1919
".decl tmp2 v_type=G type=d num_elts=16 align=GRF\n"
20-
"movi (M1_NM, 8) tmp1(0,1)<1> tmp2(0,0)\n");
20+
"movi (M1_NM, 16) tmp1(0,1)<1> tmp2(0,0)\n");
2121
#endif
2222
});
2323
}

SYCL/InlineAsm/Negative/asm_bad_operand_syntax.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ struct KernelFunctor {
1313
void operator()(sycl::handler &cgh) {
1414
cgh.parallel_for<KernelFunctor>(
1515
sycl::range<1>{16},
16-
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
16+
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
1717
#if defined(__SYCL_DEVICE_ONLY__)
1818
asm volatile(".decl tmp1 v_type=G type=d num_elts=16 align=GRF\n"
1919
".decl tmp2 v_type=G type=d num_elts=16 align=GRF\n"
20-
"mov (M1_NM, 8) tmp1(0,1)<1>:f tmp2(0,0)<1;1,0>\n");
20+
"mov (M1_NM, 16) tmp1(0,1)<1>:f tmp2(0,0)<1;1,0>\n");
2121
#endif
2222
});
2323
}

SYCL/InlineAsm/Negative/asm_duplicate_label.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct KernelFunctor {
1313
void operator()(sycl::handler &cgh) {
1414
cgh.parallel_for<KernelFunctor>(
1515
sycl::range<1>{16},
16-
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
16+
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
1717
#if defined(__SYCL_DEVICE_ONLY__)
1818
asm volatile(".decl tmp1 v_type=G type=d num_elts=16 align=GRF\n"
1919
".decl tmp2 v_type=G type=d num_elts=16 align=GRF\n"

SYCL/InlineAsm/Negative/asm_illegal_exec_size.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct KernelFunctor {
1313
void operator()(sycl::handler &cgh) {
1414
cgh.parallel_for<KernelFunctor>(
1515
sycl::range<1>{16},
16-
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
16+
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
1717
#if defined(__SYCL_DEVICE_ONLY__)
1818
asm volatile(".decl tmp1 v_type=G type=d num_elts=16 align=GRF\n"
1919
".decl tmp2 v_type=G type=d num_elts=16 align=GRF\n"

SYCL/InlineAsm/Negative/asm_missing_label.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct KernelFunctor {
1313
void operator()(sycl::handler &cgh) {
1414
cgh.parallel_for<KernelFunctor>(
1515
sycl::range<1>{16},
16-
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
16+
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
1717
#if defined(__SYCL_DEVICE_ONLY__)
1818
asm volatile(".decl tmp1 v_type=G type=d num_elts=16 align=GRF\n"
1919
".decl tmp2 v_type=G type=d num_elts=16 align=GRF\n"

SYCL/InlineAsm/Negative/asm_missing_region.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ struct KernelFunctor {
1313
void operator()(sycl::handler &cgh) {
1414
cgh.parallel_for<KernelFunctor>(
1515
sycl::range<1>{16},
16-
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
16+
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
1717
#if defined(__SYCL_DEVICE_ONLY__)
1818
asm volatile(".decl tmp1 v_type=G type=d num_elts=16 align=GRF\n"
1919
".decl tmp2 v_type=G type=d num_elts=16 align=GRF\n"
20-
"mov (M1_NM, 8) tmp1(0,1)<1> tmp2(0,0)\n");
20+
"mov (M1_NM, 16) tmp1(0,1)<1> tmp2(0,0)\n");
2121
#endif
2222
});
2323
}

SYCL/InlineAsm/Negative/asm_simple.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct KernelFunctor {
1313
void operator()(sycl::handler &cgh) {
1414
cgh.parallel_for<KernelFunctor>(
1515
sycl::range<1>{16},
16-
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
16+
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
1717
#if defined(__SYCL_DEVICE_ONLY__)
1818
asm volatile(".decl tmp1 v_type=G type=d num_elts=16 align=GRF\n"
1919
".decl tmp2 v_type=G type=d num_elts=16 align=GRF\n"

SYCL/InlineAsm/Negative/asm_undefined_decl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ struct KernelFunctor {
1313
void operator()(sycl::handler &cgh) {
1414
cgh.parallel_for<KernelFunctor>(
1515
sycl::range<1>{16},
16-
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
16+
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
1717
#if defined(__SYCL_DEVICE_ONLY__)
1818
asm volatile(".decl tmp1 v_type=G type=d num_elts=16 align=GRF\n"
1919
".decl tmp2 v_type=G type=d num_elts=16 align=GRF\n"
20-
"mov (M1_NM, 8) tmp1(0,1)<1> my_super_var(0,0)\n");
20+
"mov (M1_NM, 16) tmp1(0,1)<1> my_super_var(0,0)\n");
2121
#endif
2222
});
2323
}

SYCL/InlineAsm/Negative/asm_undefined_pred.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ struct KernelFunctor {
1313
void operator()(sycl::handler &cgh) {
1414
cgh.parallel_for<KernelFunctor>(
1515
sycl::range<1>{16},
16-
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
16+
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
1717
#if defined(__SYCL_DEVICE_ONLY__)
1818
asm volatile(".decl tmp1 v_type=G type=d num_elts=16 align=GRF\n"
1919
".decl tmp2 v_type=G type=d num_elts=16 align=GRF\n"
20-
"cmp.lt (M1_NM, 8) P3 tmp1(0,0)<0;1,0> 0x3:ud\n");
20+
"cmp.lt (M1_NM, 16) P3 tmp1(0,0)<0;1,0> 0x3:ud\n");
2121
#endif
2222
});
2323
}

SYCL/InlineAsm/Negative/asm_wrong_declare.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct KernelFunctor {
1313
void operator()(sycl::handler &cgh) {
1414
cgh.parallel_for<KernelFunctor>(
1515
sycl::range<1>{16},
16-
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
16+
[=](sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
1717
#if defined(__SYCL_DEVICE_ONLY__)
1818
asm volatile(".decl tmp1 v_type=G type=d num_elts=16 align=GRF\n"
1919
".decl tmp2 v_type=G type=d num_elts=16 align=GRF\n"

0 commit comments

Comments
 (0)