What is the largest C number datatype MPI supports?
Is there some way to use intmax_t
?
I want to calculate the factorial, but I can't get over 170!.
What is the largest C number datatype MPI supports?
Is there some way to use intmax_t
?
I want to calculate the factorial, but I can't get over 170!.
The largest primitive integer data type would be an
MPI_UINT64_T
which would get you up to 2^64 - 1For larger integers you would have to use a library such as GMP which supports arbitary precision arithmatic. You would then have to set up an MPI derived data type to use them with MPI though.