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
1935cf86
Unverified
Commit
1935cf86
authored
Jan 07, 2020
by
Ramesh Errabolu
Committed by
GitHub
Jan 07, 2020
Browse files
Merge pull request #56 from RadeonOpenCompute/fixValidationLogic
Propagate Validation Failures fully
parents
8c2ce316
c0a1fa01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
rocm_bandwidth_test.cpp
rocm_bandwidth_test.cpp
+1
-1
rocm_bandwidth_test_trans.cpp
rocm_bandwidth_test_trans.cpp
+4
-1
No files found.
rocm_bandwidth_test.cpp
View file @
1935cf86
...
@@ -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"
);
...
...
rocm_bandwidth_test_trans.cpp
View file @
1935cf86
...
@@ -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
;
}
}
...
...
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