Changes to support legacy tests in MIVisionX#429
Changes to support legacy tests in MIVisionX#429r-abishek merged 13 commits intor-abishek:ar/legacy_support_flagfrom
Conversation
r-abishek
left a comment
There was a problem hiding this comment.
@Srihari-mcw Pls address comments
| typedef enum | ||
| { | ||
| RPPI_CHN_PLANAR, | ||
| RPPI_CHN_PACKED |
There was a problem hiding this comment.
Can we not touch rppdefs.h and add this too into the same newly-created folder "legacy_dep", so the whole thing can be deleted later?
There was a problem hiding this comment.
Hi @r-abishek ,
The RppiChnFormat structure is used across all kernels in legacy_dep folder, so it might not be possible to enclose it within one of the kernel.
One possible option is to introduce a separate common header file for legacy_dep folder and introduce it there - Might not be able to move the structure into existing imports because of the following reasons
The headers are isolated for hip and host and even in the common headers, the purpose of the headers (Eg - handle.hpp) seems to be different
Considering this I have kept it in the same file. Thanks - Pls do let me know if I need to make any changes further w.r.t this
|
Hi @r-abishek , The review comments were addressed. Thanks |
|
|
||
| #include "host_legacy_executors.hpp" | ||
|
|
||
| #define saturate_8u(value) ((value) > 255 ? 255 : ((value) < 0 ? 0 : (value))) |
There was a problem hiding this comment.
Have persisted with this change - saturate_8u because this is defined in similar way in other kernels as well in batch pd
|
Squash and merge to ensure easy revert if needed. |
* Add updates to separate out Legacy Batch PD Support for RPP * Further changes to separate build for batchpd * Make changes to have add_kernels and add_kernel_includes only for Batch PD * Further changes to restore changes in hiperrors.cpp * Separate out batch pd code in rppi_validate.hpp * Update usage of RPP_LEGACY_SUPPORT * Add condition for OpenCL backend when Legacy Support is Disabled * More updates to CMakeLists.txt to selectively build based on RPP_LEGACY_SUPPORT * Changes to rppdefs.h * Remove whitespaces * Remove two more blank lines * Changes to enclose profiling functions and print function of handle inside RPP_LEGACY_SUPPORT * Additional cleanup * Remove empty line * Rename RpptPoint to RpptPoint2D * Rename files to handle_hip.cpp and handle_host.cpp * Move hiperrors content to errors.hpp * Remove hiperrors.cpp in CMakeLists.txt * Make hip error function inline * Add updates to Add RPP_LEGACY_SUPPORT flag to Batch PD Test Suite * Update minor version * Modify flag to LEGACY_SUPPORT * Add separate file for legacy support for RPP * Restore minor version * Changes to support legacy tests in MIVisionX (#429) Updates to support legacy tests in MIVisionX: - Reintroduction of typedef enum RppiChnFormat in rppdefs.h. - Include "rppi_legacy_augmentations.h" in "rppt.h" temporarily. - #ifdef LEGACY_SUPPORT flags in rppi_validate.hpp. - Creation of new folder src/include/legacy_dep and 2 hpp files added. - Creation of new folder src/modules/legacy_dep and 2 cpp files added. - CMakeLists changes for successful builds. Commits: * Add legacy_dep folder to add legacy code dependencies for MIVisionX * Add rppi_legacy_augmentations.h * Move files for include with src/include/legacy_dep * Make changes to fix issues with build * Add legacy support flag to rppi_validate.hpp * Add updates for hue and saturation * Fix issues for hue and saturation * Address review comments - 1 * Add licensing details and clear whitespace * Add comments to CMakeLists.txt * Add comments to CMakeLists.txt * Make updates to not support PLN variant for hue and saturation * Add additional comment * Updates to print message for LEGACY SUPPORT in CMake * Remove the additional setting of RPP_LEGACY_SUPPORT * Update RPP Version to 2.1.0 * Restore version to 2.0.0 * Remove empty line --------- Co-authored-by: Srihari-mcw <srihari@multicorewareinc.com> Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com> Co-authored-by: Srihari-mcw <96763064+Srihari-mcw@users.noreply.github.com> Co-authored-by: Lakshmi Kumar <lakshmi.kumar@amd.com>
…ek#548) * Add updates to separate out Legacy Batch PD Support for RPP * Further changes to separate build for batchpd * Make changes to have add_kernels and add_kernel_includes only for Batch PD * Further changes to restore changes in hiperrors.cpp * Separate out batch pd code in rppi_validate.hpp * Update usage of RPP_LEGACY_SUPPORT * Add condition for OpenCL backend when Legacy Support is Disabled * More updates to CMakeLists.txt to selectively build based on RPP_LEGACY_SUPPORT * Changes to rppdefs.h * Remove whitespaces * Remove two more blank lines * Changes to enclose profiling functions and print function of handle inside RPP_LEGACY_SUPPORT * Additional cleanup * Remove empty line * Rename RpptPoint to RpptPoint2D * Rename files to handle_hip.cpp and handle_host.cpp * Move hiperrors content to errors.hpp * Remove hiperrors.cpp in CMakeLists.txt * Make hip error function inline * Add updates to Add RPP_LEGACY_SUPPORT flag to Batch PD Test Suite * Update minor version * Modify flag to LEGACY_SUPPORT * Add separate file for legacy support for RPP * Restore minor version * Changes to support legacy tests in MIVisionX (r-abishek#429) Updates to support legacy tests in MIVisionX: - Reintroduction of typedef enum RppiChnFormat in rppdefs.h. - Include "rppi_legacy_augmentations.h" in "rppt.h" temporarily. - #ifdef LEGACY_SUPPORT flags in rppi_validate.hpp. - Creation of new folder src/include/legacy_dep and 2 hpp files added. - Creation of new folder src/modules/legacy_dep and 2 cpp files added. - CMakeLists changes for successful builds. Commits: * Add legacy_dep folder to add legacy code dependencies for MIVisionX * Add rppi_legacy_augmentations.h * Move files for include with src/include/legacy_dep * Make changes to fix issues with build * Add legacy support flag to rppi_validate.hpp * Add updates for hue and saturation * Fix issues for hue and saturation * Address review comments - 1 * Add licensing details and clear whitespace * Add comments to CMakeLists.txt * Add comments to CMakeLists.txt * Make updates to not support PLN variant for hue and saturation * Add additional comment * Updates to print message for LEGACY SUPPORT in CMake * Remove the additional setting of RPP_LEGACY_SUPPORT * Update RPP Version to 2.1.0 * Restore version to 2.0.0 * Remove empty line --------- Co-authored-by: Srihari-mcw <srihari@multicorewareinc.com> Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com> Co-authored-by: Srihari-mcw <96763064+Srihari-mcw@users.noreply.github.com> Co-authored-by: Lakshmi Kumar <lakshmi.kumar@amd.com>
Updates to support legacy tests in MIVisionX: