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: # Apply patches to various repos
  RUN mkdir -p /patch && cd /patch && \
      wget ${gem5_dist}/rocm_patches/hipBLAS.patch && \
      wget ${gem5_dist}/rocm_patches/hip.patch_v2 && \
      wget ${gem5_dist}/rocm_patches/miopen-conv.patch && \
      wget ${gem5_dist}/rocm_patches/rocBLAS.patch
  
  RUN git -C /HIP/ checkout 0e3d824e && git -C /HIP/ apply /patch/hip.patch_v2 && \
      git -C /hipBLAS/ checkout ee57787e && git -C /hipBLAS/ apply /patch/hipBLAS.patch && \
      git -C /rocBLAS/ checkout cbff4b4e && git -C /rocBLAS/ apply /patch/rocBLAS.patch && \
      git -C /rocm-cmake/ checkout 12670acb && \
      git -C /MIOpenGEMM/ checkout 9547fb9e && \
  
negative.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 /
  