-
Notifications
You must be signed in to change notification settings - Fork 73
Docker: PyTorch with MIVisionX
Kiriti Gowda edited this page Jan 11, 2021
·
1 revision
- Pull latest rocm/pytorch docker
sudo docker pull rocm/pytorch:rocm3.7_ubuntu18.04_py3.6_pytorch
- Install numactl
sudo apt-get install numactl
- Install DLLOGGER
pip3.6 install git+https://github.com/NVIDIA/dllogger
- Clone this github repo to fetch pre-requisites
git clone https://github.com/LakshmiKumar23/MLPerf-mGPU-dev/
cd single_stage_detector
pip3 install -r requirements.txt
python3 -m pip install pycocotools==2.0.0
pip3.6 install numpy==1.16
- Follow the production ready installation step from this confluence page
pip3.6 install -v --install-option="--cpp_ext" --install-option="--cuda_ext" 'git+https://github.com/ROCmSoftwarePlatform/apex.git'
- Clone MIVisionX. Run the setup script with '--neural_net off' option.
git clone https://github.com/GPUOpen-ProfessionalCompute-Libraries/MIVisionX
cd MIVisionX
python MIVisionX-setup.py --neural_net off
- Build and install MIVisionX. Comment out lines for find_package - miopen and miopengemm - in MIVisionX/amd_openvx_extensions/CMakeLists.txt and MIVisionX/apps/CMakeLists.txt
cd MIVisionX
mkdir build
cd build
cmake -DNEURAL_NET=OFF ../
make -j
sudo make install
export PATH=$PATH:/opt/rocm/mivisionx/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/mivisionx/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/rpp/lib
- Setup rali_pybind
sudo ./run.sh
- Commit and save the new docker state
sudo docker commit <container ID> <new_image_name:tag_name>
sudo docker push <new_image_name:tag_name>
Copyright (c) 2015 - 2023 Advanced Micro Devices, Inc. All rights reserved.