Step1 in staging buffer copy.

- use StagingBuffer class for copies.
- refactor g_device to use array rather than vector.
   (keeps pointers from moving).
这个提交包含在:
Ben Sander 于 2016-02-12 18:24:08 -06:00 提交
1 父节点 f464cedcf4
当前提交 90af462b85
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);
/**