Hi,
As of now LAM does not support MPI_LONG_LONG or MPI::LONG_LONG. A bug has
been filed and this issue will be resolved in a future release.
I suggest that you can go ahead with following workaround.
#include <mpi.h>
int main(void) {
MPI::Datatype foo=MPI_UNSIGNED_LONG_LONG;
MPI::Datatype bar=MPI_LONG_LONG_INT;
}
Hope this helps.
Amey S. Dharurkar
----------------------------------------------------------
Graduate Student, Indiana University
Ph. (812)331-8203
On Wed, 8 Oct 2003, Heiko Bauke wrote:
> Dear all,
>
> I have some problems with the C++ MPI datatype MPI::LONG_LONG. If I try
> to compile
>
> #include <mpi.h>
> int main(void) {
> MPI::Datatype foo=MPI::UNSIGNED_LONG_LONG;
> MPI::Datatype bar=MPI::LONG_LONG;
> }
>
>
> The linker returns the error message
>
> bauke_at_newton:~/tmp$ mpiCC -o foo foo.cc
> /tmp/ccJ6oepC.o: In function `main':
> /tmp/ccJ6oepC.o(.text+0x22): undefined reference to `MPI::LONG_LONG'
> collect2: ld returned 1 exit status
>
>
> This problem seams to be C++ specific. In C neither unsigned nor signed
> long long data type cause trouble. The code
>
> #include <mpi.h>
> int main(void) {
> MPI_Datatype foo=MPI_UNSIGNED_LONG_LONG;
> MPI_Datatype bar=MPI_LONG_LONG_INT;
> }
>
> complies without errors.
>
>
> I am using LAM 7.0.2 with gcc-3.0 and g++-3.0 under Debian 3.0.
>
> Cheers,
>
> Heiko
>
> --
> -- Eine gute Ehe beruht auf dem Talent zur Freundschaft.
> -- (Friedrich Nietzsche, 1844-1900, Menschliches I)
> -- Supercomputing in Magdeburg @ http://tina.nat.uni-magdeburg.de
> -- Heiko Bauke @ http://www.uni-magdeburg.de/bauke
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
|