Skip to content

Commit 82588b9

Browse files
authored
Remove timing code in CudaDeviceInterface.cpp (#771)
1 parent 486fd5c commit 82588b9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/torchcodec/_core/CudaDeviceInterface.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ void CudaDeviceInterface::convertAVFrameToFrameOutput(
227227
NppiSize oSizeROI = {width, height};
228228
Npp8u* input[2] = {avFrame->data[0], avFrame->data[1]};
229229

230-
auto start = std::chrono::high_resolution_clock::now();
231230
NppStatus status;
232231
if (avFrame->colorspace == AVColorSpace::AVCOL_SPC_BT709) {
233232
status = nppiNV12ToRGB_709CSC_8u_P2C3R(
@@ -253,12 +252,6 @@ void CudaDeviceInterface::convertAVFrameToFrameOutput(
253252
c10::cuda::getStreamFromExternal(nppGetStream(), device_.index());
254253
nppDoneEvent.record(nppStreamWrapper);
255254
nppDoneEvent.block(at::cuda::getCurrentCUDAStream());
256-
257-
auto end = std::chrono::high_resolution_clock::now();
258-
259-
std::chrono::duration<double, std::micro> duration = end - start;
260-
VLOG(9) << "NPP Conversion of frame height=" << height << " width=" << width
261-
<< " took: " << duration.count() << "us" << std::endl;
262255
}
263256

264257
// inspired by https://github.com/FFmpeg/FFmpeg/commit/ad67ea9

0 commit comments

Comments
 (0)