Rate This Document
Findability
Accuracy
Completeness
Readability

Applying the Patch

ScaNN cannot directly run on the Arm platform. After obtaining the ScaNN source code, you need to apply the Arm compatibility patch so that ScaNN can run on the Arm platform.

  1. Create a 0001-x86-to-arm64.patch file for the ScaNN source code.
    1. Create the 0001-x86-to-arm64.patch file.
      1
      vi 0001-x86-to-arm64.patch
      
    2. Press i to enter the insert mode and edit the 0001-x86-to-arm64.patch file. For details about the file content, see ScaNN Source Code Patch File.
    3. Press Esc, type :wq and press Enter to save the file and exit.
  2. Apply the ScaNN source code patch.
    1
    git apply 0001-x86-to-arm64.patch
    

    If the command output does not contain error information, the patch is successfully applied.

  3. Verify the patch integrity.
    1
    git diff --stat
    

    If the command output shows the same number of modified lines as the preceding figure, the patch is correctly applied.