Unverified Commit 1935cf86 authored by Ramesh Errabolu's avatar Ramesh Errabolu Committed by GitHub
Browse files

Merge pull request #56 from RadeonOpenCompute/fixValidationLogic

Propagate Validation Failures fully
parents 8c2ce316 c0a1fa01
...@@ -804,7 +804,7 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() { ...@@ -804,7 +804,7 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() {
// Initialize version of the test // Initialize version of the test
version_.major_id = 2; version_.major_id = 2;
version_.minor_id = 3; version_.minor_id = 3;
version_.step_id = 9; version_.step_id = 10;
version_.reserved = 0; version_.reserved = 0;
bw_iter_cnt_ = getenv("ROCM_BW_ITER_CNT"); bw_iter_cnt_ = getenv("ROCM_BW_ITER_CNT");
......
...@@ -449,7 +449,10 @@ void RocmBandwidthTest::ComputeCopyTime(async_trans_t& trans) { ...@@ -449,7 +449,10 @@ void RocmBandwidthTest::ComputeCopyTime(async_trans_t& trans) {
// 10^9 not 1024^3 to get size in GigaBytes // 10^9 not 1024^3 to get size in GigaBytes
// @note: For validation failures bandwidth // @note: For validation failures bandwidth
// is encoded by VALIDATE_COPY_OP_FAILURE // is encoded by VALIDATE_COPY_OP_FAILURE
if (verify_status == HSA_STATUS_SUCCESS) { if (verify_status != HSA_STATUS_SUCCESS) {
avg_bandwidth = VALIDATE_COPY_OP_FAILURE;
peak_bandwidth = VALIDATE_COPY_OP_FAILURE;
} else {
avg_bandwidth = (double)data_size / avg_time / 1000 / 1000 / 1000; avg_bandwidth = (double)data_size / avg_time / 1000 / 1000 / 1000;
peak_bandwidth = (double)data_size / min_time / 1000 / 1000 / 1000; peak_bandwidth = (double)data_size / min_time / 1000 / 1000 / 1000;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment