Skip to content

Commit

Permalink
rocal repo updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshmiKumar23 committed Feb 20, 2024
1 parent a6f186d commit bfeb277
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 18 deletions.
12 changes: 8 additions & 4 deletions docker/rocal-on-ubuntu-20-with-pytorch-with-mesa.dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ARG PYTORCH_VERSION=latest
FROM rocm/pytorch:${PYTORCH_VERSION}

ARG ROCM_INSTALLER_REPO=https://repo.radeon.com/amdgpu-install/5.4/ubuntu/focal/amdgpu-install_5.4.50400-1_all.deb
ARG ROCM_INSTALLER_PACKAGE=amdgpu-install_5.4.50400-1_all.deb
ARG ROCM_INSTALLER_REPO=https://repo.radeon.com/amdgpu-install/6.0.2/ubuntu/focal/amdgpu-install_6.0.60002-1_all.deb
ARG ROCM_INSTALLER_PACKAGE=amdgpu-install_6.0.60002-1_all.deb

ENV ROCAL_DEPS_ROOT=/rocAL-deps
WORKDIR $ROCAL_DEPS_ROOT
Expand All @@ -20,7 +20,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install initramfs-tools libnuma-de
wget ${ROCM_INSTALLER_REPO} && \
sudo apt-get install -y ./${ROCM_INSTALLER_PACKAGE} && \
sudo apt-get update -y && \
sudo amdgpu-install -y --usecase=graphics,rocm
sudo amdgpu-install -y --usecase=graphics,rocm --no-32

# 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 \
Expand Down Expand Up @@ -65,5 +65,9 @@ ENV ROCAL_WORKSPACE=/workspace
WORKDIR $ROCAL_WORKSPACE

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

# Install rocAL
RUN git clone -b develop https://github.com/ROCm/rocAL && \
mkdir build && cd build && cmake ../ && make -j8 && cmake --build . --target PyPackageInstall && make install
12 changes: 8 additions & 4 deletions docker/rocal-on-ubuntu-20.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:20.04

ARG ROCM_INSTALLER_REPO=https://repo.radeon.com/amdgpu-install/5.4.1/ubuntu/focal/amdgpu-install_5.4.50401-1_all.deb
ARG ROCM_INSTALLER_PACKAGE=amdgpu-install_5.4.50401-1_all.deb
ARG ROCM_INSTALLER_REPO=https://repo.radeon.com/amdgpu-install/6.0.2/ubuntu/focal/amdgpu-install_6.0.60002-1_all.deb
ARG ROCM_INSTALLER_PACKAGE=amdgpu-install_6.0.60002-1_all.deb

ENV ROCAL_DEPS_ROOT=/rocAL-deps
WORKDIR $ROCAL_DEPS_ROOT
Expand All @@ -17,7 +17,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install initramfs-tools libnuma-de
wget ${ROCM_INSTALLER_REPO} && \
sudo apt-get install -y ./${ROCM_INSTALLER_PACKAGE} && \
sudo apt-get update -y && \
sudo amdgpu-install -y --usecase=graphics,rocm
sudo amdgpu-install -y --usecase=graphics,rocm --no-32

# 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 \
Expand Down Expand Up @@ -61,5 +61,9 @@ ENV ROCAL_WORKSPACE=/workspace
WORKDIR $ROCAL_WORKSPACE

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

# Install rocAL
RUN git clone -b develop https://github.com/ROCm/rocAL && \
mkdir build && cd build && cmake ../ && make -j8 && cmake --build . --target PyPackageInstall && make install
14 changes: 9 additions & 5 deletions docker/rocal-on-ubuntu-22.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:22.04

ARG ROCM_INSTALLER_REPO=https://repo.radeon.com/amdgpu-install/5.4.1/ubuntu/jammy/amdgpu-install_5.4.50401-1_all.deb
ARG ROCM_INSTALLER_PACKAGE=amdgpu-install_5.4.50401-1_all.deb
ARG ROCM_INSTALLER_REPO=https://repo.radeon.com/amdgpu-install/6.0.2/ubuntu/jammy/amdgpu-install_6.0.60002-1_all.deb
ARG ROCM_INSTALLER_PACKAGE=amdgpu-install_6.0.60002-1_all.deb

ENV ROCAL_DEPS_ROOT=/rocAL-deps
WORKDIR $ROCAL_DEPS_ROOT
Expand All @@ -17,7 +17,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install initramfs-tools libnuma-de
wget ${ROCM_INSTALLER_REPO} && \
sudo apt-get install -y ./${ROCM_INSTALLER_PACKAGE} && \
sudo apt-get update -y && \
sudo amdgpu-install -y --usecase=graphics,rocm
sudo amdgpu-install -y --usecase=graphics,rocm --no-32

# install OpenCV
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential libgtk2.0-dev libavcodec-dev libavformat-dev libswscale-dev python3-dev python3-numpy \
Expand Down Expand Up @@ -64,5 +64,9 @@ 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 && \
mkdir build && cd build && cmake -DBACKEND=HIP -DROCAL=OFF ../MIVisionX && make -j8 && make install

# Install rocAL
RUN git clone -b develop https://github.com/ROCm/rocAL && \
mkdir build && cd build && cmake ../ && make -j8 && cmake --build . --target PyPackageInstall && make install
11 changes: 7 additions & 4 deletions docker/rocal-with-pytorch.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get -y install rocblas rocblas-dev miopen

# 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 2.0.6.2 https://github.com/rrawther/libjpeg-turbo.git && cd libjpeg-turbo && mkdir build && cd build && \
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/GPUOpen-ProfessionalCompute-Libraries/rpp.git && cd rpp && mkdir build && cd build && \
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
Expand All @@ -53,5 +52,9 @@ ENV ROCAL_WORKSPACE=/workspace
WORKDIR $ROCAL_WORKSPACE

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

# Install rocAL
RUN git clone -b develop https://github.com/ROCm/rocAL && \
mkdir build && cd build && cmake -DPYTHONVERSION=3.9 ../ && make -j8 && cmake --build . --target PyPackageInstall && make install
2 changes: 1 addition & 1 deletion rocAL-setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@

# MIVisionX
os.system('sudo -v')
os.system('(cd '+deps_dir+'; git clone -b '+mivisionxVersion+' https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX.git; cd MIVisionX; mkdir build-'+backend+'; cd build-'+backend+'; ' +
os.system('(cd '+deps_dir+'; git clone -b '+mivisionxVersion+' https://github.com/ROCm/MIVisionX.git; cd MIVisionX; mkdir build-'+backend+'; cd build-'+backend+'; ' +
linuxCMake+' -DBACKEND='+backend+' -DROCAL=OFF ../; make -j4; sudo make install)')

print("\nrocAL Dependencies Installed with rocAL-setup.py V-"+__version__+"\n")

0 comments on commit bfeb277

Please sign in to comment.