"vscode:/vscode.git/clone" did not exist on "9ebaea545ffddf2e9079994f2ea657a7fa5f358c"
Commit 30d959ab authored by Ramesh Errabolu's avatar Ramesh Errabolu
Browse files

Update copy banner with uni vs bidir detail

parent 54821764
...@@ -789,7 +789,7 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() { ...@@ -789,7 +789,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 = 0; version_.step_id = 1;
version_.reserved = 0; version_.reserved = 0;
bw_iter_cnt_ = getenv("ROCM_BW_ITER_CNT"); bw_iter_cnt_ = getenv("ROCM_BW_ITER_CNT");
......
...@@ -77,7 +77,8 @@ static void printRecord(size_t size, double avg_time, ...@@ -77,7 +77,8 @@ static void printRecord(size_t size, double avg_time,
} }
static void printCopyBanner(uint32_t src_pool_id, uint32_t src_agent_type, static void printCopyBanner(uint32_t src_pool_id, uint32_t src_agent_type,
uint32_t dst_pool_id, uint32_t dst_agent_type) { uint32_t dst_pool_id, uint32_t dst_agent_type,
bool unidir) {
std::stringstream src_type; std::stringstream src_type;
std::stringstream dst_type; std::stringstream dst_type;
...@@ -86,7 +87,11 @@ static void printCopyBanner(uint32_t src_pool_id, uint32_t src_agent_type, ...@@ -86,7 +87,11 @@ static void printCopyBanner(uint32_t src_pool_id, uint32_t src_agent_type,
std::cout << std::endl; std::cout << std::endl;
std::cout << "================"; std::cout << "================";
std::cout << " Benchmark Result"; if (unidir) {
std::cout << " Unidirectional Benchmark Result";
} else {
std::cout << " Bidirectional Benchmark Result";
}
std::cout << " ================"; std::cout << " ================";
std::cout << std::endl; std::cout << std::endl;
std::cout << "================"; std::cout << "================";
...@@ -218,7 +223,10 @@ void RocmBandwidthTest::DisplayCopyTime(async_trans_t& trans) const { ...@@ -218,7 +223,10 @@ void RocmBandwidthTest::DisplayCopyTime(async_trans_t& trans) const {
hsa_device_type_t src_dev_type = agent_list_[src_dev_idx].device_type_; hsa_device_type_t src_dev_type = agent_list_[src_dev_idx].device_type_;
uint32_t dst_dev_idx = pool_list_[dst_idx].agent_index_; uint32_t dst_dev_idx = pool_list_[dst_idx].agent_index_;
hsa_device_type_t dst_dev_type = agent_list_[dst_dev_idx].device_type_; hsa_device_type_t dst_dev_type = agent_list_[dst_dev_idx].device_type_;
printCopyBanner(src_idx, src_dev_type, dst_idx, dst_dev_type);
bool unidir = ((trans.req_type_ == REQ_COPY_UNIDIR) ||
(trans.req_type_ == REQ_CONCURRENT_COPY_UNIDIR));
printCopyBanner(src_idx, src_dev_type, dst_idx, dst_dev_type, unidir);
uint32_t size_len = size_list_.size(); uint32_t size_len = size_list_.size();
for (uint32_t idx = 0; idx < size_len; idx++) { for (uint32_t idx = 0; idx < size_len; idx++) {
......
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