Add index in cutorch