might have finished cuda code