Skip to content

Hardware Configuration

Nicholas Corgan edited this page Jul 31, 2020 · 4 revisions

PothosGPU blocks can be executed on any GPU or CPU connected to the host machine. Each block takes in the device name as an input parameter on construction.

Querying hardware configuration

To display the list of devices that can be used to execute PothosGPU blocks, use PothosUtil as shown below:

user@machine:~$ PothosUtil --device-info=gpu
>>> Querying device info: /devices/gpu/info
{
    "PothosGPU Device": [
        {
            "Compute": "1.2",
            "Memory Step Size": 1024,
            "Name": "GeForce_RTX_2070_SUPER",
            "Platform": "OpenCL",
            "Toolkit": "NVIDIA CUDA"
        },
        {
            "Compute": "0.0",
            "Memory Step Size": 1024,
            "Name": "Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz",
            "Platform": "CPU",
            "Toolkit": "GNU Compiler Collection(GCC/G++) 7.5.0"
        }
    ],
    "PothosGPU Library Info": {
        "ArrayFire Version": "3.7.0",
        "Available Backends": "OpenCL, CPU"
    }
}

This information is also displayed in PothosFlow's System Configuration tab, as shown below:

https://raw.githubusercontent.com/wiki/pothosware/PothosGPU/images/PothosFlowSystemInfo.png