Unverified Commit b7215502 authored by gilbertlee-amd's avatar gilbertlee-amd Committed by GitHub
Browse files

Fixing SAMPLING_FACTOR (#26)

parent 8bdc113d
# 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
......
...@@ -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;
} }
} }
......
...@@ -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.20" #define TB_VERSION "1.21"
extern char const MemTypeStr[]; extern char const MemTypeStr[];
extern char const ExeTypeStr[]; extern char const ExeTypeStr[];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment