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
b7215502
Unverified
Commit
b7215502
authored
Apr 27, 2023
by
gilbertlee-amd
Committed by
GitHub
Apr 27, 2023
Browse files
Fixing SAMPLING_FACTOR (#26)
parent
8bdc113d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
CHANGELOG.md
CHANGELOG.md
+4
-0
src/TransferBench.cpp
src/TransferBench.cpp
+2
-2
src/include/EnvVars.hpp
src/include/EnvVars.hpp
+1
-1
No files found.
CHANGELOG.md
View file @
b7215502
# Changelog for TransferBench
# Changelog for TransferBench
## v1.21
### Fixed
-
Fixed bug with SAMPLING_FACTOR
## v1.20
## v1.20
### Fixed
### Fixed
-
VALIDATE_DIRECT can now be used with USE_PREP_KERNEL
-
VALIDATE_DIRECT can now be used with USE_PREP_KERNEL
...
...
src/TransferBench.cpp
View file @
b7215502
...
@@ -129,11 +129,11 @@ int main(int argc, char **argv)
...
@@ -129,11 +129,11 @@ int main(int argc, char **argv)
// Otherwise generate a range of values
// Otherwise generate a range of values
for
(
int
N
=
256
;
N
<=
(
1
<<
27
);
N
*=
2
)
for
(
int
N
=
256
;
N
<=
(
1
<<
27
);
N
*=
2
)
{
{
int
delta
=
std
::
max
(
32
,
N
/
ev
.
samplingFactor
);
int
delta
=
std
::
max
(
1
,
N
/
ev
.
samplingFactor
);
int
curr
=
N
;
int
curr
=
N
;
while
(
curr
<
N
*
2
)
while
(
curr
<
N
*
2
)
{
{
ExecuteTransfers
(
ev
,
++
testNum
,
N
,
transfers
);
ExecuteTransfers
(
ev
,
++
testNum
,
curr
,
transfers
);
curr
+=
delta
;
curr
+=
delta
;
}
}
}
}
...
...
src/include/EnvVars.hpp
View file @
b7215502
...
@@ -29,7 +29,7 @@ THE SOFTWARE.
...
@@ -29,7 +29,7 @@ THE SOFTWARE.
#include "Compatibility.hpp"
#include "Compatibility.hpp"
#include "Kernels.hpp"
#include "Kernels.hpp"
#define TB_VERSION "1.2
0
"
#define TB_VERSION "1.2
1
"
extern
char
const
MemTypeStr
[];
extern
char
const
MemTypeStr
[];
extern
char
const
ExeTypeStr
[];
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