Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用了 MPICH2。当我使用 mpiexec 启动我的应用程序时,它们在远程主机 (Win7) 上运行有 25% 的 CPU 使用率。如果这可以提高我的应用程序性能,我想增加百分比。我希望我的远程计算机专用于我的计算。我能怎么做?
谢谢
对于 MPI 进程,您的进程数应与机器的核心数总和相匹配(假设 CPU 繁重的工作负载)。如果 MPI 进程-np 4在四核机器上运行,它将消耗所有四个内核,您将看到您的 CPU 使用率接近 100%。如果它-np 1在机箱的 CPU 负载下运行,则大约为 25%(因为只有四分之一的核心专用于您的计算)。任何额外的增加,他们将开始争夺 CPU 时间。
-np 4
-np 1