added defines to create cpu and gpu kernels