Skip to content

Commit

Permalink
rocAL - fix bug in rocal video unit-test failure (#1076)
Browse files Browse the repository at this point in the history
* rocAL - remove shuffle_time from rocal timing (#1063)

* rocAL - pyBind build changes (#1054)

* Video Reader Python API change (#1033)

* Fix Video Reader Resize Python end

* Fix Video Reader Resize Python end

* Adjust spacing

---------

Co-authored-by: root <root@ixt-sjc2-52.local.lan>

* rocAL - adding generic plugin for GPU support  (#1034)

* Linux - Distro Docker Support (#1027)

* Linux - Distro Docker Support

* LinuX Dockers - RHEL 8 Fix

* Test - Updates

* rocAL - cmn fix (#1024)

* rocAL: Classification Training Related changes (#1001)

* Zen DNN - Docker & Tests (#924)

* Zen DNN - Docker Updates

* Zen DNN - Sample Updates

* Codacy - Fix

* Zen DNN - Cleanup

* Zen DNN - single layer sample

* Rocal Updates (#921)

* rocal updates for tf training

* updates for rocal

* tf updates and pytorch bug fixes

* repo name change

* Update README.md

* dockerfile update

* [rocAL] Fix rocAL Pybind build issue.

* [rocAL] Remove unused function in pipeline.

* [rocAL] Change rocAL pybind installation from setup.py to wheel.
setup.py install is deprecated in python 3.9

* [rocAL] Make TF pets example dataset compatible with tf2.

* [rocAL] Change getImageLabels() compatible with tf.

* [rocAL] Add fix to pick wheel from dist installation folder.
Remove the old installation files in conda environment.

* [rocAL] Remove commented statement.

Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>

* Docker Update (#928)

* turboJPEG version update

* turboJPEG version update

* turboJPEG version update

* TurboJPEG version update

* Update mivisionx-opencl-on-ubuntu20.dockerfile

* Update zenDNN-HIP.dockerfile

* Update level-5.dockerfile

* Update level-5.dockerfile

* Zen DNN Updates Sync

Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>

* AMD OpenVX Custom Extension - implementation (#925)

* custom node implementation files

* fix build errors

* custom extension changes for working implementation

* add README and documentation

* update readme

* fix codacy issues and CPU flow

* fix cadacy warning

* Addressed review comments

* minor change

* fix formating

* amd_migraphx - update readme for extension (#929)

* amd_custom - fixes build issue (#935)

* fixes build issue

* Update CMakeLists.txt

* migraphx extension - update the readme(#936)

* vx_amd_migraphx - tests (#923)

* batch size support for migraphx

* changing to accept tensors of all batch sizes

* creates file with results

* bug fix

* changes to singular test cases - mnist and resnet50

* readme updates

* resolving PR comments

* resolving PR comments

* resolving PR comments

* Readme update to reflect tot

* formatting

* fixing typo

* readme update

* readme update

* OpenVX HIP backend - report correct number of CUs for gfx10+ in the logs (#930)

* Add API to get reader config and decoder config

* Add API to obtain max and min aspect ratio from image source evaluator

* Add scaling modes support

Add support to pass the resize scaling modes
Add support to calculate the normalized crop

* Minor change

* Remove crop parameters and related changes for resize

* Fix segmentation fault

* Fix error with resize modes

* MInor fix : update tensor ROI

* Minor fix - center crop

* Update the python API for resize with scaling modes and interpolation param

* Minor changes

* Minor changes

* Minor change

* Remove center crop related changes

* Remove redundant max size check

* Remove crop param from node resize

* Remove source evaluator

* Minor fix

* Remove the get decoder and reader config API

* Remove aspect ratio calculations in source evaluator

* Remove decoder and reader config variables

Remove crop related changes

* Remove decoder and reader config variables

Remove crop related changes

* Minor fix for max size

* Code clean up

* Minor change

* Minor changes

* Minor changes

* Minor change

* Fix python codacy warnings

* Minor codacy fix

* Revert "Minor codacy fix"

This reverts commit df1dd28.

* Minor change

* Minor code changes

* Remove API to get max width and height for resize node

* Minor fix

* Minor changes

* Working Image Classification Chnages

* Working Image Classification USER GIVEN PARAMS

* Add changes in types.py

* 1. Code clean up
2. Centre Crop bug fix

* Code Clean Up

* Add centre_crop changes

* ResizeTensor addition

* Minor changes in PR

* ResizeTensor.cpp - Removing OpenCL backend support

* Code Clean Up

* Resolving internal PR comments

* Resolve the internal review comments -2

* Reesolve build error

* runVisionTest - add a new test (#979)

* rocAL PyBind - Wheel Package Fix (#982)

Co-authored-by: Swetha B S <swetha@multiocrewareinc.com>

* amd media - device support (#983)

* amd_media decoder add parameter for passing deviceid

* minor cleanup

* fix for review comments

* docker update - rpp version update (#986)

* Update mivisionx-with-pytorch.dockerfile

* Update mivisionx-with-tensorflow.dockerfile

* Update level-5.dockerfile

* Update mivisionx-on-ubuntu20.dockerfile

* Update mivisionx-opencl-on-ubuntu20.dockerfile

* rocal - README updates and directory name change (#981)

* Update README.md

* Update README.md

* folder name change

* Update README.md

* Delete PYTHON_UNITTEST_TEST_FILE.sh

* Delete rocAL/rocAL_pybind/example/new_api directory

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* added new random_crop_dec parameter class

* Set the crop values to partial decoder. [rocAL]

* Fix undefined reference error in random number generator. [rocAL]

* Change parameters for rocalFusedCropDecoder wrt new randomgenrator changes. [rocAL]
Remove unused paramaters.

* Clean up wrt Random number generator. [rocAl]

* Convert double to float for aspect ration and random area parameters in fused crop. [rocAL]

* Set seed for every batch in paramater random crop. [rocAL]

* Clean up. [rocAL]

* Fix Bug with seed generation for RNG

* rocAL - hardware decoder python support (#987)

* rocAL - removing references (#954)

* rocAL - Tf pets training  (#947)

* Zen DNN - Docker & Tests (#924)

* Zen DNN - Docker Updates

* Zen DNN - Sample Updates

* Codacy - Fix

* Zen DNN - Cleanup

* Zen DNN - single layer sample

* Rocal Updates (#921)

* rocal updates for tf training

* updates for rocal

* tf updates and pytorch bug fixes

* repo name change

* Update README.md

* dockerfile update

* [rocAL] Fix rocAL Pybind build issue.

* [rocAL] Remove unused function in pipeline.

* [rocAL] Change rocAL pybind installation from setup.py to wheel.
setup.py install is deprecated in python 3.9

* [rocAL] Make TF pets example dataset compatible with tf2.

* [rocAL] Change getImageLabels() compatible with tf.

* [rocAL] Add fix to pick wheel from dist installation folder.
Remove the old installation files in conda environment.

* [rocAL] Remove commented statement.

Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>

* Docker Update (#928)

* turboJPEG version update

* turboJPEG version update

* turboJPEG version update

* TurboJPEG version update

* Update mivisionx-opencl-on-ubuntu20.dockerfile

* Update zenDNN-HIP.dockerfile

* Update level-5.dockerfile

* Update level-5.dockerfile

* Zen DNN Updates Sync

Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>

* AMD OpenVX Custom Extension - implementation (#925)

* custom node implementation files

* fix build errors

* custom extension changes for working implementation

* add README and documentation

* update readme

* fix codacy issues and CPU flow

* fix cadacy warning

* Addressed review comments

* minor change

* fix formating

* amd_migraphx - update readme for extension (#929)

* amd_custom - fixes build issue (#935)

* fixes build issue

* Update CMakeLists.txt

* tf_pets_v2

* code_cleanup

* minor code cleanup

* migraphx extension - update the readme(#936)

* vx_amd_migraphx - tests (#923)

* batch size support for migraphx

* changing to accept tensors of all batch sizes

* creates file with results

* bug fix

* changes to singular test cases - mnist and resnet50

* readme updates

* resolving PR comments

* resolving PR comments

* resolving PR comments

* Readme update to reflect tot

* formatting

* fixing typo

* readme update

* readme update

* OpenVX HIP backend - report correct number of CUs for gfx10+ in the logs (#930)

* PyTorch docker file - add argument for specifying version (#938)

* add argument for specifying pytorch version for building docker file

* add readme for pytorch

* rocAL - Fix ROCAL_USE_USER_GIVEN_SIZE_RESTRICTED (#940)

* Docker - codacy fix for pr937 (#942)

* rocAL - Adding NCHW FP16 SIMD kernel (#926)

* Adding NCHW FP16 SIMD kernel for normalization and buffer copy

* Fixed some codestyle issues with FP16 kernel

* Using FMA SSE instruction for multiply-add ops

* Removed extra spaces

* Adding fma flag to rocAL CMakeLists

* Adding FP16 intrinsics for buffer copies

* Setting rounding mode to _MM_FROUND_TO_ZERO

* rocAL  - README updates for video unit test (#939)

* Add README support for video unit test

* Update Readme for video unit test

* Minor test_suite fix

* Update video unit test Readme

* Update Readme

* Updated README with the explation of test cases and arguments

* Minor fix

* Add test case samples to video unit test README

Also add images for README

* Modify sample images

* Change sample image dimension

* Minor README changes

* Minor README changes

* Minor change

* Minor fix to handle relative input path in video unit test

* Resolve codacy warnings

* Minor change

* Add correct video reader outputs

* MIVisionX - cmake cleanup (#943)

* OpenCV EXT - Updates & Tests (#944)

* OpenCV - Readme updates

* Updates - Readme & Tests

* OpenCV - Tests Added

* Updates

* ZenDNN - model compiler (#941)

* model compiler - zendnn - mnist layers

* bug fix + lrn

* layers: batch norm, sum ; bug fixes

* fixes lgtm errors

* bug fixes

* codacy fixes

* bug fix

* codacy fixes

* Update train_withROCAL_withTFRecordReader.py

* Resolved PR comments

Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Co-authored-by: LakshmiKumar23 <lakshmi.kumar@amd.com>
Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>
Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>
Co-authored-by: Rajy Rawther <Rajy.MeeyakhanRawther@amd.com>
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Co-authored-by: root <root@jenkins-worker-rocm-amd-104.local.lan>
Co-authored-by: Sundar Rajan Vaithiyanathan <99159823+SundarRajan28@users.noreply.github.com>
Co-authored-by: Fiona-MCW <70996026+fiona-gladwin@users.noreply.github.com>

* rocAL - fix bug in the usage of GetImageName (#955)

* fix bug in the usage of GetImageName

* add ground-truth labels .txt file for tinydataset

* rename file to all smaller case

* AMD - OpenVX Float16 Support (#956)

* AMD - Float16 Support

* Remove redundant def

* OpenVX FP16 - CPP FP16 support

* AMD Media Decoder - Measure Decode Time (#964)

* added what Aryan recommended to decoder performance measure code

* added transfer time measure

* rocAL - Changing Python Lib Path (#959)

* Changing Python Lib Path

* Keep the checks for different env intact

Co-authored-by: Swetha B S <swetha@mutlicorewareinc.com>

* MIVisionX - CMakeList Updates (#967)

* CMakeList Updates

* CMakeList - Cleanup

* Setup - Updates

* rocAL - CMakeList Cleanup

* rocAL - Resize scaling modes support (#950)

* Zen DNN - Docker & Tests (#924)

* Zen DNN - Docker Updates

* Zen DNN - Sample Updates

* Codacy - Fix

* Zen DNN - Cleanup

* Zen DNN - single layer sample

* Rocal Updates (#921)

* rocal updates for tf training

* updates for rocal

* tf updates and pytorch bug fixes

* repo name change

* Update README.md

* dockerfile update

* [rocAL] Fix rocAL Pybind build issue.

* [rocAL] Remove unused function in pipeline.

* [rocAL] Change rocAL pybind installation from setup.py to wheel.
setup.py install is deprecated in python 3.9

* [rocAL] Make TF pets example dataset compatible with tf2.

* [rocAL] Change getImageLabels() compatible with tf.

* [rocAL] Add fix to pick wheel from dist installation folder.
Remove the old installation files in conda environment.

* [rocAL] Remove commented statement.

Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>

* Docker Update (#928)

* turboJPEG version update

* turboJPEG version update

* turboJPEG version update

* TurboJPEG version update

* Update mivisionx-opencl-on-ubuntu20.dockerfile

* Update zenDNN-HIP.dockerfile

* Update level-5.dockerfile

* Update level-5.dockerfile

* Zen DNN Updates Sync

Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>

* AMD OpenVX Custom Extension - implementation (#925)

* custom node implementation files

* fix build errors

* custom extension changes for working implementation

* add README and documentation

* update readme

* fix codacy issues and CPU flow

* fix cadacy warning

* Addressed review comments

* minor change

* fix formating

* amd_migraphx - update readme for extension (#929)

* amd_custom - fixes build issue (#935)

* fixes build issue

* Update CMakeLists.txt

* migraphx extension - update the readme(#936)

* vx_amd_migraphx - tests (#923)

* batch size support for migraphx

* changing to accept tensors of all batch sizes

* creates file with results

* bug fix

* changes to singular test cases - mnist and resnet50

* readme updates

* resolving PR comments

* resolving PR comments

* resolving PR comments

* Readme update to reflect tot

* formatting

* fixing typo

* readme update

* readme update

* OpenVX HIP backend - report correct number of CUs for gfx10+ in the logs (#930)

* Add API to get reader config and decoder config

* Add API to obtain max and min aspect ratio from image source evaluator

* Add scaling modes support

Add support to pass the resize scaling modes
Add support to calculate the normalized crop

* Minor change

* Remove crop parameters and related changes for resize

* Fix segmentation fault

* Fix error with resize modes

* MInor fix : update tensor ROI

* Minor fix - center crop

* Update the python API for resize with scaling modes and interpolation param

* Minor changes

* Minor changes

* Minor change

* Remove center crop related changes

* Remove redundant max size check

* Remove crop param from node resize

* Remove source evaluator

* Minor fix

* Remove the get decoder and reader config API

* Remove aspect ratio calculations in source evaluator

* Remove decoder and reader config variables

Remove crop related changes

* Remove decoder and reader config variables

Remove crop related changes

* Minor fix for max size

* Code clean up

* Minor change

* Minor changes

* Minor changes

* Minor change

* Fix python codacy warnings

* Minor codacy fix

* Revert "Minor codacy fix"

This reverts commit df1dd28.

* Minor change

* Minor code changes

* Remove API to get max width and height for resize node

* Resize ROI changes

* Code cleanup

* Rename variables

* Code cleanup

* MInor changes

* Minor change

* Minor fix

* Minor changes

* Modify logic to calculate max size for each mode

* Fix  max_size calculation algorithm

* Fix max_size calculation logic

* Minor changes

* Minor change

* Add space after if

* Minor change

* Minor changes

Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Co-authored-by: LakshmiKumar23 <lakshmi.kumar@amd.com>
Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>
Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>
Co-authored-by: Rajy Rawther <Rajy.MeeyakhanRawther@amd.com>
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Co-authored-by: IndumathiR <indumathi@multicorewareinc.com>

* rocAL - fix for copy-write violation (#968)

* fix for copywrite violation

* fix for review comments and other clean_up

* minor clean_up

* revert run.sh changes

* fix codacy warnings

* add jupyter notebook for decoder

* rocAL - add missing header (#972)

* rocAL - add missing header

* Tested Config Updates

* OpenVX Framework - update max tensor dims to 6 (#970)

* add pipeline decorator for rocal

* fix build error

* fix script for jupyter notebook

* changes to Jupyter notebook to support HW decoder

* fixed review comments

* hardcoding decoder device to cpu for python unit tests

* add option for decoder.py to run on gpu/cpu

Co-authored-by: LakshmiKumar23 <lakshmi.kumar@amd.com>
Co-authored-by: swetha097 <59434434+swetha097@users.noreply.github.com>
Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>
Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Co-authored-by: root <root@jenkins-worker-rocm-amd-104.local.lan>
Co-authored-by: Sundar Rajan Vaithiyanathan <99159823+SundarRajan28@users.noreply.github.com>
Co-authored-by: Fiona-MCW <70996026+fiona-gladwin@users.noreply.github.com>
Co-authored-by: Pavel Tcherniaev <Pavel.Tcherniaev@amd.com>
Co-authored-by: Swetha B S <swetha@mutlicorewareinc.com>
Co-authored-by: IndumathiR <indumathi@multicorewareinc.com>

* Fix Python build

* Wrap long lines of code

* Fix spacing & add copyright in pybind

* amd-openvx-hip: create a separate stream for graph (#996)

* rocAL -  CMake and header files Clean up (#991)

* rocAL - removing references (#954)

* rocAL - Tf pets training  (#947)

* Zen DNN - Docker & Tests (#924)

* Zen DNN - Docker Updates

* Zen DNN - Sample Updates

* Codacy - Fix

* Zen DNN - Cleanup

* Zen DNN - single layer sample

* Rocal Updates (#921)

* rocal updates for tf training

* updates for rocal

* tf updates and pytorch bug fixes

* repo name change

* Update README.md

* dockerfile update

* [rocAL] Fix rocAL Pybind build issue.

* [rocAL] Remove unused function in pipeline.

* [rocAL] Change rocAL pybind installation from setup.py to wheel.
setup.py install is deprecated in python 3.9

* [rocAL] Make TF pets example dataset compatible with tf2.

* [rocAL] Change getImageLabels() compatible with tf.

* [rocAL] Add fix to pick wheel from dist installation folder.
Remove the old installation files in conda environment.

* [rocAL] Remove commented statement.

Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>

* Docker Update (#928)

* turboJPEG version update

* turboJPEG version update

* turboJPEG version update

* TurboJPEG version update

* Update mivisionx-opencl-on-ubuntu20.dockerfile

* Update zenDNN-HIP.dockerfile

* Update level-5.dockerfile

* Update level-5.dockerfile

* Zen DNN Updates Sync

Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>

* AMD OpenVX Custom Extension - implementation (#925)

* custom node implementation files

* fix build errors

* custom extension changes for working implementation

* add README and documentation

* update readme

* fix codacy issues and CPU flow

* fix cadacy warning

* Addressed review comments

* minor change

* fix formating

* amd_migraphx - update readme for extension (#929)

* amd_custom - fixes build issue (#935)

* fixes build issue

* Update CMakeLists.txt

* tf_pets_v2

* code_cleanup

* minor code cleanup

* migraphx extension - update the readme(#936)

* vx_amd_migraphx - tests (#923)

* batch size support for migraphx

* changing to accept tensors of all batch sizes

* creates file with results

* bug fix

* changes to singular test cases - mnist and resnet50

* readme updates

* resolving PR comments

* resolving PR comments

* resolving PR comments

* Readme update to reflect tot

* formatting

* fixing typo

* readme update

* readme update

* OpenVX HIP backend - report correct number of CUs for gfx10+ in the logs (#930)

* PyTorch docker file - add argument for specifying version (#938)

* add argument for specifying pytorch version for building docker file

* add readme for pytorch

* rocAL - Fix ROCAL_USE_USER_GIVEN_SIZE_RESTRICTED (#940)

* Docker - codacy fix for pr937 (#942)

* rocAL - Adding NCHW FP16 SIMD kernel (#926)

* Adding NCHW FP16 SIMD kernel for normalization and buffer copy

* Fixed some codestyle issues with FP16 kernel

* Using FMA SSE instruction for multiply-add ops

* Removed extra spaces

* Adding fma flag to rocAL CMakeLists

* Adding FP16 intrinsics for buffer copies

* Setting rounding mode to _MM_FROUND_TO_ZERO

* rocAL  - README updates for video unit test (#939)

* Add README support for video unit test

* Update Readme for video unit test

* Minor test_suite fix

* Update video unit test Readme

* Update Readme

* Updated README with the explation of test cases and arguments

* Minor fix

* Add test case samples to video unit test README

Also add images for README

* Modify sample images

* Change sample image dimension

* Minor README changes

* Minor README changes

* Minor change

* Minor fix to handle relative input path in video unit test

* Resolve codacy warnings

* Minor change

* Add correct video reader outputs

* MIVisionX - cmake cleanup (#943)

* OpenCV EXT - Updates & Tests (#944)

* OpenCV - Readme updates

* Updates - Readme & Tests

* OpenCV - Tests Added

* Updates

* ZenDNN - model compiler (#941)

* model compiler - zendnn - mnist layers

* bug fix + lrn

* layers: batch norm, sum ; bug fixes

* fixes lgtm errors

* bug fixes

* codacy fixes

* bug fix

* codacy fixes

* Update train_withROCAL_withTFRecordReader.py

* Resolved PR comments

Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Co-authored-by: LakshmiKumar23 <lakshmi.kumar@amd.com>
Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>
Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>
Co-authored-by: Rajy Rawther <Rajy.MeeyakhanRawther@amd.com>
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Co-authored-by: root <root@jenkins-worker-rocm-amd-104.local.lan>
Co-authored-by: Sundar Rajan Vaithiyanathan <99159823+SundarRajan28@users.noreply.github.com>
Co-authored-by: Fiona-MCW <70996026+fiona-gladwin@users.noreply.github.com>

* rocAL - fix bug in the usage of GetImageName (#955)

* fix bug in the usage of GetImageName

* add ground-truth labels .txt file for tinydataset

* rename file to all smaller case

* AMD - OpenVX Float16 Support (#956)

* AMD - Float16 Support

* Remove redundant def

* OpenVX FP16 - CPP FP16 support

* migraphx  - palamida scan fix (#984)

* Delete image_0.jpg

* Delete image_1.jpg

* Delete image_4.jpg

* image update

* Readme updates - OpenVX Trademark Updates (#989)

* Readme updates - OpenVX Trademark Updates

* Readme - Attribution Updates

* Readme - Codacy Fix

* Media - License Issue Fix (#990)

* Fix include path issue in image augmentation app.[rocAL]

* CMake clean up. [rocAL]

* Clean up. Introduce header files to include all nodes and meta nodes headers. [rocAL]

* Change include directories path in image_augmentation app.

* CMake clean up in rocAL utilities.

* Clean up.

Co-authored-by: LakshmiKumar23 <lakshmi.kumar@amd.com>
Co-authored-by: swetha097 <59434434+swetha097@users.noreply.github.com>
Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>
Co-authored-by: Rajy Rawther <Rajy.MeeyakhanRawther@amd.com>
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Co-authored-by: root <root@jenkins-worker-rocm-amd-104.local.lan>
Co-authored-by: Sundar Rajan Vaithiyanathan <99159823+SundarRajan28@users.noreply.github.com>
Co-authored-by: Fiona-MCW <70996026+fiona-gladwin@users.noreply.github.com>

* Resolve the PR comments

* Resolve PR Comments

* Fix the bug with Resize Node

* AMD OpenVX - HIP cleanup (#997)

* amd-openvx-hip: create a separate stream for graph

* removed hipstream associated with context since it is not used

* fix for review comments

* docker - Pytorch with mesa driver (#998)

* Create mivisionx-with-pytorch-with-mesa.dockerfile

Adding dockerfile for pytorch with mesa driver for hardware decode

* bug fixes to dockerfile

Co-authored-by: Lakshmi <lakshmi@ixt-sjc2-52.local.lan>

* OS Support - Updates (#994)

* Docker - Archive Old OS

* Docker Updates - Fix Support

* Setup - Updates

* OpenCV - Upgrade to 4.6.0

* Docker - Name Fix

* U20 Fix

* Docker Readme - Updates

* Minor change in the unittest

* Remove RPATH/RUNPATH - Adding SKIP RPATH flag (#995)

* Adding SKIP RPATH flag

* Update Review Comments-SKIP_RPATH replaced with SKIP_INSTALL_RPATH, disable use_link_path

* Review Comments Updated

* Resolve the internal PR comments

* Minor change in image.cpp

* Minor change in decoder.h

* Minor change in fused_crop_decoder.cpp

* Minor changes

* Minor changes

* Minor changes

* Correct spacing issues

* Wrap long lines of code in decoders.py

* Remove extra line in readers.py

* Removes extra line from fused_crop_decoder.cpp

* Remove Trailing white space in rocal_pybind.cpp

* Wrapping up the long lines of code in decoders.py

* Resolving PR comments

* Update decoders.py

Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Co-authored-by: LakshmiKumar23 <lakshmi.kumar@amd.com>
Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>
Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>
Co-authored-by: Rajy Rawther <Rajy.MeeyakhanRawther@amd.com>
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Co-authored-by: fiona-gladwin <fionagladwin@multicorewareinc.com>
Co-authored-by: root <root@jenkins-worker-rocm-amd-104.local.lan>
Co-authored-by: Swetha B S <swetha@mutlicorewareinc.com>
Co-authored-by: Swetha B S <swetha@multiocrewareinc.com>
Co-authored-by: root <root@ixt-sjc2-52.local.lan>
Co-authored-by: Sundar Rajan Vaithiyanathan <99159823+SundarRajan28@users.noreply.github.com>
Co-authored-by: Fiona-MCW <70996026+fiona-gladwin@users.noreply.github.com>
Co-authored-by: Pavel Tcherniaev <Pavel.Tcherniaev@amd.com>
Co-authored-by: IndumathiR <indumathi@multicorewareinc.com>
Co-authored-by: Lakshmi <lakshmi@ixt-sjc2-52.local.lan>
Co-authored-by: arvindcheru <90783369+arvindcheru@users.noreply.github.com>

* Setup & CMakeList - Updates (#1021)

* RPP - Upgrade to V0.99 (#1018)

* CMakeList - Adding RPATH flag (#995)" (#1017)

This reverts commit a5a4948.

* Setup - Support for RedHat and Updates (#1020)

* Setup - Updates

* Setup - Fix MIOpen Install

* Readme - Updates

* RPP Find - Fix

* RPP - Find Include files

* RedHat - rocAL Install Fix

* Setup - Add rocBLAS install

* Setup - Install Inference Deps

* Set - Inference Re-Install

* CMakeList - Find AMDRPP Backend Fix

* Backend Find - Updates

Co-authored-by: arvindcheru <90783369+arvindcheru@users.noreply.github.com>

* fix crop_mirror_normalize node to do center_crop by default

Co-authored-by: swetha097 <59434434+swetha097@users.noreply.github.com>
Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Co-authored-by: LakshmiKumar23 <lakshmi.kumar@amd.com>
Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>
Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Co-authored-by: fiona-gladwin <fionagladwin@multicorewareinc.com>
Co-authored-by: root <root@jenkins-worker-rocm-amd-104.local.lan>
Co-authored-by: Swetha B S <swetha@mutlicorewareinc.com>
Co-authored-by: Swetha B S <swetha@multiocrewareinc.com>
Co-authored-by: root <root@ixt-sjc2-52.local.lan>
Co-authored-by: Sundar Rajan Vaithiyanathan <99159823+SundarRajan28@users.noreply.github.com>
Co-authored-by: Fiona-MCW <70996026+fiona-gladwin@users.noreply.github.com>
Co-authored-by: Pavel Tcherniaev <Pavel.Tcherniaev@amd.com>
Co-authored-by: IndumathiR <indumathi@multicorewareinc.com>
Co-authored-by: Lakshmi <lakshmi@ixt-sjc2-52.local.lan>
Co-authored-by: arvindcheru <90783369+arvindcheru@users.noreply.github.com>

* adding generic file reader

* adding generic file reader

* rocal python gpu support without torch

* addressing review comments

* re-adding old unit test as pytorch test

* code clean up plus review comments

* final changes

---------

Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Co-authored-by: Rajy Rawther <Rajy.MeeyakhanRawther@amd.com>
Co-authored-by: swetha097 <59434434+swetha097@users.noreply.github.com>
Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>
Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Co-authored-by: fiona-gladwin <fionagladwin@multicorewareinc.com>
Co-authored-by: root <root@jenkins-worker-rocm-amd-104.local.lan>
Co-authored-by: Swetha B S <swetha@mutlicorewareinc.com>
Co-authored-by: Swetha B S <swetha@multiocrewareinc.com>
Co-authored-by: root <root@ixt-sjc2-52.local.lan>
Co-authored-by: Sundar Rajan Vaithiyanathan <99159823+SundarRajan28@users.noreply.github.com>
Co-authored-by: Fiona-MCW <70996026+fiona-gladwin@users.noreply.github.com>
Co-authored-by: Pavel Tcherniaev <Pavel.Tcherniaev@amd.com>
Co-authored-by: IndumathiR <indumathi@multicorewareinc.com>
Co-authored-by: Lakshmi <lakshmi@ixt-sjc2-52.local.lan>
Co-authored-by: arvindcheru <90783369+arvindcheru@users.noreply.github.com>

* rocal_pybind - bug fix for one hot encoded labels (#1038)

* one hot label bug fix

* adding comments

* removing duplicate functions

* rocAL - Tf pets training (#1035)

* Updated prerequisite for tf_pets_training

* Updated README.md file

* Resolved PR comments

* Remove --use-feature flag

* Update pip3 to python -m pip

* upgrade pip in dockerfile

---------

Co-authored-by: root <root@ixt-sjc2-52.local.lan>
Co-authored-by: Akilesh2 <akilesh.giribala@multicorewareinc.com>

* rocAL - changes for classification training convergence (#1036)

* Changes wrt Resizeshorter.[rocAL]

* Adding changes for Image Classification training convergence

* Resolving internal review comments

* Changes to resize shorter codes

* Using original dims for calculating resize dims for all modes

* Adding fix for when images fail decoding with turbojpeg

* Variable name changes

* ROI name changes

---------

Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>

* ADAT - Fix for Deprecated Function (#1046)

* ADAT - modifying code to support python3 (#1047)

* modifying code to support python3

* readme updates

* rocAL - ResizeMirrorNormalize augmentation node support (#1044)

* RMN node implementation for rocAL

* Resolving review comments and changing RMN RPP node name

* Changing tabs to spaces

* Removing unused variables in RMN openvx node

* Resolving review comments

* Adding python unittest for RMN

* Adding spaces and removing setSeed instances

* Fixing codacy warning

* rocAL - ResizeMirrorNormalize OCL build fix (#1049)

* RMN node implementation for rocAL

* Resolving review comments and changing RMN RPP node name

* Changing tabs to spaces

* Removing unused variables in RMN openvx node

* Resolving review comments

* Adding python unittest for RMN

* Adding spaces and removing setSeed instances

* Fixing codacy warning

* Rearranged if statement to fix OCL build error

* rocAL - Prefetch queue depth python example (#1048)

* Add python example for prefetch queue depth

Reintroduce the python example
Update the python script to use latest rocal python API

* Update README

* Update README.md

* Add copywrite block

Add copywrite block in prefetch queue depth python example

* Replace pytorch iterator with generic iterator

* Add sleep timer in the iterator

* Update README.md

* Minor change

* rocAL - RPP & CuPy updates (#1050)

* RPP - Name Updates

* Setup - Install CuPy

* Setup - CuPy Updates

* Setup - Remove redundant

* Setup - CuPy Updates

* Setup - fix numpy version

* PIP Install - Fix Version

* Model Compiler - Readme Updates

* Model Compiler - Readme Updates

* rocal pybind build changes

* codacy error fixes

* addressing review comments

* link error - fix

* resolving PR comments

* RPP Version - Update to 1.0.0 (#1058)

* RPP Version - Update to 1.0.0

* RPP - Lib Name Updates

* checking for conda env

* trial for docker

* adding test case for pybind installation

* Delete output_image.png

* codacy error fixes

* readme update

* codacy error fix

* removing opencl from cmake -- not supported for rocal_pybind

* clean up

---------

Co-authored-by: swetha097 <59434434+swetha097@users.noreply.github.com>
Co-authored-by: root <root@ixt-sjc2-52.local.lan>
Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Co-authored-by: Rajy Rawther <Rajy.MeeyakhanRawther@amd.com>
Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>
Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Co-authored-by: fiona-gladwin <fionagladwin@multicorewareinc.com>
Co-authored-by: root <root@jenkins-worker-rocm-amd-104.local.lan>
Co-authored-by: Swetha B S <swetha@mutlicorewareinc.com>
Co-authored-by: Swetha B S <swetha@multiocrewareinc.com>
Co-authored-by: Sundar Rajan Vaithiyanathan <99159823+SundarRajan28@users.noreply.github.com>
Co-authored-by: Fiona-MCW <70996026+fiona-gladwin@users.noreply.github.com>
Co-authored-by: Pavel Tcherniaev <Pavel.Tcherniaev@amd.com>
Co-authored-by: IndumathiR <indumathi@multicorewareinc.com>
Co-authored-by: Lakshmi <lakshmi@ixt-sjc2-52.local.lan>
Co-authored-by: arvindcheru <90783369+arvindcheru@users.noreply.github.com>
Co-authored-by: Akilesh2 <akilesh.giribala@multicorewareinc.com>

* rocAL - bug fix with installation path for rocal_pybind (#1068)

* fix rocal video unit-test failure and other bugs

---------

Co-authored-by: Lakshmi Kumar <lakshmi.kumar@amd.com>
Co-authored-by: swetha097 <59434434+swetha097@users.noreply.github.com>
Co-authored-by: root <root@ixt-sjc2-52.local.lan>
Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
Co-authored-by: shobana-mcw <shobana@multicorewareinc.com>
Co-authored-by: Kiriti Gowda <kiriti.nageshgowda@amd.com>
Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>
Co-authored-by: fiona-gladwin <fionagladwin@multicorewareinc.com>
Co-authored-by: root <root@jenkins-worker-rocm-amd-104.local.lan>
Co-authored-by: Swetha B S <swetha@mutlicorewareinc.com>
Co-authored-by: Swetha B S <swetha@multiocrewareinc.com>
Co-authored-by: Sundar Rajan Vaithiyanathan <99159823+SundarRajan28@users.noreply.github.com>
Co-authored-by: Fiona-MCW <70996026+fiona-gladwin@users.noreply.github.com>
Co-authored-by: Pavel Tcherniaev <Pavel.Tcherniaev@amd.com>
Co-authored-by: IndumathiR <indumathi@multicorewareinc.com>
Co-authored-by: Lakshmi <lakshmi@ixt-sjc2-52.local.lan>
Co-authored-by: arvindcheru <90783369+arvindcheru@users.noreply.github.com>
Co-authored-by: Akilesh2 <akilesh.giribala@multicorewareinc.com>
  • Loading branch information
19 people authored May 11, 2023
1 parent 4acc918 commit f4e7f82
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions amd_openvx_extensions/amd_rpp/source/TensorAdd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ static vx_status VX_CALLBACK initializeTensorAdd(vx_node node, const vx_referenc
TensorAddLocalData *data = new TensorAddLocalData;
memset(data, 0, sizeof(*data));
#if ENABLE_OPENCL
STATUS_ERROR_CHECK(vxQueryNode(node, VX_NODE_ATTRIBUTE_AMD_OPENCL_COMMAND_QUEUE, &data->handle->cmdq, sizeof(data->handle->cmdq)));
cl_context theContext; // theContext
cl_command_queue theQueue; // command theQueue
theQueue = data->handle->cmdq;
Expand All @@ -168,7 +167,6 @@ static vx_status VX_CALLBACK initializeTensorAdd(vx_node node, const vx_referenc
data->cl_pSrc2 = clCreateBuffer(theContext, CL_MEM_READ_ONLY, bytes, NULL, NULL);
data->cl_pDst = clCreateBuffer(theContext, CL_MEM_WRITE_ONLY, bytes, NULL, NULL);
#elif ENABLE_HIP
STATUS_ERROR_CHECK(vxQueryNode(node, VX_NODE_ATTRIBUTE_AMD_HIP_STREAM, &data->handle->hipstream, sizeof(data->handle->hipstream)));
size_t arr_size;
STATUS_ERROR_CHECK(vxQueryArray((vx_array)parameters[0], VX_ARRAY_ATTRIBUTE_NUMITEMS, &arr_size, sizeof(arr_size)));
size_t bytes = arr_size * sizeof(Rpp8u);
Expand Down
2 changes: 0 additions & 2 deletions amd_openvx_extensions/amd_rpp/source/TensorMatrixMultiply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ static vx_status VX_CALLBACK initializeTensorMatrixMultiply(vx_node node, const
TensorMatrixMultiplyLocalData *data = new TensorMatrixMultiplyLocalData;
memset(data, 0, sizeof(*data));
#if ENABLE_OPENCL
STATUS_ERROR_CHECK(vxQueryNode(node, VX_NODE_ATTRIBUTE_AMD_OPENCL_COMMAND_QUEUE, &data->handle->cmdq, sizeof(data->handle->cmdq)));
cl_context theContext; // theContext
cl_command_queue theQueue; // command theQueue
theQueue = data->handle->cmdq;
Expand All @@ -172,7 +171,6 @@ static vx_status VX_CALLBACK initializeTensorMatrixMultiply(vx_node node, const
bytes = arr_size * sizeof(Rpp8u);
data->cl_pDst = clCreateBuffer(theContext, CL_MEM_WRITE_ONLY, bytes, NULL, NULL);
#elif ENABLE_HIP
STATUS_ERROR_CHECK(vxQueryNode(node, VX_NODE_ATTRIBUTE_AMD_HIP_STREAM, &data->handle->hipstream, sizeof(data->handle->hipstream)));
size_t arr_size;
STATUS_ERROR_CHECK(vxQueryArray((vx_array)parameters[0], VX_ARRAY_ATTRIBUTE_NUMITEMS, &arr_size, sizeof(arr_size)));
size_t bytes = arr_size * sizeof(Rpp8u);
Expand Down
2 changes: 0 additions & 2 deletions amd_openvx_extensions/amd_rpp/source/TensorMultiply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ static vx_status VX_CALLBACK initializeTensorMultiply(vx_node node, const vx_ref
TensorMultiplyLocalData *data = new TensorMultiplyLocalData;
memset(data, 0, sizeof(*data));
#if ENABLE_OPENCL
STATUS_ERROR_CHECK(vxQueryNode(node, VX_NODE_ATTRIBUTE_AMD_OPENCL_COMMAND_QUEUE, &data->handle->cmdq, sizeof(data->handle->cmdq)));
cl_context theContext; // theContext
cl_command_queue theQueue; // command theQueue
theQueue = data->handle->cmdq;
Expand All @@ -164,7 +163,6 @@ static vx_status VX_CALLBACK initializeTensorMultiply(vx_node node, const vx_ref
data->cl_pSrc2 = clCreateBuffer(theContext, CL_MEM_READ_ONLY, bytes, NULL, NULL);
data->cl_pDst = clCreateBuffer(theContext, CL_MEM_WRITE_ONLY, bytes, NULL, NULL);
#elif ENABLE_HIP
STATUS_ERROR_CHECK(vxQueryNode(node, VX_NODE_ATTRIBUTE_AMD_HIP_STREAM, &data->handle->hipstream, sizeof(data->handle->hipstream)));
size_t arr_size;
STATUS_ERROR_CHECK(vxQueryArray((vx_array)parameters[0], VX_ARRAY_ATTRIBUTE_NUMITEMS, &arr_size, sizeof(arr_size)));
size_t bytes = arr_size * sizeof(Rpp8u);
Expand Down
2 changes: 0 additions & 2 deletions amd_openvx_extensions/amd_rpp/source/TensorSubtract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ static vx_status VX_CALLBACK initializeTensorSubtract(vx_node node, const vx_ref
TensorSubtractLocalData *data = new TensorSubtractLocalData;
memset(data, 0, sizeof(*data));
#if ENABLE_OPENCL
STATUS_ERROR_CHECK(vxQueryNode(node, VX_NODE_ATTRIBUTE_AMD_OPENCL_COMMAND_QUEUE, &data->handle->cmdq, sizeof(data->handle->cmdq)));
cl_context theContext; // theContext
cl_command_queue theQueue; // command theQueue
theQueue = data->handle->cmdq;
Expand All @@ -164,7 +163,6 @@ static vx_status VX_CALLBACK initializeTensorSubtract(vx_node node, const vx_ref
data->cl_pSrc2 = clCreateBuffer(theContext, CL_MEM_READ_ONLY, bytes, NULL, NULL);
data->cl_pDst = clCreateBuffer(theContext, CL_MEM_WRITE_ONLY, bytes, NULL, NULL);
#elif ENABLE_HIP
STATUS_ERROR_CHECK(vxQueryNode(node, VX_NODE_ATTRIBUTE_AMD_HIP_STREAM, &data->handle->hipstream, sizeof(data->handle->hipstream)));
size_t arr_size;
STATUS_ERROR_CHECK(vxQueryArray((vx_array)parameters[0], VX_ARRAY_ATTRIBUTE_NUMITEMS, &arr_size, sizeof(arr_size)));
size_t bytes = arr_size * sizeof(Rpp8u);
Expand Down
5 changes: 0 additions & 5 deletions amd_openvx_extensions/amd_rpp/source/copy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ static vx_status VX_CALLBACK initializeCopy(vx_node node, const vx_reference *pa
CopyLocalData *data = new CopyLocalData;
memset(data, 0, sizeof(*data));

#if ENABLE_OPENCL
STATUS_ERROR_CHECK(vxQueryNode(node, VX_NODE_ATTRIBUTE_AMD_OPENCL_COMMAND_QUEUE, &data->handle->cmdq, sizeof(data->handle->cmdq)));
#elif ENABLE_HIP
STATUS_ERROR_CHECK(vxQueryNode(node, VX_NODE_ATTRIBUTE_AMD_HIP_STREAM, &data->handle->hipstream, sizeof(data->handle->hipstream)));
#endif
refreshcopy(node, parameters, num, data);
STATUS_ERROR_CHECK(vxCopyScalar((vx_scalar)parameters[2], &data->device_type, VX_READ_ONLY, VX_MEMORY_TYPE_HOST));
STATUS_ERROR_CHECK(vxSetNodeAttribute(node, VX_NODE_LOCAL_DATA_PTR, &data, sizeof(data)));
Expand Down
1 change: 0 additions & 1 deletion rocAL/rocAL_pybind/examples/PYTHON_UNITTEST_TEST_FILE.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ if [[ $# -gt 0 ]]; then

while getopts "n:d:b:p:" opt
do
echo "In while loop"
echo $opt
case "$opt" in
n ) number_of_gpus="$OPTARG" ;;
Expand Down

0 comments on commit f4e7f82

Please sign in to comment.