def get_shared_size(L1_Preferred):
    """
    Returns the size (in number of doubles) of shared memory for sm_20

    Parameters
    ----------
    L1_Preferred : bool
        If true, prefer a larger L1 cache over more shared memory (recommended)
    """
    if not L1_Preferred:
        return 49152 / 8
    else:
        return 16384 / 8
