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
f88c3eff
"vscode:/vscode.git/clone" did not exist on "34f227efbde686124456b4ad4b85111c671e87eb"
Commit
f88c3eff
authored
Jan 24, 2019
by
Ramesh Errabolu
Browse files
Allow user to configure iteration count
parent
4f4dcfbe
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
rocm_bandwidth_test.cpp
rocm_bandwidth_test.cpp
+9
-0
rocm_bandwidth_test.hpp
rocm_bandwidth_test.hpp
+3
-0
No files found.
rocm_bandwidth_test.cpp
View file @
f88c3eff
...
@@ -552,10 +552,19 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() {
...
@@ -552,10 +552,19 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() {
version_
.
step_id
=
0
;
version_
.
step_id
=
0
;
version_
.
reserved
=
0
;
version_
.
reserved
=
0
;
bw_iter_cnt_
=
getenv
(
"ROCM_BW_ITER_CNT"
);
bw_default_run_
=
getenv
(
"ROCM_BW_DEFAULT_RUN"
);
bw_default_run_
=
getenv
(
"ROCM_BW_DEFAULT_RUN"
);
bw_blocking_run_
=
getenv
(
"ROCR_BW_RUN_BLOCKING"
);
bw_blocking_run_
=
getenv
(
"ROCR_BW_RUN_BLOCKING"
);
skip_fine_grain_
=
getenv
(
"ROCM_SKIP_FINE_GRAINED_POOL"
);
skip_fine_grain_
=
getenv
(
"ROCM_SKIP_FINE_GRAINED_POOL"
);
if
(
bw_iter_cnt_
!=
NULL
)
{
int32_t
num
=
atoi
(
bw_iter_cnt_
);
if
(
num
<
0
)
{
std
::
cout
<<
"Value of ROCM_BW_ITER_CNT can't be negative: "
<<
num
<<
std
::
endl
;
}
set_num_iteration
(
num
);
}
exit_value_
=
0
;
exit_value_
=
0
;
}
}
...
...
rocm_bandwidth_test.hpp
View file @
f88c3eff
...
@@ -440,6 +440,9 @@ class RocmBandwidthTest : public BaseTest {
...
@@ -440,6 +440,9 @@ class RocmBandwidthTest : public BaseTest {
// Env key to determine if the run is a default one
// Env key to determine if the run is a default one
char
*
bw_default_run_
;
char
*
bw_default_run_
;
// Env key to specify iteration count
char
*
bw_iter_cnt_
;
// Variable to store argument number
// Variable to store argument number
// Variable to store argument number
// Variable to store argument number
...
...
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