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.
在 C 绑定中,MPI_Comm_size 返回一个int类型值。C中的最大值int是32767。是不是意味着一个通信器最多可以创建32K个进程?但这似乎太小了,因为我知道有些应用程序可以在数百万个内核上运行。我错过了什么?
int
从 POSIX 手册页limits.h:
limits.h
{INT_MAX} Maximum value of an int. Minimum Acceptable Value: 2 147 483 647
最大值中的最小值int为数百万 (2^31 - 1)。