tool tracing control integration

Tento commit je obsažen v:
Evgeny
2019-10-09 10:56:19 -05:00
rodič 72b5494f0b
revize 9a5a603440
2 změnil soubory, kde provedl 92 přidání a 19 odebrání
+6
Zobrazit soubor
@@ -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);