Skip to content

Commit

Permalink
v1.37 Fixing token error, enabling single-stream mode by default (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertlee-amd authored Nov 24, 2023
1 parent 08997e8 commit 9e3a04c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 11 additions & 9 deletions src/include/EnvVars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ THE SOFTWARE.
#include "Compatibility.hpp"
#include "Kernels.hpp"

#define TB_VERSION "1.36"
#define TB_VERSION "1.37"

extern char const MemTypeStr[];
extern char const ExeTypeStr[];
Expand Down Expand Up @@ -190,7 +190,7 @@ class EnvVars
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);
Expand Down Expand Up @@ -351,13 +351,15 @@ class EnvVars
}

// 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)
Expand Down Expand Up @@ -580,7 +582,7 @@ class EnvVars
{
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);
Expand Down

0 comments on commit 9e3a04c

Please sign in to comment.