anchor.diff:      -DMIOPEN_CACHE_DIR=/.cache/miopen \
       -DMIOPEN_AMDGCN_ASSEMBLER_PATH=/opt/rocm/opencl/bin \
       -DHALF_INCLUDE_DIR=/MIOpen/half-1.12.0/include \
  -    -DCMAKE_CXX_FLAGS="-isystem /usr/include/x86_64-linux-gnu" .. && \
  +    -DCMAKE_CXX_FLAGS="-isystem /usr/include/x86_64-linux-gnu -DDGPU" .. && \
       make -j$(nproc) && make install && rm -rf *
   
   # Re-set defaults
  
positive.code: # Always use python3 and create a link to config command for gem5 to find
  RUN ln -sf /usr/bin/python3 /usr/bin/python
  RUN ln -sf /usr/bin/python3.9-config /usr/bin/python3-config
  WORKDIR /
  
negative.code: ARG gem5_dist=http://dist.gem5.org/dist/develop
  
  # Install ROCm 1.6 binaries
  RUN wget -qO- ${gem5_dist}/apt_1.6.4.tar.bz2 \
      | tar -xjv \
      && cd apt_1.6.4/pool/main/ \
      && dpkg -i h/hsakmt-roct-dev/* \
      && dpkg -i h/hsa-ext-rocr-dev/* \
      && dpkg -i h/hsa-rocr-dev/* \
      && dpkg -i r/rocm-utils/* \
      && dpkg -i h/hcc/* \
      && dpkg -i r/rocm-opencl/* \
      && dpkg -i r/rocm-opencl-dev/* \
      && dpkg -i h/hip_base/* \
      && dpkg -i h/hip_hcc/*
  
  # Get ROCm libraries we need to compile from source (and ROCm-profiler)
  RUN git clone --single-branch https://github.com/ROCmSoftwarePlatform/hipBLAS/ && \
      git clone --single-branch https://github.com/ROCmSoftwarePlatform/rocBLAS/ && \
      git clone --single-branch https://github.com/ROCmSoftwarePlatform/MIOpenGEMM/ && \
      git clone --single-branch https://github.com/ROCmSoftwarePlatform/MIOpen/ && \
  