To use a metal kernel, you must access it from inside a CIFilter. See how to create a filter that utilizes your freshly forged kernel.
This is a companion discussion topic for the original entry at https://www.kodeco.com/5428948-core-image-from-ciimage-to-metal-and-beyond/lessons/12