Appendix G - Setting Up and Testing a GPGPU

Requirements for GPGPU testing

  • SUT prepared for testing as described in this document

  • nVidia GPGPU(s) installed in SUT

    • At this time, only nVidia GPGPUs are supported for Certification Testing.

  • Internet connection

    • The SUT must be able to talk to the Internet in order to download a significant number of packages from the nVidia repositories.

  • Installation of the checkbox-provider-gpgpu package – type sudo apt install checkbox-provider-gpgpu after deploying the node. This package is installed from the Certification PPA, which should be enabled when you deployed the node or installed Checkbox manually.

Setting Up a GPGPU for Testing

New tests cases have been added to test that nVidia GPGPUs work with Ubuntu. With this addition, GPGPUs can be certified on any Ubuntu LTS Release or Point Release starting with Ubuntu 18.04 LTS using the 4.15 kernel.

The tool to set up the GPGPU environment for testing is included in the checkbox-provider-certification-server package and is installed any time the Server Certification suite is installed on a SUT for testing.

To set up the GPGPU you simply need to do the following:

sudo gpu-setup.sh

This will add the nVidia repo and GPG key to the Ubuntu installation on the SUT, update the Apt cache and install the Cuda Toolkit and appropriate nVidia drivers for the GPGPUs installed in the SUT. It will also download the source for a tool called gpu-burn, an open source stress test for nVidia GPGPUs. Then the script will compile the gpu-burn tool and exit.

Once the script is complete, you must reboot the SUT to ensure the correct nVidia driver is loaded.

Testing the GPGPU(s)

To test the GPGPU, you only need to run the test-gpgpu command as a normal user, much in the same manner as you run any of the certify-* or test-* commands provided by the canonical-certification-server package.

Running test-gpgpu will execute gpu-burn for approximately 30 minutes to 1 hour against all discovered GPGPUs in the SUT in parallel. Once testing is complete, the tool will upload results to the SUT’s Hardware Entry on the Certification Portal. You do not need to create a separate certificate request for GPGPU test results, simply add a note to the certificate created from the main test results with a link to the GPGPU submission and the certification team will review them together.