Adding compact hash code to gpu