Use lsgpu to iterate over GPUs; free() gpulist when done.