[StreamExecutor] Read dev array directly in test
authorJason Henline <jhen@google.com>
Thu, 1 Sep 2016 23:27:39 +0000 (23:27 +0000)
committerJason Henline <jhen@google.com>
Thu, 1 Sep 2016 23:27:39 +0000 (23:27 +0000)
commite091f8e814fec8bca64af7fa245edd35c6d15a68
tree6a58bb7c5f23655d19358a08c65e5588947d7612
parentddd0c125e36808cd56bf434ee38125d464331a78
[StreamExecutor] Read dev array directly in test

Summary:
Step 2 of getting GlobalDeviceMemory to own its handle.

Use the SimpleHostPlatformDevice allocate methods to create device
arrays for tests, and check for successful copies by dereferncing the
device array handle directly because we know it is really a host
pointer.

Reviewers: jlebar

Subscribers: jprice, parallel_libs-commits

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

llvm-svn: 280428
parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp
parallel-libs/streamexecutor/lib/unittests/SimpleHostPlatformDevice.h
parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp