Skip to content

Commit

Permalink
samples/hip-cuda: disable printfs on each kernel iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
franz committed May 9, 2023
1 parent d4d63ff commit 7436951
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion samples/hip-cuda/BinomialOption/BinomialOption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ BinomialOption::runKernels()

hipEventElapsedTime(&eventMs, start, stop);

printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);
// printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);

hipMemcpy(output, dout, samplesPerVectorWidth * sizeof(float4), hipMemcpyDeviceToHost);

Expand Down
2 changes: 1 addition & 1 deletion samples/hip-cuda/BitonicSort/BitonicSort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ BitonicSort::runKernels(void)

hipEventElapsedTime(&eventMs, start, stop);

printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);
// printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);
}
}
hipMemcpy(input, din,length * sizeof(unsigned int), hipMemcpyDeviceToHost);
Expand Down
2 changes: 1 addition & 1 deletion samples/hip-cuda/DCT/DCT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ DCT::runKernels(void)

hipEventElapsedTime(&eventMs, start, stop);

printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);
// printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);

hipMemcpy(output, dout,sizeof(float) * width * height, hipMemcpyDeviceToHost);

Expand Down
2 changes: 1 addition & 1 deletion samples/hip-cuda/FastWalshTransform/FastWalshTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ FastWalshTransform::runKernels(void)

hipEventElapsedTime(&eventMs, start, stop);

printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);
// printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);
}

hipMemcpy(output, din, length * sizeof(float), hipMemcpyDeviceToHost);
Expand Down
2 changes: 1 addition & 1 deletion samples/hip-cuda/FloydWarshall/FloydWarshall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ FloydWarshall::runKernels(void)

hipEventElapsedTime(&eventMs, start, stop);

printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);
//printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);
}


Expand Down
2 changes: 1 addition & 1 deletion samples/hip-cuda/dwtHaar1D/dwtHaar1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ int DwtHaar1D::runDwtHaar1DKernel()

hipEventElapsedTime(&eventMs, start, stop);

printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);
// printf ("kernel_time (hipEventElapsedTime) =%6.3fms\n", eventMs);

hipMemcpy(dOutData, dout, signalLength * sizeof(float), hipMemcpyDeviceToHost);
hipMemcpy(dPartialOutData, dpart, signalLength * sizeof(float), hipMemcpyDeviceToHost);
Expand Down

0 comments on commit 7436951

Please sign in to comment.