Migrated from OpenCL Template to pure Cloo. Fixed invalid memory access on OpenCL (dedicated GPU memory issue).