Obtains id of kernel function for cpp

kernel_cpp(type)

Arguments

type

name of kernel