Skip to content

Commit afa8b77

Browse files
committed
Start debugging TP
1 parent bc7e03a commit afa8b77

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

GPU/GPUbenchmark/cuda/Kernels.cu

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,10 @@ void GPUbenchmark<chunk_t>::readConcurrent(SplitLevel sl, int nRegions)
480480
1, // single Block
481481
nThreads,
482482
capacity);
483-
for (auto iResult{0}; iResult < results.size(); ++iResult) {
483+
std::cout << " │ · Per chunk throughput:\n" for (auto iResult{0}; iResult < results.size(); ++iResult)
484+
{
485+
auto throughput = 1e3 * capacity * sizeof(chunk_t) / (results[iResult] * GB * nState.getNKernelLaunches());
486+
std::cout << " │ ├ " << iResult << "/" << results.size() << ": \e[1m" << throughput << " GB/s \e[0m (" << results[iResult] << " ms)\n";
484487
mResultWriter.get()->storeBenchmarkEntry(Test::Read, iResult, results[iResult], mState.chunkReservedGB, mState.getNKernelLaunches());
485488
}
486489
mResultWriter.get()->snapshotBenchmark();
@@ -506,7 +509,10 @@ void GPUbenchmark<chunk_t>::readConcurrent(SplitLevel sl, int nRegions)
506509
nBlocks,
507510
nThreads,
508511
capacity);
512+
std::cout << " │ · Per chunk throughput:\n";
509513
for (auto iResult{0}; iResult < results.size(); ++iResult) {
514+
auto throughput = 1e3 * capacity * sizeof(chunk_t) / (results[iResult] * GB * nState.getNKernelLaunches());
515+
std::cout << " │ ├ " << iResult << "/" << results.size() << ": \e[1m" << throughput << " GB/s \e[0m (" << results[iResult] << " ms)\n";
510516
mResultWriter.get()->storeBenchmarkEntry(Test::Read, iResult, results[iResult], mState.chunkReservedGB, mState.getNKernelLaunches());
511517
}
512518
mResultWriter.get()->snapshotBenchmark();

0 commit comments

Comments
 (0)