// This program demonstrates how to rebind a cudaFlowCapturer task // to another GPU operation. #include #include int main() { size_t N = 10000; auto data = tf::cuda_malloc_shared(N); tf::cudaFlowCapturer cudaflow; tf::cudaStream stream; // set data to -1 for(size_t i=0; i