All Products
Search
Document Center

FPGA as a Service:Obtain faasutil

Last Updated:Nov 17, 2023

faasutil is a next-generation command-line tool provided by Alibaba Cloud FPGA as a Service (FaaS) and can make FPGA-accelerated instances easier to use, and more stable, secure, and scalable. You can use faasutil to run simple commands to configure environments, and generate and load FPGA images without caring about the underlying implementation. This topic describes how to obtain faasutil.

Prerequisites

An FPGA-accelerated instance is created and connected by using a tool. For more information, see Connection method overview.

Procedure

  1. Run the following command to check whether the /dev/virtio-ports/FaaS.agent file exists on the FPGA-accelerated instance:

    ls -l /dev/virtio-ports/FaaS.agent
    • If the file exists, go to the next step.

    • If the file does not exist, the current FPGA-accelerated instance does not support faasutil. Use faascmd instead. For more information, see faascmd overview.

  2. Run the following command to download faasutil:

    wget https://fpga-tools.oss-cn-shanghai.aliyuncs.com/faascmd_bin/v2_0/faasutil
  3. Run the following command to make faasutil executable:

    chmod +x faasutil