Skip to content

Commit 662b90e

Browse files
committed
auto_configure: modify auto_configure unit tests to include the new fields added to device global
1 parent 874d0bb commit 662b90e

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

test/acl_auto_configure_test.cpp

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,13 @@ TEST(auto_configure, many_ok_forward_compatibility) {
493493
// sections and subsections to check forward compatibility
494494

495495
std::string str(VERSIONIDTOSTR(
496-
ACL_AUTO_CONFIGURE_VERSIONID) " 28 "
496+
ACL_AUTO_CONFIGURE_VERSIONID) " 49 "
497497
"sample40byterandomhash000000000000000000 "
498-
"a10gx 0 1 15 DDR 2 1 6 0 2147483648 100 "
499-
"100 100 100 200 200 200 200 0 0 0 0 2 "
500-
"1 name1 1 name2 47 "
498+
"a10gx 0 1 17 DDR 2 1 6 0 2147483648 100 "
499+
"100 100 100 0 - 0 200 200 200 200 0 0 0 "
500+
"2 9 ms_dev_global1 2048 1024 3 0 0 300 "
501+
"300 300 ms_dev_global2 4096 1024 1 1 1 "
502+
"300 300 300 400 400 400 400 47 "
501503
"40 external_sort_stage_0 0 128 1 0 0 1 0 "
502504
"1 0 1 10 0 0 4 1 0 0 0 500 500 500 0 0 "
503505
"0 0 1 1 1 3 1 1 1 3 1 0 0 800 800 800 "
@@ -688,10 +690,10 @@ TEST(auto_configure, many_ok_forward_compatibility) {
688690

689691
TEST(auto_configure, many_limit_check) {
690692
std::string str(VERSIONIDTOSTR(
691-
ACL_AUTO_CONFIGURE_VERSIONID) " 15 "
693+
ACL_AUTO_CONFIGURE_VERSIONID) " 19 "
692694
"sample40byterandomhash000000000000000000 "
693-
"a10gx 0 1 7 DDR 2 1 2 0 2147483648 0 0 0 "
694-
"0 75 "
695+
"a10gx 0 1 9 DDR 2 1 2 0 2147483648 0 - 0 "
696+
"0 0 0 0 0 75 " // 75 kernels
695697
"31 external_sort_stage_0 0 128 1 0 0 1 0 "
696698
"1 0 1 6 0 0 4 1 0 0 0 0 0 0 1 1 1 3 1 1 1 "
697699
"3 1 "
@@ -1204,14 +1206,14 @@ TEST(auto_configure, kernel_arg_info) {
12041206

12051207
TEST(auto_configure, hostpipe) {
12061208
std::string str(VERSIONIDTOSTR(
1207-
ACL_AUTO_CONFIGURE_VERSIONID) " 46 "
1209+
ACL_AUTO_CONFIGURE_VERSIONID) " 49 "
12081210
"sample40byterandomhash000000000000000000 "
12091211
"a10gx_hostpipe 0 1 15 DDR 2 1 6 0 "
12101212
"2147483648 0 100 100 100 100 200 200 200 "
12111213
"200 "
12121214
"2 9 host_to_dev 1 0 32 32768 300 300 300 "
12131215
"300 dev_to_host 0 1 32 32768 300 300 300 "
1214-
"300 400 1 3 name3 400 0 "
1216+
"300 400 1 6 dev_global_3 1024 2048 0 0 0 "
12151217
"1 29 foo 0 128 1 0 0 1 0 1 0 0 0 0 0 0 1 "
12161218
"1 1 3 1 1 1 3 1 0 0 800 800 800 900 "
12171219
"900"
@@ -1241,10 +1243,10 @@ TEST(auto_configure, hostpipe) {
12411243

12421244
TEST(auto_configure, streaming) {
12431245
const std::string config_str{
1244-
"23 26 " RANDOM_HASH
1246+
"23 29 " RANDOM_HASH
12451247
" pac_a10 0 1 13 DDR 2 2 24 1 2 0 4294967296 4294967296 8589934592 0 - 0 "
1246-
"0 0 0 1 3 device_global_name 256 128 1 105 _ZTS3CRCILi0EE 0 256 1 0 0 1 "
1247-
"0 1 0 9 8 0 0 8 1 0 0 1 k0_ZTS3CRCILi0EE_arg0 8 2 1 8 1024 0 3 1 "
1248+
"0 0 0 1 6 device_global_name 256 128 0 0 0 1 105 _ZTS3CRCILi0EE 0 256 1 "
1249+
"0 0 1 0 1 0 9 8 0 0 8 1 0 0 1 k0_ZTS3CRCILi0EE_arg0 8 2 1 8 1024 0 3 1 "
12481250
"k0_ZTS3CRCILi0EE_arg1 8 0 0 8 1 0 0 1 k0_ZTS3CRCILi0EE_arg2 7 0 0 8 1 0 "
12491251
"0 0 7 0 0 8 1 0 0 0 7 2 1 8 1024 0 2 0 7 0 0 8 1 0 0 0 7 0 0 8 1 0 0 0 "
12501252
"7 0 0 8 1 0 0 0 0 0 1 2 64 4096 1 1 1 3 1 1 1 3 1 0 1 "

0 commit comments

Comments
 (0)