Skip to content

Commit

Permalink
revert incorrect changes happened with merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sampath1117 committed Mar 7, 2024
1 parent fd12b3a commit e7c82a0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
3 changes: 1 addition & 2 deletions utilities/test_suite/HIP/runTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""

import os
import sys
sys.dont_write_bytecode = True
Expand Down Expand Up @@ -531,4 +530,4 @@ def rpp_test_suite_parser_and_validator():
checkFile = os.path.isfile(qaFilePath)
if checkFile:
print("---------------------------------- Results of QA Test - Tensor_hip ----------------------------------\n")
print_qa_tests_summary(qaFilePath, supportedCaseList, nonQACaseList)
print_qa_tests_summary(qaFilePath, supportedCaseList, nonQACaseList)
20 changes: 14 additions & 6 deletions utilities/test_suite/HOST/Tensor_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,16 @@ int main(int argc, char **argv)
// Uncomment to run test case with an xywhROI override
// roi.xywhROI = {0, 0, 25, 25};
// set_roi_values(&roi, roiTensorPtrSrc, roiTypeSrc, batchSize);
// update_dst_sizes_with_roi(roiTensorPtrSrc, dstImgSizes, roiTypeSrc, batchSize);

// Uncomment to run test case with an ltrbROI override
// roiTypeSrc = RpptRoiType::LTRB;
// convert_roi(roiTensorPtrSrc, roiTypeSrc, batchSize);
// update_dst_sizes_with_roi(roiTensorPtrSrc, dstImgSizes, roiTypeSrc, batchSize);

for (int perfRunCount = 0; perfRunCount < numRuns; perfRunCount++)
{
clock_t startCpuTime, endCpuTime;
double startWallTime, endWallTime;
switch (testCase)
{
Expand Down Expand Up @@ -703,8 +711,8 @@ int main(int argc, char **argv)

for (i = 0; i < batchSize; i++)
{
cropRoi[i].xywhROI.xy.x = patchRoi[i].xywhROI.xy.x = roiListBatch[0];
cropRoi[i].xywhROI.xy.y = patchRoi[i].xywhROI.xy.y = roiListBatch[1];
cropRoi[i].xywhROI.xy.x = patchRoi[i].xywhROI.xy.x = roiList[0];
cropRoi[i].xywhROI.xy.y = patchRoi[i].xywhROI.xy.y = roiList[1];
cropRoi[i].xywhROI.roiWidth = patchRoi[i].xywhROI.roiWidth = roiWidthList[i];
cropRoi[i].xywhROI.roiHeight = patchRoi[i].xywhROI.roiHeight = roiHeightList[i];
}
Expand All @@ -724,8 +732,8 @@ int main(int argc, char **argv)

for (i = 0; i < batchSize; i++)
{
roiTensorPtrDst[i].xywhROI.xy.x = roiListBatch[0];
roiTensorPtrDst[i].xywhROI.xy.y = roiListBatch[1];
roiTensorPtrDst[i].xywhROI.xy.x = roiList[0];
roiTensorPtrDst[i].xywhROI.xy.y = roiList[1];
dstImgSizes[i].width = roiTensorPtrDst[i].xywhROI.roiWidth = roiWidthList[i];
dstImgSizes[i].height = roiTensorPtrDst[i].xywhROI.roiHeight = roiHeightList[i];
}
Expand Down Expand Up @@ -780,8 +788,8 @@ int main(int argc, char **argv)

for (i = 0; i < batchSize; i++)
{
roiTensorPtrDst[i].xywhROI.xy.x = roiListBatch[0];
roiTensorPtrDst[i].xywhROI.xy.y = roiListBatch[1];
roiTensorPtrDst[i].xywhROI.xy.x = roiList[0];
roiTensorPtrDst[i].xywhROI.xy.y = roiList[1];
dstImgSizes[i].width = roiTensorPtrDst[i].xywhROI.roiWidth = roiWidthList[i];
dstImgSizes[i].height = roiTensorPtrDst[i].xywhROI.roiHeight = roiHeightList[i];
}
Expand Down
4 changes: 0 additions & 4 deletions utilities/test_suite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ python runTests.py --case_start 0 --case_end 89 --test_type 0 --qa_mode 1 --batc
``` python
python runTests.py --case_list 21 36 63 --test_type 1 --qa_mode 1 --batch_size 8 --num_runs 100
```
- QA mode (Performance tests) - Tolerance based PASS/FAIL tests for RPP HIP/HOST functionalities checking achieved improvement in performance percentage over BatchPD versions after comparison to a threshold percentage of improvement
``` python
python runTests.py --case_list 21 36 63 --test_type 1 --qa_mode 1 --batch_size 8 --num_runs 100
```
- Unit test mode - Unit tests allowing users to pass a path to a folder containing images, to execute the desired functionality and variant once, report RPP execution wall time, save and view output images
Note: For testcase 82(RICAP) Please use images of same resolution and Batchsize > 1
RICAP dataset path: rpp/utilities/test_suite/TEST_IMAGES/three_images_150x150_src1
Expand Down
7 changes: 0 additions & 7 deletions utilities/test_suite/rpp_test_suite_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,6 @@ std::map<int, std::vector<int>> TensorSumReferenceOutputs =
{3, {348380, 340992, 262616, 951988, 1056552, 749506, 507441, 2313499, 2170646, 2732368, 3320699, 8223713}}
};

// Golden outputs for Tensor sum Kernel
std::map<int, std::vector<Rpp64u>> TensorSumReferenceOutputs =
{
{1, {334225, 813471, 2631125}},
{3, {348380, 340992, 262616, 951988, 1056552, 749506, 507441, 2313499, 2170646, 2732368, 3320699, 8223713}}
};

template <typename T>
inline T validate_pixel_range(T pixel)
{
Expand Down

0 comments on commit e7c82a0

Please sign in to comment.