문제

I would like to send/receive a vector of type off_t using MPI, but I've been reading that off_t type can be different things in different platforms. How can I do this?

도움이 되었습니까?

해결책

Use something "sufficiently large" instead, perhaps int64_t if you need the range of most modern general-purpose operating systems.

Of course, that'd probably mean you need to manually convert, to make it type-safe all the way, which might be costly if you're doing this for large vectors.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top