Skip to content

Commit

Permalink
Capture and print environment
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 11, 2024
1 parent c5f8813 commit cba2148
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/cuda/viewcopy/viewcopy.cu
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,15 @@ try
const auto gibs = 2.0 * prop.memoryClockRate * 1000.0 * (prop.memoryBusWidth / 8) / (1024.0 * 1024.0 * 1024.0);
fmt::print(
"Dataset size: {:5.1f}{} (x2)\nGMemory size: {:5.1f}{}\nMax bandwidth: {:5.1f}GiB/s\nSMs: {}\nMax threads "
"per SM: {}\n",
"per SM: {}\nEnv: {}\n",
dsize,
dunit,
gmsize,
gmunit,
gibs,
prop.multiProcessorCount,
prop.maxThreadsPerMultiProcessor);
prop.maxThreadsPerMultiProcessor,
common::captureEnv());
// const Size maxThreads = prop.multiProcessorCount * prop.maxThreadsPerMultiProcessor;

fmt::print("{:10} -> {:10} {:11} {:>10} {:>10} {:4}\n", "src", "dst", "alg", "ms", "GiB/s", "hash");
Expand Down

0 comments on commit cba2148

Please sign in to comment.