Skip to content

Commit

Permalink
Print global memory for alpaka devices
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 4, 2024
1 parent 6e53f52 commit a25149e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/common/env.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ namespace common
const auto devName = trim(getName(dev)); // TODO(bgruber): drop trim after fix lands in alpaka
const auto devProps = alpaka::getAccDevProps<Acc>(dev);
env += fmt::format(
"; alpaka acc: {}, dev[0]: {}, SMem: {}KiB",
"; alpaka acc: {}, dev[0]: {}, {}MiB GM, {}KiB SM",
accName,
devName,
alpaka::getMemBytes(dev) / 1024 / 1024,
devProps.m_sharedMemSizeBytes / 1024);
}
#endif
Expand Down

0 comments on commit a25149e

Please sign in to comment.