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
8a5b51e3
Commit
8a5b51e3
authored
Aug 01, 2019
by
Ramesh Errabolu
Browse files
Print launch command
parent
30d959ab
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
2 deletions
+36
-2
main.cpp
main.cpp
+1
-1
rocm_bandwidth_test.cpp
rocm_bandwidth_test.cpp
+1
-1
rocm_bandwidth_test.hpp
rocm_bandwidth_test.hpp
+1
-0
rocm_bandwidth_test_print.cpp
rocm_bandwidth_test_print.cpp
+33
-0
No files found.
main.cpp
View file @
8a5b51e3
...
...
@@ -54,7 +54,7 @@ int main(int argc, char** argv) {
if
(
argc
==
1
)
{
argc
++
;
argv
[
1
]
=
(
char
*
)
"-a"
;
setenv
(
"ROCM_BW_DEFAULT_RUN"
,
"
fals
e"
,
true
);
setenv
(
"ROCM_BW_DEFAULT_RUN"
,
"
tru
e"
,
true
);
}
// Create the Bandwidth test object
...
...
rocm_bandwidth_test.cpp
View file @
8a5b51e3
...
...
@@ -789,7 +789,7 @@ RocmBandwidthTest::RocmBandwidthTest(int argc, char** argv) : BaseTest() {
// Initialize version of the test
version_
.
major_id
=
2
;
version_
.
minor_id
=
3
;
version_
.
step_id
=
1
;
version_
.
step_id
=
2
;
version_
.
reserved
=
0
;
bw_iter_cnt_
=
getenv
(
"ROCM_BW_ITER_CNT"
);
...
...
rocm_bandwidth_test.hpp
View file @
8a5b51e3
...
...
@@ -394,6 +394,7 @@ class RocmBandwidthTest : public BaseTest {
RocmBandwidthVersion
version_
;
void
PrintVersion
()
const
;
void
PrintLaunchCmd
()
const
;
std
::
string
GetVersion
()
const
;
// Used to help count agent_info
...
...
rocm_bandwidth_test_print.cpp
View file @
8a5b51e3
...
...
@@ -79,9 +79,39 @@ void RocmBandwidthTest::PrintHelpScreen() {
std
::
cout
<<
"
\t\t
Case 7: rocm_bandwidth_test -a or -s x -d y with -l and -v"
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
}
// @brief: Print the cmdline used to run the test
void
RocmBandwidthTest
::
PrintLaunchCmd
()
const
{
uint32_t
format
=
10
;
std
::
cout
.
setf
(
ios
::
left
);
std
::
cout
<<
std
::
endl
;
std
::
cout
.
width
(
format
);
std
::
cout
<<
""
;
std
::
cout
<<
"Launch Command is: "
;
// Print the exe value
std
::
cout
<<
usr_argv_
[
0
];
// Return for default run
if
(
bw_default_run_
!=
NULL
)
{
std
::
cout
<<
" (rocm_bandwidth -a + rocm_bandwidth -A)"
;
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
return
;
}
// Print launch parameters for non-default runs
for
(
uint32_t
idx
=
1
;
idx
<
usr_argc_
;
idx
++
)
{
std
::
cout
<<
" "
<<
usr_argv_
[
idx
];
}
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
}
// @brief: Print the version of the test
...
...
@@ -94,6 +124,9 @@ void RocmBandwidthTest::PrintVersion() const {
std
::
cout
.
width
(
format
);
std
::
cout
<<
""
;
std
::
cout
<<
"RocmBandwidthTest Version: "
<<
GetVersion
()
<<
std
::
endl
;
// Print launch command
PrintLaunchCmd
();
}
// @brief: Print the topology of Memory Pools and Devices present in system
...
...
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