Add gpu hrr subroutine