File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1766,7 +1766,10 @@ def estimated_exec_time(self, tiling_config):
1766
1766
)
1767
1767
return (total_time , nsync )
1768
1768
1769
- def __call__ (self ) -> Tuple [ParametricTiling , ...]:
1769
+ def _get_all_configurations (self ) -> FrozenSet [ParametricTiling ]:
1770
+ """
1771
+ Returns a :class:`frozenset` of all configurations in our search space.
1772
+ """
1770
1773
from itertools import product
1771
1774
1772
1775
threads_to_cells = {}
@@ -1845,9 +1848,11 @@ def get_eta_shared_mem_alias(tiles):
1845
1848
False ,
1846
1849
)
1847
1850
)
1851
+ return frozenset (params )
1848
1852
1849
- # sort the parameters with highest occupancy.
1850
- params .sort (key = lambda P : self .estimated_exec_time (P ))
1853
+ def __call__ (self ) -> Tuple [ParametricTiling , ...]:
1854
+ params = sorted (self ._get_all_configurations (),
1855
+ key = self .estimated_exec_time )
1851
1856
1852
1857
return tuple (params [: self .num_param_tiling_candidates ])
1853
1858
You can’t perform that action at this time.
0 commit comments