To allow profiling on a remote Linux* system, follow the steps below:
Then proceed to register the remote target in the DL Workbench.
Your target system must meet the following requirements:
NOTE: The provided combination of dependencies versions is recommended. Other combinations are not validated.
Prerequisite | Requirement |
---|---|
Operating system | Ubuntu* 18.04 |
Internet connection | Required |
Dependencies | OpenSSH* 1:7.6p1-4ubuntu0.3 SSH* 1:7.6p1-4ubuntu0.3 Python* 3.5, 3.6, 3.7, or 3.8 pip* 18 python3-distutils* 3.6.9-1~18.04 python3-apt* 1.6.5ubuntu0.3 python3-dev* 3.6.7-1~18.04 libgtk-3-0* 3.22.30-1ubuntu4 GCC* 4:7.4.0-1ubuntu2.3 |
Run the commands below to install the dependencies:
NOTE: The command below installs the highest versions of the packages. To specify a package version, add
=<version>
after the name of a package.
Perform all steps in this section on your host machine. Choose the option that works for you:
NOTE: This option assumes your host machine has the
openssh-server
package installed. If not, run the following:sudo apt updatesudo apt install openssh-server
Step 1: Generate an SSH key pair with the command below:
Save keys to default files and do not use a passphrase.
Step 2: Copy the public key to the target machine using the command below. Replace USERNAME
with your username on the target machine, and HOSTNAME
with the hostname or IP of the target machine.
NOTE: On macOS, install
ssh-copy-id
first. Use the command below:brew install ssh-copy-idSee Ssh-copy-id on Mac for other options.
Step 3: Verify that you can connect to your target machine without a password by running the command below. Replace USERNAME
with your username on the target machine, and HOSTNAME
with the hostname or IPv4 of the target machine.
The command should connect you to the target machine without a password.
NOTE: If you do not have OpenSSH on your host machine, follow the OpenSSH installation guide.
Step 1: In a Windows PowerShell* terminal, generate an SSH key pair with the command below:
Save the keys to default files and do not use a passphrase. The keys will be stored at C:\Users\<username>/.ssh/id_rsa
.
Step 2: Manually copy the public key to the target machine. Follow the steps below:
authorized_keys
. The authorized_keys
file is typically found in the .ssh
directory for the target user. For the root user, this would be in /root/.ssh
. For other users, it would be in the /home/<username>
directory.Step 3: Verify that you can connect to your target machine without a password by running the command below. Replace USERNAME
with your username on the target machine, and HOSTNAME
with the hostname or IP of the target machine.
The command should connect you to the target machine without a password.
DL Workbench tries to set up GPU and MYRIAD devices on the target machine automatically. For this, sudo privileges are required. Skip this section if your devices are configured correctly or you do not have them on the target.
sudo
group. Replace USERNAME
with the username of the user you want to grant sudo permissions to and run the command below: /etc/sudoers.tmp
file as root using the command below: sudoers
file, add the line provided below. Replace USERNAME
with the username of the user you want to grant sudo permissions to. NOTE: Be careful when editing the
sudoers
file and apply only the required changes.
USERNAME
received sudo permissions if you are not asked for a sudo password during the execution of the command above.If you do not have the rights to perform these steps, contact your system administrator or set up the devices manually by following the Steps for Intel® Processor Graphics (GPU) and Steps for Intel® Movidius™ Neural Compute Stick and Intel® Neural Compute Stick 2 sections of Install Intel® Distribution of OpenVINO™ toolkit for Linux.