Skip to content
Register a Target

Register a Target

Once the host is up and running with all the needed software, you will need to register your GitLab Runner to the dAIEdge-VLab. This step is not yet automated, thus, you will need to contact the dAIEdge-VLab team for them to give you the register token.

Request a target UID

The target UID is used to identify the target in the dAIEdge-VLab. This UID is registered in the blockchain and is used to identify the results produced by the target. This UID must be unique and provided by the dAIEdge-VLab register service. If the target UID is not genuine, the dAIEdge-VLab scheduled benchmark will not run and the results will not be stored in the blockchain.

Warning: The target UID is mandatory to run the dAIEdge-VLab. You will need to provide it in the target.json file of your host configuration file.

Gather mandatory information

The mandatory information are :

  • Target name : The name of the target, mainly the processor/accelerator reference.
  • Runtime : The runtime used by the developed target.
  • Extensions : File extensions supported by the Runtime as input.
  • Description : A brief description of the hardware and runtime that compose the target. Focused mainly on the elements relevant for the dAIEdge-VLab (memory, specific hardware for AI application).

Register the target

Go to the dAIEdge-VLab website and login with your account. If you don’t have an account, you can create one here.

Once you are logged in, go to the device management plage and click on the button Add device. This will open a form where you will need to fill in the mandatory information for your target.

Lookup for the target family that best match your target. If you don’t find any, you can add a new family by clicking on the button Create new family type. The family is used to group targets that are similar in terms of hardware.

Once you have selected the family, press Next to go to the next step. You will then need to select the runtime that best match your target. If you don’t find any, you can add a new runtime by clicking on the button Create new engine. The runtime is used to group targets that are similar in terms of software. You can associate multiple runtimes to the same target if needed.

Once you have selected the engines, press Next to go to the next step. You can then add some notes for your target. This is optional, but it is recommended to add some notes to help you remember the details of your target.

Developement mode: This toggle is used to indicate that the target is still in development. This makes the target only available to you and the admin of the dAIEdge-VLab. This is useful if you want to test your target without making it available to other users. Once the target is ready, you can disable this toggle to make it available to all users.

Setup the target.json file

Once you have filled the form and submitted it, you will see your newly registered target in the list of your targets. You can click on the edit button to see the details of your target and to get the target UID and a template of the target.json file that you can use to fill in the necessary information for your target. Have a look at the target configuration file documentation to understand how to use it.

target.json
{
"family": [
    {
      "target_uid": "string",
      "engines": {
        "engine1": {
          "image": "string",
          "supported_types": [
            "TYPE1"
          ],
          "volumes": [
            "string"
          ],
          "devices": [
            "string"
          ],
          "env": {
            "V_ENV_1": "string",
            "V_ENV_2": "string",
          },
          "auth": {
            "registry": "string",
            "username": "string",
            "password": "string"
          }
        }
      }
    }
  ]
}
Warning: Regarding the engine associated to your target, only the capabilites defined in the target.json file will be advertised to the dAIEdge-VLab. If you want to add more capabilities, you will need to update the target.json file. Adding engines on this web interface will not update the target.json file, it will only help you generate the correct target.json file.

Access the configuration

The target.json file is located in the nomad folder of the cloned repository (see Setup a Host). This file is used to configure the target and to provide the necessary information for the dAIEdge-VLab to run the benchmarks on the target. You will need to fill in this file with the necessary information for your target.

This is where you use the template provided by the API or the web interface with the necessary information for your target.

Note: The location of the target.json file is not mandatory, you can choose to put it in another location as long as you provide the correct path in the /etc/nomad/nomad.hcl configuration file of the Nomad agent.

Test the configuration

Once you have filled the target.json file with the necessary information, you should be able to see your newly integrated target as a selectable target in the web interface. Try to benchmark it, you should be able to see the results of the benchmark in the web interface. As nothing is implemented yet, the results should be empty or show some errors.

If you picked an existing family and runtime, you should try to run the benchmark using the target_uid provided by the dAIEdge-VLab to force the use of your target and not the existing one. If you don’t do that, the dAIEdge-VLab may use an existing target that has the same family and runtime as yours, and you won’t be able to see the results of your target in the web interface. To do that, you should launch the benchmark using the Python Client and specify the target_uid in the request.

Troubleshooting

Common issues that you might encounter include:

  • The target is not visible in the web interface : This may be due to an error in the target.json file. Make sure that the file is valid and that all the necessary information is provided. You can use a json validator to check the validity of your json file.

If you run the command systemctl status nomad on the host machine, you should be able to see the logs of the Nomad agent. If there is an error in the target.json file, you should see an error message indicating that the plugin edgedevice cannot load the inventory. Fixing the error in the target.json file and saving it should allow the Nomad agent to load the inventory.

The target.json file is periodically read by the Nomad agent, so if you make changes to the file, you should wait a few seconds for the Nomad agent to read the file and to update the inventory.

Once the target is registered and the target.json file is filled with the necessary information, you can start implementing the benchmarking scripts and test your implementation by simulating the pipeline locally or by running the benchmarks on the dAIEdge-VLab. See the next steps for more information on how to implement the benchmarking scripts and how to test your implementation.