Port trace algorithm to opencl. =)