[StreamExecutor] Fix allocateDeviceMemory

Summary:
The return value from PlatformExecutor::allocateDeviceMemory needs to be
converted from Expected<GlobalDeviceMemoryBase> to
Expected<GlobalDeviceMemory<T>> in Executor::allocateDeviceMemory.

A similar bug is also fixed for Executor::allocateHostMemory.

Thanks to jprice for identifying this bug.

Reviewers: jprice, jlebar

Subscribers: parallel_libs-commits

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

llvm-svn: 279658
GitOrigin-RevId: 3053bbf3b27151b88f7ca87fb61d0610cdc9e4a8
2 files changed
tree: 32286fc2926e9e278c970a66be405c889e97d9a4
  1. streamexecutor/
  2. .arcconfig
  3. .clang-format
  4. README.rst