tool tracing control integration

这个提交包含在:
Evgeny 于 2019-10-09 10:56:19 -05:00 提交
1 父节点 72b5494f0b
当前提交 9a5a603440
2 个文件已更改
+92 -19

没有与搜索条件相匹配的文件

+6
查看文件
@@ -82,6 +82,10 @@ int main() {
hipMalloc((void**)&gpuMatrix, NUM * sizeof(float));
hipMalloc((void**)&gpuTransposeMatrix, NUM * sizeof(float));
uint32_t iterations = 100;
while (iterations-- > 0) {
std::cout << "## Iteration (" << iterations << ") #################" << std::endl;
// Memory transfer from host to device
hipMemcpy(gpuMatrix, Matrix, NUM * sizeof(float), hipMemcpyHostToDevice);
@@ -112,6 +116,8 @@ int main() {
printf("PASSED!\n");
}
}
// free the resources on device side
hipFree(gpuMatrix);
hipFree(gpuTransposeMatrix);