diff --git a/projects/rocr-runtime/rocrtst/samples/binary_search/binary_search.cc b/projects/rocr-runtime/rocrtst/samples/binary_search/binary_search.cc index 9d699abbc0..f16938c0a3 100755 --- a/projects/rocr-runtime/rocrtst/samples/binary_search/binary_search.cc +++ b/projects/rocr-runtime/rocrtst/samples/binary_search/binary_search.cc @@ -654,6 +654,9 @@ hsa_status_t Run(BinarySearch* bs) { uint64_t global_offset_x; uint64_t global_offset_y; uint64_t global_offset_z; + uint64_t printf_buffer; + uint64_t default_queue; + uint64_t completion_action; } local_args; local_args.outputArray = reinterpret_cast(bs->output); @@ -662,6 +665,9 @@ hsa_status_t Run(BinarySearch* bs) { local_args.global_offset_x = 0; local_args.global_offset_y = 0; local_args.global_offset_z = 0; + local_args.printf_buffer = 0; + local_args.default_queue = 0; + local_args.completion_action = 0; // Copy the kernel args structure into kernel arg memory err = AllocAndSetKernArgs(bs, &local_args, sizeof(local_args), diff --git a/projects/rocr-runtime/rocrtst/suites/test_common/test_case_template.cc b/projects/rocr-runtime/rocrtst/suites/test_common/test_case_template.cc index 51e81ed261..6ae513b60f 100755 --- a/projects/rocr-runtime/rocrtst/suites/test_common/test_case_template.cc +++ b/projects/rocr-runtime/rocrtst/suites/test_common/test_case_template.cc @@ -245,6 +245,9 @@ void TestExample::SetUp(void) { uint64_t global_offset_x; uint64_t global_offset_y; uint64_t global_offset_z; + uint64_t printf_buffer; + uint64_t default_queue; + uint64_t completion_action; } local_args; local_args.dstArray = reinterpret_cast(dst_buffer_); @@ -253,6 +256,9 @@ void TestExample::SetUp(void) { local_args.global_offset_x = 0; local_args.global_offset_y = 0; local_args.global_offset_z = 0; + local_args.printf_buffer = 0; + local_args.default_queue = 0; + local_args.completion_action = 0; err = rocrtst::AllocAndSetKernArgs(this, &local_args, sizeof(local_args)); ASSERT_EQ(err, HSA_STATUS_SUCCESS);