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
9e3a04c3
Unverified
Commit
9e3a04c3
authored
Nov 24, 2023
by
gilbertlee-amd
Committed by
GitHub
Nov 24, 2023
Browse files
v1.37 Fixing token error, enabling single-stream mode by default (#68)
parent
08997e88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
9 deletions
+19
-9
CHANGELOG.md
CHANGELOG.md
+8
-0
src/include/EnvVars.hpp
src/include/EnvVars.hpp
+11
-9
No files found.
CHANGELOG.md
View file @
9e3a04c3
...
...
@@ -3,6 +3,14 @@
Documentation for TransferBench is available at
[
https://rocm.docs.amd.com/projects/TransferBench
](
https://rocm.docs.amd.com/projects/TransferBench
)
.
## v1.37
### Changes
*
USE_SINGLE_STREAM is enabled by default now. (Disable via USE_SINGLE_STREAM=0)
### Fixes
*
Fix unrecognized token error when XCC_PREF_TABLE is unspecified
## v1.36
### Additions
...
...
src/include/EnvVars.hpp
View file @
9e3a04c3
...
...
@@ -29,7 +29,7 @@ THE SOFTWARE.
#include "Compatibility.hpp"
#include "Kernels.hpp"
#define TB_VERSION "1.3
6
"
#define TB_VERSION "1.3
7
"
extern
char
const
MemTypeStr
[];
extern
char
const
ExeTypeStr
[];
...
...
@@ -190,7 +190,7 @@ public:
useInteractive
=
GetEnvVar
(
"USE_INTERACTIVE"
,
0
);
usePcieIndexing
=
GetEnvVar
(
"USE_PCIE_INDEX"
,
0
);
usePrepSrcKernel
=
GetEnvVar
(
"USE_PREP_KERNEL"
,
0
);
useSingleStream
=
GetEnvVar
(
"USE_SINGLE_STREAM"
,
0
);
useSingleStream
=
GetEnvVar
(
"USE_SINGLE_STREAM"
,
1
);
useXccFilter
=
GetEnvVar
(
"USE_XCC_FILTER"
,
0
);
validateDirect
=
GetEnvVar
(
"VALIDATE_DIRECT"
,
0
);
enableDebug
=
GetEnvVar
(
"DEBUG"
,
0
);
...
...
@@ -351,13 +351,15 @@ public:
}
// Parse preferred XCC table (if provided
prefXccTable
.
resize
(
numGpuDevices
);
for
(
int
i
=
0
;
i
<
numGpuDevices
;
i
++
)
{
prefXccTable
[
i
].
resize
(
numGpuDevices
,
0
);
}
char
*
prefXccStr
=
getenv
(
"XCC_PREF_TABLE"
);
if
(
prefXccStr
)
{
prefXccTable
.
resize
(
numGpuDevices
);
for
(
int
i
=
0
;
i
<
numGpuDevices
;
i
++
)
{
prefXccTable
[
i
].
resize
(
numGpuDevices
,
0
);
}
char
*
prefXccStr
=
getenv
(
"XCC_PREF_TABLE"
);
char
*
token
=
strtok
(
prefXccStr
,
","
);
int
tokenCount
=
0
;
while
(
token
)
...
...
@@ -580,7 +582,7 @@ public:
{
printf
(
"TransferBench v%s
\n
"
,
TB_VERSION
);
printf
(
"===============================================================
\n
"
);
if
(
!
hideEnv
)
printf
(
"[Common] (Suppress by setting HIDE_ENV=1)
\n
"
);
if
(
!
hideEnv
)
printf
(
"[Common]
(Suppress by setting HIDE_ENV=1)
\n
"
);
}
else
if
(
!
hideEnv
)
printf
(
"EnvVar,Value,Description,(TransferBench v%s)
\n
"
,
TB_VERSION
);
...
...
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