[SE] Add getByteCount methods for device memory

Summary:
Simple utility methods will prevent users from making mistakes when
converting element counts to byte counts.

Reviewers: jlebar

Subscribers: jprice, parallel_libs-commits

Differential Revision: https://reviews.llvm.org/D24197

llvm-svn: 280563
GitOrigin-RevId: 3956b2840be0999c16736a852e85006c9a939ddd
2 files changed
tree: 0250de9acb1a4f28fd7f6c64f13557a616d449a7
  1. streamexecutor/
  2. .arcconfig
  3. .clang-format
  4. README.rst