Increase stack size if kernel is too big
Autotuner: code clean up