Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Documentation for TransferBench is available at
[https://rocm.docs.amd.com/projects/TransferBench](https://rocm.docs.amd.com/projects/TransferBench).

## v1.69.00
### Fixed
- Fix for non-zero byte offsets used with DMA executor

## v1.68.00
### Fixed
- Improper draining of writes that could artificially inflate transfer timing
Expand Down
2 changes: 1 addition & 1 deletion src/client/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void DisplayVersion()
#ifndef TB_GIT_COMMIT
#define TB_GIT_COMMIT "unknown"
#endif
Print("TransferBench v%s.%s (%s:%s)%s%s\n", VERSION, CLIENT_VERSION, TB_GIT_BRANCH, TB_GIT_COMMIT, support.c_str(), multiNodeMode.c_str());
Print("TransferBench v%s.%sC (%s:%s)%s%s\n", VERSION, CLIENT_VERSION, TB_GIT_BRANCH, TB_GIT_COMMIT, support.c_str(), multiNodeMode.c_str());
Comment thread
gilbertlee-amd marked this conversation as resolved.
Print("=============================================================================================================\n");
}

Expand Down
20 changes: 12 additions & 8 deletions src/header/TransferBench.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ namespace TransferBench
using std::set;
using std::vector;

constexpr char VERSION[] = "1.68";
constexpr char VERSION[] = "1.69";

/**
* Enumeration of supported Executor types
Expand Down Expand Up @@ -5507,6 +5507,8 @@ static bool IsConfiguredGid(union ibv_gid const& gid)
int numDsts = (int)resources.dstMem.size();
ERR_CHECK(hipSetDevice(exeIndex));
int subIterations = 0;
size_t const initOffset = cfg.data.byteOffset / sizeof(float);
float* const src = resources.srcMem[0] + initOffset;
if (!useSubIndices && !cfg.dma.useHsaCopy) {
if (cfg.dma.useHipEvents)
ERR_CHECK(hipEventRecord(startEvent, stream));
Expand All @@ -5520,12 +5522,13 @@ static bool IsConfiguredGid(union ibv_gid const& gid)
do {
// Queue for each output location
for (int dstIdx = 0; dstIdx < numDsts; dstIdx++) {
float* const dst = resources.dstMem[dstIdx] + initOffset;
#if defined(CUMEM_ENABLED)
ERR_CHECK(cuMemcpyAsync((CUdeviceptr)resources.dstMem[dstIdx],
(CUdeviceptr)resources.srcMem[0],
ERR_CHECK(cuMemcpyAsync((CUdeviceptr)dst,
(CUdeviceptr)src,
resources.numBytes, stream));
#else
ERR_CHECK(hipMemcpyAsync(resources.dstMem[dstIdx], resources.srcMem[0], resources.numBytes,
ERR_CHECK(hipMemcpyAsync(dst, src, resources.numBytes,
memcpyKind, stream));
#endif
}
Expand All @@ -5542,14 +5545,15 @@ static bool IsConfiguredGid(union ibv_gid const& gid)
do {
hsa_signal_store_screlease(resources.signal, numDsts);
for (int dstIdx = 0; dstIdx < numDsts; dstIdx++) {
float* const dst = resources.dstMem[dstIdx] + initOffset;
if (!useSubIndices) {
ERR_CHECK(hsa_amd_memory_async_copy(resources.dstMem[dstIdx], resources.dstAgent[dstIdx],
resources.srcMem[0], resources.srcAgent,
ERR_CHECK(hsa_amd_memory_async_copy(dst, resources.dstAgent[dstIdx],
src, resources.srcAgent,
resources.numBytes, 0, NULL,
resources.signal));
} else {
HSA_CALL(hsa_amd_memory_async_copy_on_engine(resources.dstMem[dstIdx], resources.dstAgent[dstIdx],
resources.srcMem[0], resources.srcAgent,
HSA_CALL(hsa_amd_memory_async_copy_on_engine(dst, resources.dstAgent[dstIdx],
src, resources.srcAgent,
resources.numBytes, 0, NULL,
resources.signal,
resources.sdmaEngineId, true));
Expand Down
Loading