LR also works for the gpu implementation with the modification to ADcost