Reference OpenCL implementation for ham lattice (WIP)