我的代码有一个包含system()的大for循环。也就是说。time is taken up with the command below}
这个for循环可以很容易地并行化,只要迭代不依赖于以前的迭代。通常,我会使用MPI或openMP来并行循环。但是,我不知道如何处理system()。有一个类似的
有没有一种方法可以跨越多个函数的OpenMP并行区域?// Have this code be run as a worksharing loop by the OMP threads }在本例中,我希望在run函数的omp并行区域中启动的线程进入foo,并将其作为一个工作共享循环运行,这与它们在</em