Skip to content

Commit 0bd76bb

Browse files
committed
[dl-cifar] Comment out redundant host upsampling
This is already commented out in other places, but one was missed. The redundant upsampling on the host introduces large host overhead in the measured computation times and skews the comparison between offload programming models.
1 parent a777a86 commit 0bd76bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dl-cifar/common/vit/vit.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ namespace dl_cifar::common {
181181
ImageProcessor::resize(langHandle, d_cifarRawImgs, d_resizedImgs, selectedVitParams.batchSize,
182182
VitConfigs::cifarNoOfChannels, VitConfigs::cifarImgWidth, VitConfigs::cifarImgWidth,
183183
selectedVitParams.imgWidth, selectedVitParams.imgHeight);
184-
ImageProcessor::resizeInHost(langHandle, h_cifarRawImgs, h_resizedImgs, selectedVitParams.batchSize,
185-
VitConfigs::cifarNoOfChannels, VitConfigs::cifarImgWidth, VitConfigs::cifarImgWidth,
186-
selectedVitParams.imgWidth, selectedVitParams.imgHeight);
187-
langHandle->memCpyH2D(d_resizedImgs, h_resizedImgs, sizeof(float) * resizedSize, true);
184+
// ImageProcessor::resizeInHost(langHandle, h_cifarRawImgs, h_resizedImgs, selectedVitParams.batchSize,
185+
// VitConfigs::cifarNoOfChannels, VitConfigs::cifarImgWidth, VitConfigs::cifarImgWidth,
186+
// selectedVitParams.imgWidth, selectedVitParams.imgHeight);
187+
// langHandle->memCpyH2D(d_resizedImgs, h_resizedImgs, sizeof(float) * resizedSize, true);
188188

189189

190190

0 commit comments

Comments
 (0)