Kernel specialization for improved adaptability and performance on graphics processing units (GPUs)