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.
所以我有一个代码,我想在 1、2 和 4 个线程上运行。使用mpirun -np 1 n代码运行完美。但是当我使用 2 或 4 个线程运行它时,只有主部分有效。代码在这里可用。
mpirun -np 1 n