Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
rocm_bandwidth_test
Commits
30d959ab
"vscode:/vscode.git/clone" did not exist on "9ebaea545ffddf2e9079994f2ea657a7fa5f358c"
Commit
30d959ab
authored
Aug 01, 2019
by
Ramesh Errabolu
Browse files
Update copy banner with uni vs bidir detail
parent
54821764
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
rocm_bandwidth_test.cpp
rocm_bandwidth_test.cpp
+1
-1
rocm_bandwidth_test_report.cpp
rocm_bandwidth_test_report.cpp
+12
-4
No files found.
rocm_bandwidth_test.cpp
View file @
30d959ab
...
@@ -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"
);
...
...
rocm_bandwidth_test_report.cpp
View file @
30d959ab
...
@@ -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
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment