Largest Number Datatype MPI

172 views Asked by At

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!.

1

There are 1 answers

2
Simon Gibbons On

The largest primitive integer data type would be an MPI_UINT64_T which would get you up to 2^64 - 1

For 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.