update kernel for inline compile