Currently, gpu-feature-discovery assumes that all GPUs attached to a node are identical. Sadly this assumption isn't valid for a few of our nodes. These nodes have a mix of 16GB and 32GB V100s. Gpu-feature-discovery only examines the first GPU, so will label our mixed nodes as having 32GB if the first GPU does, regardless of other GPUs.
This PR examines all GPUs, and doesn't label product type or memory if there is more than one distinct product types. Users who don't care about these details can still match against the node, and those that do care won't.
Currently, gpu-feature-discovery assumes that all GPUs attached to a node are identical. Sadly this assumption isn't valid for a few of our nodes. These nodes have a mix of 16GB and 32GB V100s. Gpu-feature-discovery only examines the first GPU, so will label our mixed nodes as having 32GB if the first GPU does, regardless of other GPUs.
This PR examines all GPUs, and doesn't label product type or memory if there is more than one distinct product types. Users who don't care about these details can still match against the node, and those that do care won't.