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

v1.32 - Increasing line limit from 2048 to 32768 (#60)

parent 79a3a003
# Changelog for TransferBench # Changelog for TransferBench
## v1.32
### Modified
- Increased line limit from 2048 to 32768
## v1.31 ## v1.31
### Modified ### Modified
- SHOW_ITERATIONS now show XCC:CU instead of just CU ID - SHOW_ITERATIONS now show XCC:CU instead of just CU ID
......
...@@ -130,7 +130,7 @@ int main(int argc, char **argv) ...@@ -130,7 +130,7 @@ int main(int argc, char **argv)
for (int i = 3; i < argc; i++) for (int i = 3; i < argc; i++)
cmdlineTransfer += std::string(argv[i]) + " "; cmdlineTransfer += std::string(argv[i]) + " ";
char line[2048]; char line[MAX_LINE_LEN];
sprintf(line, "%s", cmdlineTransfer.c_str()); sprintf(line, "%s", cmdlineTransfer.c_str());
std::vector<Transfer> transfers; std::vector<Transfer> transfers;
ParseTransfers(line, ev.numCpuDevices, ev.numGpuDevices, transfers); ParseTransfers(line, ev.numCpuDevices, ev.numGpuDevices, transfers);
...@@ -176,8 +176,8 @@ int main(int argc, char **argv) ...@@ -176,8 +176,8 @@ int main(int argc, char **argv)
} }
int testNum = 0; int testNum = 0;
char line[2048]; char line[MAX_LINE_LEN];
while(fgets(line, 2048, fp)) while(fgets(line, MAX_LINE_LEN, fp))
{ {
// Check if line is a comment to be echoed to output (starts with ##) // Check if line is a comment to be echoed to output (starts with ##)
if (!ev.outputToCsv && line[0] == '#' && line[1] == '#') printf("%s", line); if (!ev.outputToCsv && line[0] == '#' && line[1] == '#') printf("%s", line);
......
...@@ -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.31" #define TB_VERSION "1.32"
extern char const MemTypeStr[]; extern char const MemTypeStr[];
extern char const ExeTypeStr[]; extern char const ExeTypeStr[];
......
...@@ -51,6 +51,8 @@ THE SOFTWARE. ...@@ -51,6 +51,8 @@ THE SOFTWARE.
// Simple configuration parameters // Simple configuration parameters
size_t const DEFAULT_BYTES_PER_TRANSFER = (1<<26); // Amount of data transferred per Transfer 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 // Different src/dst memory types supported
typedef enum typedef enum
{ {
......
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