def get_cu_mask(total_count, active_cu):
    """ Returns a compute-unit mask as a binary string, with a single compute
    unit set. """
    a = ["0"] * total_count
    a[active_cu] = "1"
    return "".join(a)