Establish the Realistic Goal for the Overall Application - 2023.1 English

Vitis Tutorials: Hardware Acceleration (XD099)

Document ID
XD099
Release Date
2023-08-02
Version
2023.1 English

The Compute Score function is calculated on the CPU. Based on your calculations in the previous lab, it takes about 380 ms. You cannot accelerate the function further for a given CPU. Even if the FPGA can compute the hash function in zero time, the application will still take at the minimum of 380 ms, but running the FPGA in no time is also not realistic. You also need to account for sending the data from the CPU to the FPGA and retrieving it back to the CPU from the FPGA which will also add a delay.

  1. Set the goal for the application such that the Compute Hash function (in Hardware) should run as fast as the Compute Score on the CPU so that the hash function does not become the bottleneck.

    1. Use 100,000 input documents for your calculations. This is the equivalent of 350M words with approximately 3,500 words per document.

    2. Keep only the compute hash function in the FPGA. In software, this function takes about 2569 ms.

    The goal of application has been established to compute the hashes and overall score of the 10,000 documents in about 380 ms.