OpenCL kernel modules support
Common kernel and matrix fix to support new kernel system