Now casting the isFinished buffer to a pointer works. Time to see if thrust reduce also works.