MareArts ANPR mobile app

1/09/2026

🚙🚙 AUTOMATIC NUMBER PLATE RECOGNITION (ANPR, LPR, ALPR) solution

Step-by-Step: Building MIOpen and hipDNN with Ninja

 

Step-by-Step: Building MIOpen and hipDNN with Ninja

Step 1: Navigate to the monorepo

git clone https://github.com/ROCm/rocm-libraries.git
>cd rocm-libraries

Step 2: Create a build directory

Step 3: Configure with CMake using Ninja

What this does:
  • -GNinja - Use Ninja build system (faster than Make)
  • -DCMAKE_BUILD_TYPE=Release - Optimized build
  • -DCMAKE_INSTALL_PREFIX=/opt/rocm - Install location
  • -DCMAKE_PREFIX_PATH=/opt/rocm - Where to find ROCm dependencies
  • -DROCM_LIBS_ENABLE_COMPONENTS="miopen;hipdnn" - Build only these two projects + their dependencies

Step 4: Build both projects

Or if you want to limit parallel jobs (e.g., for memory constraints):

Step 5: Run tests (optional)

Step 6: Install (optional)


Alternative: Build with specific options

If you need more control, you can add these flags:

Useful Ninja Commands


Expected Build Time

  • Configuration (CMake)~30 seconds to 2 minutes
  • MIOpen build: ~20-40 minutes (first time)
  • hipDNN build: ~5-10 minutes
  • Total~30-50 minutes on MI250X system

What Gets Built

After successful build, you'll have:

If You Encounter Issues

  1. Missing dependencies error:
  1. Out of memory during build:
  1. See what would be built: