Modified the kernel to work with conitguous float data.