implement auto-scaling in kernels

Link: https://github.com/GeneAssembly/biosal/issues/416
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>