From c2ddd11979a3bfed8e85dcc7e37110a05c353d3c Mon Sep 17 00:00:00 2001 From: rohit pathania Date: Thu, 7 Jun 2018 13:00:08 +0530 Subject: [PATCH] Build failure issue in rocmaster 8386 Change-Id: I413abe0c9fbe16ab2e722cf3f7567aa2853e585b --- rocrtst/suites/stress/queue_write_index_concurrent_tests.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rocrtst/suites/stress/queue_write_index_concurrent_tests.cc b/rocrtst/suites/stress/queue_write_index_concurrent_tests.cc index beb75152b0..59d8fdc7cb 100755 --- a/rocrtst/suites/stress/queue_write_index_concurrent_tests.cc +++ b/rocrtst/suites/stress/queue_write_index_concurrent_tests.cc @@ -154,12 +154,13 @@ typedef struct write_index_store_atomic_thread_data_s { int memory_ordering_type; } write_index_store_atomic_thread_data_t; +static uint64_t const WRITE_INDEX_FAILURE = 2; void thread_proc_write_index_load_atomic(void* data) { write_index_load_atomic_thread_data_t* thread_data = reinterpret_cast(data); uint32_t ii; for (ii = 0; ii < thread_data->num_iterations; ++ii) { - uint64_t write_index; + uint64_t write_index = WRITE_INDEX_FAILURE; // initalized with value other than kStoreValue if (SCRELEASE == thread_data->memory_ordering_type) { write_index = hsa_queue_load_write_index_scacquire(thread_data->queue); } else if (RELAXED == thread_data->memory_ordering_type) {