it is illegal to pass varying parapamter to a task function with nvptx target