Step1 in staging buffer copy.

- use StagingBuffer class for copies.
- refactor g_device to use array rather than vector.
   (keeps pointers from moving).


[ROCm/clr commit: 90af462b85]
이 커밋은 다음에 포함됨:
Ben Sander
2016-02-12 04:30:09 -06:00
부모 5978d5f372
커밋 89e461988e
6개의 변경된 파일188개의 추가작업 그리고 45개의 파일을 삭제
+4 -4
파일 보기
@@ -22,8 +22,8 @@ struct AmPointerInfo {
bool _isInDeviceMem; ///< Memory is physically resident on a device (if false, memory is located on host)
bool _isAmManaged; ///< Memory was allocated by AM and should be freed when am_reset is called.
int _appId; ///< App-specific storage. Used by HIP to store deviceID.
unsigned _appAllocationFlags; ///< App-specific allocation flags. Used by HIP to store allocation flags.
int _appId; ///< App-specific storage. (Used by HIP to store deviceID.)
unsigned _appAllocationFlags; ///< App-specific allocation flags. (Used by HIP to store allocation flags.)
AmPointerInfo() {};
@@ -91,7 +91,7 @@ am_status_t AM_copy(void* dst, const void* src, size_t size);
*
* @see AM_memtracker_add,
*/
am_status_t am_memtracker_getinfo(hc::AmPointerInfo *info, void *ptr);
am_status_t am_memtracker_getinfo(hc::AmPointerInfo *info, const void *ptr);
//TODO-doc
@@ -99,7 +99,7 @@ am_status_t am_memtracker_add(void* ptr, size_t sizeBytes, hc::accelerator acc,
//TODO-doc
am_status_t am_memtracker_update(void* ptr, int appId, unsigned allocationFlags);
am_status_t am_memtracker_update(const void* ptr, int appId, unsigned allocationFlags);
/**