create_kernel_functions function

Create kernel functions based on configuration