forked from ROCm/rocAL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rocAL - External source reader (ROCm#83)
* tensor changes * Update Doxyfile * test updates * bug fixes * bug fix * adding image augemntation app changes * Minor changes * Add ROI structure Add support to process multidimension ROI * Add support to update multi dimension ROI * Fix build issues wrt ROI struct Add necessary ROI changes Add Union for ROI Add pybind changes to copy ROI * Minor change * Remove redundant code * Minor change * Minor changes * Modify struct names * Adding external source reader support to rocAL * ROCm Path - Options added (ROCm#73) * ROCm Path - Options added * Setup - use latest RPP * Remove strides in ROI * Change shape to end for ROICords * Fix crop dims in ssd random crop * Change ROI type to const in node.h * set mem handle with label buffer * change casting to c++ style * Address review comments * Remove external source label reader * Minor changes * Remove labels bool in loaders * Minor changes * Revert storage_type to type * Minor changes * Minor changes * Combine all the test modes in pytorch.py * Adding external source support to generic iterator * Adding readme for external source python examples * CMake Find - Half (ROCm#76) * Find - Half * Update rocAL-setup.py Install rapidJSON package * rocAL Setup - rapidJSON updates * Change copyright year * Resolving review comments * Prerequisites - Boost Removal (ROCm#71) * boost removal * file cleanup * gnu++17 * filesystem updated * Update README.md * Update filesystem.h * include fix * FindStdFilesystem * minor fix * modified .cmake * modification on cmake * minor fix * code cleanup * Multiple Inheritance in External Source Reader * Add the commit the pass the ROI as xywh structure * Increase the pqd * Put all the examples in a single file * Make minor changes from commit * Del remaining examples * Add changes for ROI * Remove the rocAL external source folder * Change the ROI struct of vectors to a vector of ROI structs and change the bool naming * Add NONE to Mode and Resize the size of the ROIxywh vector in cpp unit test * Remove the print statment * Pass the vectors as reference * Move the ExternalSourceMode to the right * Add const to pass vectors by reference and add one to one mapping in the example file * Some changes in the example file * Changes in example file * Minor changes in the test suite * Remove nchw_to_nhwc conversions * Fix warnings * Bracket Spacing * Removing boost includes and updating python example * Resolving review comments * Readme updates for external source tests * Adding API changes for external source and set_mem_handle * Reording the pybind for ROIxywh struct --------- Co-authored-by: LakshmiKumar23 <[email protected]> Co-authored-by: fgladwin <[email protected]> Co-authored-by: Kiriti Gowda <[email protected]> Co-authored-by: SundarRajan98 <[email protected]> Co-authored-by: Hansel Yang <[email protected]> Co-authored-by: Swetha B S <[email protected]> Co-authored-by: root <[email protected]> Co-authored-by: swetha097 <[email protected]>
- Loading branch information
1 parent
120df2c
commit 65ebdda
Showing
73 changed files
with
1,940 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
################################################################################ | ||
# | ||
# MIT License | ||
# | ||
# Copyright (c) 2023 Advanced Micro Devices, Inc. | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
# | ||
################################################################################ | ||
find_path(HALF_INCLUDE_DIRS | ||
NAMES half/half.hpp | ||
HINTS | ||
$ENV{HALF_DIR}/include | ||
$ENV{ROCM_PATH}/include | ||
PATHS | ||
${HALF_DIR}/include | ||
/usr/include | ||
/usr/local/include | ||
${ROCM_PATH}/include | ||
) | ||
mark_as_advanced(HALF_INCLUDE_DIRS) | ||
|
||
if(HALF_INCLUDE_DIRS) | ||
set(HALF_FOUND TRUE) | ||
endif( ) | ||
|
||
include( FindPackageHandleStandardArgs ) | ||
find_package_handle_standard_args( HALF | ||
FOUND_VAR HALF_FOUND | ||
REQUIRED_VARS | ||
HALF_INCLUDE_DIRS | ||
) | ||
|
||
set(HALF_FOUND ${HALF_FOUND} CACHE INTERNAL "") | ||
set(HALF_INCLUDE_DIRS ${HALF_INCLUDE_DIRS} CACHE INTERNAL "") | ||
|
||
if(HALF_FOUND) | ||
message("-- ${White}Using HALF -- \n\tIncludes:${HALF_INCLUDE_DIRS}${ColourReset}") | ||
else() | ||
if(HALF_FIND_REQUIRED) | ||
message(FATAL_ERROR "{Red}FindHALF -- NOT FOUND${ColourReset}") | ||
endif() | ||
message( "-- ${Yellow}NOTE: FindHALF failed to find -- half.hpp${ColourReset}" ) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
################################################################################ | ||
# | ||
# MIT License | ||
# | ||
# Copyright (c) 2023 Advanced Micro Devices, Inc. | ||
# | ||
# Permission is hereby granted, free of charge, to any person obtaining a copy | ||
# of this software and associated documentation files (the "Software"), to deal | ||
# in the Software without restriction, including without limitation the rights | ||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
# copies of the Software, and to permit persons to whom the Software is | ||
# furnished to do so, subject to the following conditions: | ||
# | ||
# The above copyright notice and this permission notice shall be included in all | ||
# copies or substantial portions of the Software. | ||
# | ||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
# SOFTWARE. | ||
# | ||
################################################################################ | ||
include(CheckCXXSourceCompiles) | ||
include(CMakePushCheckState) | ||
|
||
cmake_push_check_state(RESET) | ||
|
||
set(CMAKE_REQUIRED_FLAGS "-std=c++17") | ||
|
||
check_cxx_source_compiles(" | ||
#include <filesystem> | ||
int main() { | ||
std::filesystem::path p; | ||
return 0; | ||
} | ||
" STD_FILESYSTEM_PRESENT) | ||
|
||
cmake_pop_check_state() | ||
|
||
if(NOT STD_FILESYSTEM_PRESENT) | ||
cmake_push_check_state(RESET) | ||
set(CMAKE_REQUIRED_FLAGS "-std=c++17") | ||
|
||
check_cxx_source_compiles(" | ||
#include <experimental/filesystem> | ||
int main() { | ||
std::experimental::filesystem::path p; | ||
return 0; | ||
} | ||
" EXPERIMENTAL_FILESYSTEM_PRESENT) | ||
|
||
cmake_pop_check_state() | ||
endif() | ||
|
||
set(FILESYSTEM_FOUND TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.