HSA memory alloc/copy/free refactoring

[ROCm/rocprofiler commit: d04f7095f4]
此提交包含在:
Evgeny
2018-04-20 11:15:26 -05:00
父節點 12fbe76eab
當前提交 0a8e945d88
共有 10 個檔案被更改,包括 87 行新增36 行删除
+2 -2
查看文件
@@ -446,8 +446,8 @@ class Context {
else EXC_RAISING(HSA_STATUS_ERROR, "SQTT data out of output buffer");
}
hsa_status_t status = hsa_memory_copy(dest, src, size);
if (status == HSA_STATUS_SUCCESS) {
const bool suc = util::HsaRsrcFactory::CopyToHost(dest, src, size);
if (suc) {
*header = size;
callback_data->ptr = dest + align_size(size, sizeof(uint32_t));
rinfo->data.result_bytes.instance_count = sample_id + 1;