Page MenuHomePhabricator

Getting Started With Arm NN
Updated 1,774 Days AgoPublic

Version 1 of 10: You are viewing an older version of this document, as it appeared on Jun 10 2019, 10:43 AM.

This page details how to get started with Arm NN. The instructions assume that you are using Ubuntu 16.04, but these instructions should work on most Linux distributions.


Update the apt repository

Before we use the Ubuntu apt repository, we need to make sure it is up-to-date. From a terminal, enter the following command:

$ sudo apt update

Create a GitHub account

You will need to create a GitHub account in order to log into the ML Platform gerrit server. Your GitHub account is created with your email address.


Login to ML Platform gerrit server and add SSH key

Login to the ML Platform gerrit server using your github credentials, then add your ssh key (see details below).

Generating and SSH key

Before getting the source, you will need to setup an SSH key for yourself. From a terminal, enter the following commands:

$ ssh-keygen

When prompted for a file location, press enter without any path to use the default. This should default to something like /home/username/.ssh/id_rsa.

You will then be prompted for a pass phrase. Use some memorable passphrase because you will need to enter it whenever you use the SSH key.

Now change the current directory to the one mentioned above. There should be two files: id_rsa and id_rsa.pub.

Installing the SSH key for https://review.mlplatform.org

In order to connect to the Linaro MLPlatform gerrit server via SSH, you will need to register your public key that was generated above. Open the id_rsa.pub file generated in the previous step in a text editor of your choice and copy the contents to the clipboard.

Go to https://review.mlplatform.org/#/settings/ssh-keys and log in using your credentials. Paste the clipboard contents into the textbox as seen below. Click Add.

{F84}


Install git

If you do not have git installed on your Ubuntu system, you must install it. On Ubuntu 16.04 this can be done with the commands:

$ sudo apt-get update
$ sudo apt-get install git

Getting the Development Environment source

Now that we have registered our SSH key with the gerrit repository, we can clone the repository onto your machine. In the following example, we will create a dev folder in our home folder and clone the repos there.

Go into the folder where you want to have the ARM NN Development Enviroment copied into (e.g. ~/dev).

$ git clone ssh://$GITHUB_USERNAME@review.mlplatform.org:29418/ml/armnn && scp -p -P 29418 $GITHUB_USERNAME@review.mlplatform.org:hooks/commit-msg .git/hooks/
$ git clone ssh://$GITHUB_USERNAME@review.mlplatform.org:29418/ml/android-nn-driver && scp -p -P 29418 $GITHUB_USERNAME@review.mlplatform.org:hooks/commit-msg .git/hooks/
Last Author
brianjoycearm
Last Edited
Jun 10 2019, 10:43 AM

Event Timeline

brianjoycearm moved this document from Restricted Phriction Wiki Document.Jun 10 2019, 10:43 AM
brianjoycearm changed the edit policy from "Custom Policy" to "Custom Policy".
FinnWilliamsArm edited the content of this document. (Show Details)Jun 26 2019, 2:56 PM
FinnWilliamsArm edited the content of this document. (Show Details)Jun 26 2019, 3:02 PM
brianjoycearm edited the content of this document. (Show Details)Jun 27 2019, 10:49 AM
FinnWilliamsArm edited the content of this document. (Show Details)Jun 27 2019, 1:12 PM
FinnWilliamsArm published a new version of this document.Jun 27 2019, 3:27 PM
brianjoycearm edited the content of this document. (Show Details)Jun 28 2019, 1:29 PM
brianjoycearm edited the content of this document. (Show Details)Jun 28 2019, 1:32 PM
brianjoycearm published a new version of this document.
brianjoycearm changed the edit policy from "Custom Policy" to "Custom Policy".
brianjoycearm changed the edit policy from "Custom Policy" to "Custom Policy".
brianjoycearm changed the edit policy from "Custom Policy" to "Custom Policy".
FinnWilliamsArm edited the content of this document. (Show Details)Jul 3 2019, 11:04 AM
FinnWilliamsArm edited the content of this document. (Show Details)Jul 3 2019, 2:27 PM
FinnWilliamsArm edited the content of this document. (Show Details)Jul 3 2019, 2:35 PM
FinnWilliamsArm published a new version of this document.
brianjoycearm changed the visibility from "Custom Policy" to "All Users".Jul 5 2019, 8:38 AM
MatthewARM changed the visibility from "All Users" to "Public (No Login Required)".Jun 18 2020, 8:58 AM