def get_gpu_str(devices):
    """Produce string of GPUs given the list of int

    Args:
        devices (list/tupple): list of device numbers

    Return:
        string of device numbers, comma separated

    """
    gpu_str = ''
    for gpu in devices:
        gpu_str += str(gpu) + ','
    return gpu_str[:-1]