(self, cuda_arch_list, lo=None, hi=None, saturate=None)
return filtered_cuda_arch_list
Filter CUDA arch list (no codenames) for >= low and < hi architecture
        bounds, and deduplicate.
        If saturate is provided, architectures >= hi are replaced with saturate.
Filter CUDA arch list (no codenames) for >= low and < hi architecture
        bounds, and deduplicate.
        If saturate is provided, architectures >= hi are replaced with saturate.
Filter CUDA arch list ( no codenames ) for > = low and < hi architecture bounds and deduplicate . If saturate is provided architectures > = hi are replaced with saturate .
def _filter_cuda_arch_list(self, cuda_arch_list, lo=None, hi=None, saturate=None):
        """
        Filter CUDA arch list (no codenames) for >= low and < hi architecture
        bounds, and deduplicate.
        If saturate is provided, architectures >= hi are replaced with saturate.
        """

        filtered_cuda_arch_list = []
        for arch in cuda_arch_list:
            if arch:
                if lo and version_compare(arch, '<' + lo):
                    continue
                if hi and version_compare(arch, '>=' + hi):
                    if not saturate:
                        continue
                    arch = saturate
                if arch not in filtered_cuda_arch_list:
                    filtered_cuda_arch_list.append(arch)
        return filtered_cuda_arch_list
def _filter_cuda_arch_list ( self , cuda_arch_list , lo = None , hi = None , saturate = None ) : filtered_cuda_arch_list = [ ] for arch in cuda_arch_list : if arch : if lo and version_compare ( arch , '<' + lo ) : continue if hi and version_compare ( arch , '>=' + hi ) : if not saturate : continue arch = saturate if arch not in filtered_cuda_arch_list : filtered_cuda_arch_list . append ( arch ) return filtered_cuda_arch_list