Obtaining the Source Code
The ScaNN source code is stored in the scann directory of the google-research code repository. Version 1.2.10 is represented by a commit ID and does not have a fixed branch or tag. You need to download the google-research code repository and switch to the corresponding commit ID for ScaNN.
- Use PuTTY to log in to the server as the root user and go to the /path/to/scann directory for compiling the ScaNN source code.
- Go to the ScaNN source code compilation directory.
1cd /path/to/scann
- Configure a network proxy for Git.
1 2 3
git config --global http.sslVerify false git config --global https.sslverify false git config --global http.proxy "http://Username:Password@Proxy_IP_address:Proxy_port"
- Download the google-research source code.
1 2 3
git clone https://github.com/google-research/google-research.git --depth=1 cd google-research git fetch --unshallow

- Switch to ScaNN 1.2.10.
1git checkout 03c4c851a28dffe0244c65089e68d6cbf73c730b

The preceding command output shows that the version has been switched to ScaNN release 1.2.10.
Parent topic: Obtaining the Source Code and Applying the Patch