Unify CUDA and OpenCL lookup-table creation