jansel / opentuner

An extensible framework for program autotuning
http://opentuner.org/
MIT License
382 stars 112 forks source link

Fix PseudoAnnealingSearch and Torczon techniques #156

Closed Javiercr97 closed 2 years ago

Javiercr97 commented 2 years ago

Since Python 3.x the .sort(...) function cannot take a parameter cmp anymore. Some techniques were updated to to use .sort(key=cmp_to_key(objective.compare)), but this update was missing from these 2 techniques. This patch adds it to both techniques and allows their use with Python 3.x.

jansel commented 2 years ago

Thanks!