文件中有一些选项可以在命令行中使用-D进行选择,如下所示:OPTION(USE_MPI "Use the MPI library for parallelization" OFF)OPTION(TESTING "Enable testing of both--help
USE_MPI - Use the MPI lib
. # no parallelization conflicts (can run at the same time as p*, e*) ...rules.... # no parallelization conflicts (can run at the same time as p*, e*)
...rules...
# fit using all data, on the best detected classifier<ipython-input-49-61dd1e818fa4> in <module>
5 n_jobs=-1, # number of cores to use for parallelization
:return x**x 我可以以这种方式直接在循环中处理(这就是我希望在代码末尾得到结果的方式,如果可能的话,使用相同的顺序): #without parallelizationprocessedData = [complicated_function(x) for x in inputData] 为了进行并行处理,我查看了一些教程,并编写了以下代码: #with parallelization