Add interface for CustomKernel on GP.