Skip to content

Commit e41ffc6

Browse files
committed
Update acl_globals_fuzz_test.cpp to match acl_globals_test.cpp
1 parent be72ad8 commit e41ffc6

File tree

1 file changed

+58
-44
lines changed

1 file changed

+58
-44
lines changed

fuzz_testing/test/acl_globals_fuzz_test.cpp

Lines changed: 58 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ static acl_system_def_t acltest_simple_system = {
149149

150150
// Device definitions.
151151
1,
152-
{{nullptr,
153-
0,
152+
{{0,
154153
1,
155154
1,
156155
1, /* half duplex memory transfers */
@@ -556,58 +555,75 @@ static acl_system_def_t acltest_complex_system = {
556555
/* num_devices */ 5,
557556
{// All of these have kernels 0 and 2 in common. This is used for
558557
// testing clCreateKernels
559-
{nullptr,
560-
0,
558+
{0,
561559
1,
562560
1,
563561
1, /* half duplex memory transfers */
564562
1,
565563
1,
566564
0, /* alloc capabilities */
567565
0, /* min_host_mem_alignment */
568-
{"fpga0",
569-
"sample40byterandomhash000000000000000000",
570-
0,
571-
acltest_complex_system_device0_accel, /* accel */
572-
{}, /* hal_info */
573-
1, // number of global memory systems
574-
{
575-
/* global mem info array */
576-
{
577-
/* global mem info for memory 0 */
578-
/* global mem */ ACL_RANGE_FROM_ARRAY(acltest_global),
579-
/* acl_system_global_mem_type_t */ ACL_GLOBAL_MEM_DEVICE_PRIVATE,
580-
/* num_global_bank */ 2,
581-
/* burst_interleaved */ 1,
582-
},
583-
}}},
584-
{nullptr,
585-
1,
566+
{
567+
"fpga0",
568+
"sample40byterandomhash000000000000000000",
569+
0,
570+
acltest_complex_system_device0_accel, /* accel */
571+
{}, /* hal_info */
572+
1, // number of global memory systems
573+
{
574+
/* global mem info array */
575+
{
576+
/* global mem info for memory 0 */
577+
/* global mem */ ACL_RANGE_FROM_ARRAY(acltest_global),
578+
/* acl_system_global_mem_type_t */
579+
ACL_GLOBAL_MEM_DEVICE_PRIVATE,
580+
/* num_global_bank */ 2,
581+
/* burst_interleaved */ 1,
582+
},
583+
},
584+
{}, // hostpipe info
585+
{
586+
// device_global_mem_defs map
587+
{"dev_global_name",
588+
{0x1024, 2048, ACL_DEVICE_GLOBAL_HOST_ACCESS_TYPE_COUNT, 0, 0,
589+
0}},
590+
},
591+
}},
592+
{1,
586593
1,
587594
1,
588595
2, /* full duplex memory transfers */
589596
0,
590597
0,
591598
0, /* alloc capabilities */
592599
0, /* min_host_mem_alignment */
593-
{"fpga1",
594-
"sample40byterandomhash000000000000000001",
595-
0,
596-
acltest_complex_system_device1_accel, /* accel */
597-
{}, /* hal_info */
598-
1, // number of global memory systems
599-
{
600-
/* global mem info array */
601-
{
602-
/* global mem info for memory 0 */
603-
/* global mem */ ACL_RANGE_FROM_ARRAY(acltest_global),
604-
/* acl_system_global_mem_type_t */ ACL_GLOBAL_MEM_DEVICE_PRIVATE,
605-
/* num_global_bank */ 2,
606-
/* burst_interleaved */ 1,
607-
},
608-
}}},
609-
{nullptr,
610-
2,
600+
{
601+
"fpga1",
602+
"sample40byterandomhash000000000000000001",
603+
0,
604+
acltest_complex_system_device1_accel, /* accel */
605+
{}, /* hal_info */
606+
1, // number of global memory systems
607+
{
608+
/* global mem info array */
609+
{
610+
/* global mem info for memory 0 */
611+
/* global mem */ ACL_RANGE_FROM_ARRAY(acltest_global),
612+
/* acl_system_global_mem_type_t */
613+
ACL_GLOBAL_MEM_DEVICE_PRIVATE,
614+
/* num_global_bank */ 2,
615+
/* burst_interleaved */ 1,
616+
},
617+
},
618+
{}, // hostpipe info
619+
{
620+
// device_global_mem_defs map
621+
{"dev_global_name",
622+
{0x1024, 2048, ACL_DEVICE_GLOBAL_HOST_ACCESS_TYPE_COUNT, 0, 0,
623+
0}},
624+
},
625+
}},
626+
{2,
611627
1,
612628
1,
613629
2, /* full duplex memory transfers */
@@ -631,8 +647,7 @@ static acl_system_def_t acltest_complex_system = {
631647
/* burst_interleaved */ 1,
632648
},
633649
}}},
634-
{nullptr,
635-
3,
650+
{3,
636651
1,
637652
1,
638653
1, /* half duplex memory transfers */
@@ -656,8 +671,7 @@ static acl_system_def_t acltest_complex_system = {
656671
/* burst_interleaved */ 1,
657672
},
658673
}}},
659-
{nullptr,
660-
4,
674+
{4,
661675
1,
662676
1,
663677
1, /* half duplex memory transfers */

0 commit comments

Comments
 (0)