A perfect hash code for CPUs and GPUs using OpenCL