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
one
TransferBench
Commits
8b2cd85d
Unverified
Commit
8b2cd85d
authored
Nov 30, 2023
by
gilbertlee-amd
Committed by
GitHub
Nov 30, 2023
Browse files
v1.42 Fixing schmoo optional arg, cleaning up schmoo output (#74)
parent
f5e9cf34
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
CHANGELOG.md
CHANGELOG.md
+6
-0
src/TransferBench.cpp
src/TransferBench.cpp
+12
-4
src/include/EnvVars.hpp
src/include/EnvVars.hpp
+1
-1
No files found.
CHANGELOG.md
View file @
8b2cd85d
...
...
@@ -3,6 +3,12 @@
Documentation for TransferBench is available at
[
https://rocm.docs.amd.com/projects/TransferBench
](
https://rocm.docs.amd.com/projects/TransferBench
)
.
## v1.42
### Fixes
*
Fixing schmoo maxNumCus optional arg parsing
*
Schmoo output modified to be easier to copy
## v1.41
### Additions
...
...
src/TransferBench.cpp
View file @
8b2cd85d
...
...
@@ -128,7 +128,7 @@ int main(int argc, char **argv)
int
localIdx
=
(
argc
>
3
?
atoi
(
argv
[
3
])
:
0
);
int
remoteIdx
=
(
argc
>
4
?
atoi
(
argv
[
4
])
:
1
);
int
maxSubExecs
=
(
argc
>
5
?
atoi
(
argv
[
3
])
:
32
);
int
maxSubExecs
=
(
argc
>
5
?
atoi
(
argv
[
5
])
:
32
);
if
(
localIdx
>=
ev
.
numGpuDevices
||
remoteIdx
>=
ev
.
numGpuDevices
)
{
...
...
@@ -2281,9 +2281,17 @@ std::string Transfer::DstToStr() const
void
RunSchmooBenchmark
(
EnvVars
const
&
ev
,
size_t
const
numBytesPerTransfer
,
int
const
localIdx
,
int
const
remoteIdx
,
int
const
maxSubExecs
)
{
char
memType
=
ev
.
useFineGrain
?
'F'
:
'G'
;
printf
(
"Bytes to transfer: %lu Local GPU: %d Remote GPU: %d
\n
"
,
numBytesPerTransfer
,
localIdx
,
remoteIdx
);
printf
(
"| #CUs | Local Read | LocalWrite | Local Copy | RemoteRead |Remote Write| RemoteCopy |
\n
"
);
printf
(
"|------|------------|------------|------------|------------|------------|------------|
\n
"
);
printf
(
" | Local Read | Local Write | Local Copy | Remote Read | Remote Write| Remote Copy |
\n
"
);
printf
(
" #CUs |%c%02d->G%02d->N00|N00->G%02d->%c%02d|%c%02d->G%02d->%c%02d|%c%02d->G%02d->N00|N00->G%02d->%c%02d|%c%02d->G%02d->%c%02d|
\n
"
,
memType
,
localIdx
,
localIdx
,
localIdx
,
memType
,
localIdx
,
memType
,
localIdx
,
localIdx
,
memType
,
localIdx
,
memType
,
remoteIdx
,
localIdx
,
localIdx
,
memType
,
remoteIdx
,
memType
,
localIdx
,
localIdx
,
memType
,
remoteIdx
);
printf
(
"|------|-------------|-------------|-------------|-------------|-------------|-------------|
\n
"
);
std
::
vector
<
Transfer
>
transfers
(
1
);
Transfer
&
t
=
transfers
[
0
];
...
...
@@ -2372,7 +2380,7 @@ void RunSchmooBenchmark(EnvVars const& ev, size_t const numBytesPerTransfer, int
ExecuteTransfers
(
ev
,
0
,
0
,
transfers
,
false
);
double
const
remoteCopy
=
(
t
.
numBytesActual
/
1.0E9
)
/
t
.
transferTime
*
1000.0
f
;
printf
(
"
|
%3d
|
%1
0
.3f
|
%1
0
.3f
|
%1
0
.3f
|
%1
0
.3f
|
%1
0
.3f
|
%1
0
.3f
|
\n
"
,
printf
(
"
%3d
%1
1
.3f
%1
1
.3f
%1
1
.3f
%1
1
.3f
%1
1
.3f
%1
1
.3f
\n
"
,
numCUs
,
localRead
,
localWrite
,
localCopy
,
remoteRead
,
remoteWrite
,
remoteCopy
);
}
}
...
...
src/include/EnvVars.hpp
View file @
8b2cd85d
...
...
@@ -29,7 +29,7 @@ THE SOFTWARE.
#include "Compatibility.hpp"
#include "Kernels.hpp"
#define TB_VERSION "1.4
1
"
#define TB_VERSION "1.4
2
"
extern
char
const
MemTypeStr
[];
extern
char
const
ExeTypeStr
[];
...
...
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