tool tracing control integration

This commit is contained in:
Evgeny
2019-10-09 10:56:19 -05:00
parent 72b5494f0b
commit 9a5a603440
2 changed files with 92 additions and 19 deletions
+6
View File
@@ -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);