Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major Clean Up & Reorg #126

Merged
merged 21 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,39 @@

## Online Documentation

[rocAL Documentation](https://github.com/ROCmSoftwarePlatform/rocAL)
[rocAL Documentation](https://github.com/ROCm/rocAL)

## rocAL 1.0.0 (unreleased)

### Added

*

Check failure on line 13 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Trailing spaces

CHANGELOG.md:13:2 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md009.md

### Optimizations

*

Check failure on line 17 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Trailing spaces

CHANGELOG.md:17:2 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md009.md

### Changed

*

Check failure on line 21 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Trailing spaces

CHANGELOG.md:21:2 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md009.md

### Fixed

*

Check failure on line 25 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Trailing spaces

CHANGELOG.md:25:2 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md009.md

### Tested Configurations

* Linux distribution
+ Ubuntu - `20.04` / `22.04`

Check failure on line 30 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Unordered list style

CHANGELOG.md:30:1 MD004/ul-style Unordered list style [Expected: asterisk; Actual: plus] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md004.md
* ROCm: rocm-core - `5.4.0.50400-72`
* ROCm: rocm-core - `6.0.60002-1`
* Protobuf - [V3.12.4](https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.4)
* OpenCV - [4.6.0](https://github.com/opencv/opencv/releases/tag/4.6.0)
* RPP - [1.2.0](https://github.com/GPUOpen-ProfessionalCompute-Libraries/rpp/releases/tag/1.2.0)
* RPP - [1.4.0](https://github.com/ROCms/rpp/releases/tag/1.4.0)
* FFMPEG - [n4.4.2](https://github.com/FFmpeg/FFmpeg/releases/tag/n4.4.2)
* MIVisionX - [master](https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX)
* MIVisionX - [master](https://github.com/ROCm/MIVisionX)
* Dependencies for all the above packages
* rocAL Setup Script - `V1.0.2`

### Known issues

*

Check failure on line 42 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Trailing spaces

CHANGELOG.md:42:2 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md009.md
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ install(FILES docs/README.md DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/rocal)

enable_testing()
include(CTest)
add_subdirectory(tests/cpp_api_tests)
add_subdirectory(tests/cpp_api)

# set package information
set(CPACK_PACKAGE_VERSION ${VERSION})
Expand All @@ -152,7 +152,7 @@ set(CPACK_PACKAGE_CONTACT "rocAL Support <[email protected]>")
set(CPACK_PACKAGE_VENDOR "AMD Radeon")
set(CPACK_PACKAGE_ICON "${CMAKE_SOURCE_DIR}/docs/data/rocAL_logo.png")
set(CPACK_PACKAGE_GROUP "Development/Tools")
set(CPACK_PACKAGE_HOMEPAGE "https://github.com/ROCmSoftwarePlatform/rocAL")
set(CPACK_PACKAGE_HOMEPAGE "https://github.com/ROCm/rocAL")

set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "AMD rocAL is a comprehensive Augmentation Library
The AMD ROCm Augmentation Library (rocAL) is designed to efficiently decode and process images \
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ rocAL can be currently used to perform the following operations either with rand
+ RedHat - `8` / `9`
+ SLES - `15-SP4`
* [ROCm](https://rocmdocs.amd.com/en/latest/deploy/linux/installer/install.html) with --usecase=graphics,rocm
* [AMD RPP](https://github.com/GPUOpen-ProfessionalCompute-Libraries/rpp) - MIVisionX Component
* [AMD OpenVX&trade;](https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX/tree/master/amd_openvx) and AMD OpenVX&trade; Extensions: `VX_RPP` and `AMD Media` - MIVisionX Components
* [AMD RPP](https://github.com/ROCm/rpp) - MIVisionX Component
* [AMD OpenVX&trade;](https://github.com/ROCm/MIVisionX/tree/master/amd_openvx) and AMD OpenVX&trade; Extensions: `VX_RPP` and `AMD Media` - MIVisionX Components
* [Turbo JPEG](https://libjpeg-turbo.org/) - Version 2.0.6.2 from `https://github.com/rrawther/libjpeg-turbo.git`
* [Half-precision floating-point](https://half.sourceforge.net) library - Version `1.12.0` or higher
* [Google Protobuf](https://developers.google.com/protocol-buffers) - Version `3.12.4` or higher
Expand Down Expand Up @@ -131,7 +131,7 @@ For the convenience of the developer, we here provide the setup script which wil
+ Clone rocAL source code

```
git clone https://github.com/ROCmSoftwarePlatform/rocAL.git
git clone https://github.com/ROCm/rocAL.git
cd rocAL
```
**Note:** rocAL supports **CPU** and two **GPU** backends: **OPENCL**/**HIP**:
Expand All @@ -144,6 +144,7 @@ For the convenience of the developer, we here provide the setup script which wil
```

+ run the below commands to build rocAL
**Note:** Use `-DPYTHONVERSION=3.x` with `cmake` for using a specific Python3 version if required.
```
mkdir build-hip
cd build-hip
Expand All @@ -153,7 +154,7 @@ For the convenience of the developer, we here provide the setup script which wil
sudo make install
```

+ run tests - [test option instructions](https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX/wiki/CTest)
+ run tests - [test option instructions](https://github.com/ROCm/MIVisionX/wiki/CTest)
```
make test
```
Expand All @@ -174,13 +175,13 @@ For the convenience of the developer, we here provide the setup script which wil
+ RedHat - `8` / `9`
+ SLES - `15-SP4`
* ROCm: rocm-core - `5.7.0.50700-6`
* RPP - [1.2.0](https://github.com/GPUOpen-ProfessionalCompute-Libraries/rpp/releases/tag/1.2.0)
* MIVisionX - [master](https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX)
* RPP - [1.2.0](https://github.com/ROCm/rpp/releases/tag/1.2.0)
* MIVisionX - [master](https://github.com/ROCm/MIVisionX)
* Protobuf - [V3.12.4](https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.4)
* OpenCV - [4.6.0](https://github.com/opencv/opencv/releases/tag/4.6.0)
* FFMPEG - [n4.4.2](https://github.com/FFmpeg/FFmpeg/releases/tag/n4.4.2)
* RapidJSON- [master](https://github.com/Tencent/rapidjson)
* PyBind11 - [v2.10.4](https://github.com/pybind/pybind11)
* CuPy - [v12.2.0](https://github.com/ROCmSoftwarePlatform/cupy/releases/tag/v12.0.0)
* CuPy - [v12.2.0](https://github.com/ROCm/cupy/releases/tag/v12.0.0)
* rocAL Setup Script - `V1.0.2`
* Dependencies for all the above packages
12 changes: 0 additions & 12 deletions apps/README.md

This file was deleted.

2 changes: 1 addition & 1 deletion copyright.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: rocAL
Source: https://github.com/ROCmSoftwarePlatform/rocAL.git
Source: https://github.com/ROCm/rocAL.git

Files: *
Copyright: 2022 - 2023 Advanced Micro Devices, Inc.
Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# rocAL Docker

Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. [Read More](https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX/wiki/Docker)
Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. [Read More](https://github.com/ROCm/MIVisionX/wiki/Docker)

## Build - dockerfiles

```

Check failure on line 7 in docker/README.md

View workflow job for this annotation

GitHub Actions / Documentation / Markdown

Fenced code blocks should have a language specified

docker/README.md:7 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.28.2/doc/md040.md
sudo docker build --build-arg {ARG_NAME}={ARG_VALUE} -f {DOCKER_FILE_NAME}.dockerfile -t {DOCKER_IMAGE_NAME} .
Expand Down
6 changes: 3 additions & 3 deletions docker/rocal-on-rhel-09.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ RUN apt-get update -y && apt-get -y install autoconf automake libbz2-dev libssl-
RUN apt-get -y install sqlite3 libsqlite3-dev libtool build-essential
RUN git clone -b v3.21.9 https://github.com/protocolbuffers/protobuf.git && cd protobuf && git submodule update --init --recursive && \
./autogen.sh && ./configure && make -j8 && make check -j8 && sudo make install && sudo ldconfig && cd
RUN git clone -b 0.99 https://github.com/GPUOpen-ProfessionalCompute-Libraries/rpp.git && cd rpp && mkdir build && cd build && \
RUN git clone -b 0.99 https://github.com/ROCm/rpp.git && cd rpp && mkdir build && cd build && \
cmake -DBACKEND=HIP ../ && make -j4 && sudo make install && cd

ENV ROCAL_WORKSPACE=/workspace
WORKDIR $ROCAL_WORKSPACE

# Install MIVisionX
RUN git clone https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX.git && \
mkdir build && cd build && cmake -DBACKEND=HIP -DROCAL=OFF ../MIVisionX && make -j8 && make install
RUN git clone https://github.com/ROCm/MIVisionX.git && \
mkdir build && cd build && cmake -DBACKEND=HIP ../MIVisionX && make -j8 && make install
6 changes: 3 additions & 3 deletions docker/rocal-on-ubuntu-20-with-pytorch-with-mesa.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 python3-pip git g+
cmake ../ && make -j4 && sudo make install && cd ../../ && \
pip install pytest==3.1 && git clone -b v2.10.4 https://github.com/pybind/pybind11 && cd pybind11 && mkdir build && cd build && \
cmake -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON ../ && make -j4 && sudo make install && cd ../../ && \
pip install numpy==1.24.2 scipy==1.9.3 cython==0.29.* git+https://github.com/ROCmSoftwarePlatform/hipify_torch.git && \
pip install numpy==1.24.2 scipy==1.9.3 cython==0.29.* git+https://github.com/ROCm/hipify_torch.git && \
env CC=$MPI_HOME/bin/mpicc python -m pip install mpi4py && \
git clone https://github.com/ROCmSoftwarePlatform/cupy.git && cd cupy && git submodule update --init && \
git clone https://github.com/ROCm/cupy.git && cd cupy && git submodule update --init && \
pip install -e . --no-cache-dir -vvvv

# install MIVisionX
RUN git clone https://github.com/ROCm/MIVisionX.git && cd MIVisionX && \
mkdir build && cd build && cmake -DBACKEND=HIP -DROCAL=OFF ../ && make -j8 && make install
mkdir build && cd build && cmake -DBACKEND=HIP ../ && make -j8 && make install

ENV ROCAL_WORKSPACE=/workspace
WORKDIR $ROCAL_WORKSPACE
Expand Down
4 changes: 2 additions & 2 deletions docker/rocal-on-ubuntu-20.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 python3-pip git g+
cmake ../ && make -j4 && sudo make install && cd ../../ && \
pip install pytest==3.1 && git clone -b v2.10.4 https://github.com/pybind/pybind11 && cd pybind11 && mkdir build && cd build && \
cmake -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON ../ && make -j4 && sudo make install && cd ../../ && \
pip install numpy==1.24.2 scipy==1.9.3 cython==0.29.* git+https://github.com/ROCmSoftwarePlatform/hipify_torch.git && \
pip install numpy==1.24.2 scipy==1.9.3 cython==0.29.* git+https://github.com/ROCm/hipify_torch.git && \
env CC=$MPI_HOME/bin/mpicc python -m pip install mpi4py && \
git clone -b rocm6.1_internal_testing https://github.com/ROCm/cupy.git && cd cupy && git submodule update --init && \
pip install -e . --no-cache-dir -vvvv

# install MIVisionX
RUN git clone https://github.com/ROCm/MIVisionX.git && cd MIVisionX && \
mkdir build && cd build && cmake -DBACKEND=HIP -DROCAL=OFF ../ && make -j8 && make install
mkdir build && cd build && cmake -DBACKEND=HIP ../ && make -j8 && make install

ENV ROCAL_WORKSPACE=/workspace
WORKDIR $ROCAL_WORKSPACE
Expand Down
4 changes: 2 additions & 2 deletions docker/rocal-on-ubuntu-22.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 python3-pip git g+
cmake ../ && make -j4 && sudo make install && cd ../../ && \
pip install pytest==3.1 && git clone -b v2.10.4 https://github.com/pybind/pybind11 && cd pybind11 && mkdir build && cd build && \
cmake -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON ../ && make -j4 && sudo make install && cd ../../ && \
pip install numpy==1.24.2 scipy==1.9.3 cython==0.29.* git+https://github.com/ROCmSoftwarePlatform/hipify_torch.git && \
pip install numpy==1.24.2 scipy==1.9.3 cython==0.29.* git+https://github.com/ROCm/hipify_torch.git && \
env CC=$MPI_HOME/bin/mpicc python -m pip install mpi4py && \
git clone -b rocm6.1_internal_testing https://github.com/ROCm/cupy.git && cd cupy && git submodule update --init && \
pip install -e . --no-cache-dir -vvvv

# Install MIVisionX
RUN git clone https://github.com/ROCm/MIVisionX && cd MIVisionX && \
mkdir build && cd build && cmake -DBACKEND=HIP -DROCAL=OFF ../ && make -j8 && make install
mkdir build && cd build && cmake -DBACKEND=HIP ../ && make -j8 && make install

ENV ROCAL_WORKSPACE=/workspace
WORKDIR $ROCAL_WORKSPACE
Expand Down
4 changes: 2 additions & 2 deletions docker/rocal-with-pytorch.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 python3-pip git g+
cmake ../ && make -j4 && sudo make install && cd ../../ && \
pip install pytest==3.1 && git clone -b v2.10.4 https://github.com/pybind/pybind11 && cd pybind11 && mkdir build && cd build && \
cmake -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON ../ && make -j4 && sudo make install && cd ../../ && \
pip install numpy==1.24.2 scipy==1.9.3 cython==0.29.* git+https://github.com/ROCmSoftwarePlatform/hipify_torch.git && \
pip install numpy==1.24.2 scipy==1.9.3 cython==0.29.* git+https://github.com/ROCm/hipify_torch.git && \
env CC=$MPI_HOME/bin/mpicc python -m pip install mpi4py && \
git clone -b rocm6.1_internal_testing https://github.com/ROCm/cupy.git && cd cupy && git submodule update --init && \
pip install -e . --no-cache-dir -vvvv

# install MIVisionX
RUN git clone https://github.com/ROCm/MIVisionX.git && cd MIVisionX && \
mkdir build && cd build && cmake -DBACKEND=HIP -DROCAL=OFF ../ && make -j8 && make install && cd
mkdir build && cd build && cmake -DBACKEND=HIP ../ && make -j8 && make install && cd

ENV ROCAL_WORKSPACE=/workspace
WORKDIR $ROCAL_WORKSPACE
Expand Down
73 changes: 73 additions & 0 deletions docker/rocal-with-tensorflow.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
ARG TENSORFLOW_VERSION=latest
FROM rocm/tensorflow:${TENSORFLOW_VERSION}

ENV ROCAL_DEPS_ROOT=/rocAL-deps
WORKDIR $ROCAL_DEPS_ROOT

RUN apt-get update -y

# install rocAL base dependencies
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install gcc g++ cmake pkg-config git

# install OpenCV
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev python-dev python-numpy \
libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev unzip && \
mkdir OpenCV && cd OpenCV && wget https://github.com/opencv/opencv/archive/4.6.0.zip && unzip 4.6.0.zip && \
mkdir build && cd build && cmake -DWITH_GTK=ON -DWITH_JPEG=ON -DBUILD_JPEG=ON -DWITH_OPENCL=OFF ../opencv-4.6.0 && make -j8 && sudo make install && sudo ldconfig && cd

# install FFMPEG
ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/"
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install autoconf automake build-essential cmake git-core libass-dev libfreetype6-dev libsdl2-dev libtool libva-dev \
libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo wget zlib1g-dev \
nasm yasm libx264-dev libx265-dev libnuma-dev libfdk-aac-dev && \
wget https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n4.4.2.zip && unzip n4.4.2.zip && cd FFmpeg-n4.4.2/ && sudo ldconfig && \
./configure --enable-shared --disable-static --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libass --enable-gpl --enable-nonfree && \
make -j8 && sudo make install && cd

# install rocAL neural net dependency
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install rocblas rocblas-dev miopen-hip miopen-hip-dev migraphx && \
mkdir neuralNet && cd neuralNet && wget https://sourceforge.net/projects/half/files/half/1.12.0/half-1.12.0.zip && \
unzip half-1.12.0.zip -d half-files && sudo mkdir -p /usr/local/include/half && sudo cp half-files/include/half.hpp /usr/local/include/half && cd

# install rocAL dependency
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget libbz2-dev libssl-dev python-dev python3-dev libgflags-dev libgoogle-glog-dev liblmdb-dev nasm yasm libjsoncpp-dev clang && \
git clone -b 3.0.1 https://github.com/libjpeg-turbo/libjpeg-turbo.git && cd libjpeg-turbo && mkdir build && cd build && \
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE -DENABLE_STATIC=FALSE -DCMAKE_INSTALL_DEFAULT_LIBDIR=lib -DWITH_JPEG8=TRUE ../ && \
make -j4 && sudo make install && cd && \
git clone https://github.com/ROCm/rpp.git && cd rpp && mkdir build && cd build && \
cmake -DBACKEND=HIP ../ && make -j4 && sudo make install && cd ../../ && \
git clone -b v3.12.4 https://github.com/protocolbuffers/protobuf.git && cd protobuf && git submodule update --init --recursive && \
./autogen.sh && ./configure && make -j8 && make check -j8 && sudo make install && sudo ldconfig && cd
ENV CUPY_INSTALL_USE_HIP=1
ENV ROCM_HOME=/opt/rocm
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3 python3-pip git g++ hipblas hipsparse rocrand hipfft rocfft rocthrust-dev hipcub-dev python3-dev && \
git clone https://github.com/Tencent/rapidjson.git && cd rapidjson && mkdir build && cd build && \
cmake ../ && make -j4 && sudo make install && cd ../../ && \
pip install pytest==3.1 && git clone -b v2.10.4 https://github.com/pybind/pybind11 && cd pybind11 && mkdir build && cd build && \
cmake -DDOWNLOAD_CATCH=ON -DDOWNLOAD_EIGEN=ON ../ && make -j4 && sudo make install && cd ../../ && \
pip install numpy==1.24.2 scipy==1.9.3 cython==0.29.* git+https://github.com/ROCm/hipify_torch.git && \
env CC=$MPI_HOME/bin/mpicc python -m pip install mpi4py && \
git clone -b rocm6.1_internal_testing https://github.com/ROCm/cupy.git && cd cupy && git submodule update --init && \
pip install -e . --no-cache-dir -vvvv

# install MIVisionX
RUN git clone https://github.com/ROCm/MIVisionX.git && cd MIVisionX && \
mkdir build && cd build && cmake -DBACKEND=HIP ../ && make -j8 && make install && cd

ENV ROCAL_WORKSPACE=/workspace
WORKDIR $ROCAL_WORKSPACE

# Install rocAL
RUN git clone -b develop https://github.com/ROCm/rocAL && \
mkdir build && cd build && cmake -DPYTHONVERSION=3.9 ../rocAL && make -j8 && cmake --build . --target PyPackageInstall && make install

WORKDIR /workspace

#install tensorflow dependencies - Compile protos and Install TensorFlow Object Detection API.
RUN cd ~/models/research/ && \
protoc object_detection/protos/*.proto --python_out=. && \
cp object_detection/packages/tf2/setup.py . && \
python -m pip install .

#upgrade pip
RUN pip3 install --upgrade pip
13 changes: 6 additions & 7 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ These pipelines are programmable by the user using both C++ and Python APIs.

## Prerequisites

Refer [rocAL Prerequisites](https://github.com/ROCmSoftwarePlatform/rocAL#prerequisites)
Refer [rocAL Prerequisites](https://github.com/ROCm/rocAL#prerequisites)

## Build instructions

Refer [rocAL build instructions](https://github.com/ROCmSoftwarePlatform/rocAL#build-instructions)
Refer [rocAL build instructions](https://github.com/ROCm/rocAL#build-instructions)

## rocAL Python

Expand Down Expand Up @@ -81,12 +81,11 @@ amd.rocal.types are enums exported from C++ API to python. Some examples include
* From the above classes, any hybrid iterator pipeline can be created by adding augmentations.
* see example [PyTorch Simple Example](./examples). Requires PyTorch.

### installing rocAL python plugin (Python 3.6)
### installing rocAL python plugin (Python 3.9+)

* Build and install RPP
* Build and install MIVisionX which installs rocAL c++ lib
* Go to the [rocal_pybind](https://github.com/ROCm/rocAL/tree/develop/rocAL_pybind) folder
* sudo ./run.sh
* Build and install MIVisionX
* Build and install [rocAL](https://github.com/ROCm/rocAL/)

### Steps to run MLPerf Resnet50 classification training with rocAL on a system with MI50+ and ROCm

Expand All @@ -110,7 +109,7 @@ git clone -b mlperf-v1.1-rocal https://github.com/rrawther/MLPerf-mGPU

### MIVisionX Pytorch Docker

* Refer to the [docker](https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX#docker) page for prerequisites and information on building the docker
* Refer to the [docker](https://github.com/ROCm/MIVisionX#docker) page for prerequisites and information on building the docker
* Step 1: Run the docker image*

``` bash
Expand Down
Binary file added docs/data/amd-epyc-black-resize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/data/rocm-black-resize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

Use the links below to see more examples:

- [Image Processing](https://github.com/ROCmSoftwarePlatform/rocAL/tree/master/docs/examples/image_processing)
- [Image Processing](https://github.com/ROCm/rocAL/tree/master/docs/examples/image_processing)

- [Pytorch](https://github.com/ROCmSoftwarePlatform/rocAL/tree/master/docs/examples/pytorch)
- [Pytorch](https://github.com/ROCm/rocAL/tree/master/docs/examples/pytorch)
2 changes: 2 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ Use the links below to see more examples:

* `Image Processing <https://github.com/ROCm/rocAL/tree/master/docs/examples/image_processing>`_
* `Pytorch <https://github.com/ROCm/rocAL/tree/master/docs/examples/pytorch>`_
* `Tensorflow <https://github.com/ROCm/rocAL/tree/master/docs/examples/tf>`_
* `Jupyter Notebooks <https://github.com/ROCm/rocAL/tree/master/docs/examples/notebooks>`_

Loading
Loading