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
9c2ecae2
Unverified
Commit
9c2ecae2
authored
Oct 19, 2023
by
gilbertlee-amd
Committed by
GitHub
Oct 19, 2023
Browse files
v1.32 - Increasing line limit from 2048 to 32768 (#60)
parent
79a3a003
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
CHANGELOG.md
CHANGELOG.md
+4
-0
src/TransferBench.cpp
src/TransferBench.cpp
+3
-3
src/include/EnvVars.hpp
src/include/EnvVars.hpp
+1
-1
src/include/TransferBench.hpp
src/include/TransferBench.hpp
+2
-0
No files found.
CHANGELOG.md
View file @
9c2ecae2
# Changelog for TransferBench
## v1.32
### Modified
-
Increased line limit from 2048 to 32768
## v1.31
### Modified
-
SHOW_ITERATIONS now show XCC:CU instead of just CU ID
...
...
src/TransferBench.cpp
View file @
9c2ecae2
...
...
@@ -130,7 +130,7 @@ int main(int argc, char **argv)
for
(
int
i
=
3
;
i
<
argc
;
i
++
)
cmdlineTransfer
+=
std
::
string
(
argv
[
i
])
+
" "
;
char
line
[
2048
];
char
line
[
MAX_LINE_LEN
];
sprintf
(
line
,
"%s"
,
cmdlineTransfer
.
c_str
());
std
::
vector
<
Transfer
>
transfers
;
ParseTransfers
(
line
,
ev
.
numCpuDevices
,
ev
.
numGpuDevices
,
transfers
);
...
...
@@ -176,8 +176,8 @@ int main(int argc, char **argv)
}
int
testNum
=
0
;
char
line
[
2048
];
while
(
fgets
(
line
,
2048
,
fp
))
char
line
[
MAX_LINE_LEN
];
while
(
fgets
(
line
,
MAX_LINE_LEN
,
fp
))
{
// Check if line is a comment to be echoed to output (starts with ##)
if
(
!
ev
.
outputToCsv
&&
line
[
0
]
==
'#'
&&
line
[
1
]
==
'#'
)
printf
(
"%s"
,
line
);
...
...
src/include/EnvVars.hpp
View file @
9c2ecae2
...
...
@@ -29,7 +29,7 @@ THE SOFTWARE.
#include "Compatibility.hpp"
#include "Kernels.hpp"
#define TB_VERSION "1.3
1
"
#define TB_VERSION "1.3
2
"
extern
char
const
MemTypeStr
[];
extern
char
const
ExeTypeStr
[];
...
...
src/include/TransferBench.hpp
View file @
9c2ecae2
...
...
@@ -51,6 +51,8 @@ THE SOFTWARE.
// Simple configuration parameters
size_t
const
DEFAULT_BYTES_PER_TRANSFER
=
(
1
<<
26
);
// Amount of data transferred per Transfer
#define MAX_LINE_LEN 32768
// Different src/dst memory types supported
typedef
enum
{
...
...
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