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.
- Create a 0001-x86-to-arm64.patch file for the ScaNN source code.
- Create the 0001-x86-to-arm64.patch file.
1vi 0001-x86-to-arm64.patch
- 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.
- Press Esc, type :wq and press Enter to save the file and exit.
- Create the 0001-x86-to-arm64.patch file.
- Apply the ScaNN source code patch.
1git apply 0001-x86-to-arm64.patch
If the command output does not contain error information, the patch is successfully applied.
- Verify the patch integrity.
1git diff --stat

If the command output shows the same number of modified lines as the preceding figure, the patch is correctly applied.
Parent topic: Obtaining the Source Code and Applying the Patch