On-CPU offset calculation, applied on GPU