Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    
    MPI_Init() or die("Error: $!\n");
    MPI_Finalize();
    
  2. or download this
    > perl -c init.pl
    Can't load '/usr/local/lib/perl/5.10.0/auto/Parallel/MPI/Simple/Simple
    +.so' for module Parallel::MPI::Simple: /usr/local/lib/perl/5.10.0/aut
    +o/Parallel/MPI/Simple/Simple.so: undefined symbol: ompi_mpi_char at /
    +usr/lib/perl/5.10/DynaLoader.pm line 196.
    
  3. or download this
    > ldd usr/local/lib/perl/5.10.0/auto/Parallel/MPI/Simple/Simple.so
            linux-gate.so.1 =>  (0xb8058000)
    ...
            libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7bd0000)
            libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7bc1000)
            /lib/ld-linux.so.2 (0xb8059000)
    
  4. or download this
    > strings /usr/local/lib/perl/5.10.0/auto/Parallel/MPI/Simple/Simple.s
    +o | grep mpi
    ompi_mpi_comm_world
    ...
    ompi_mpi_int
    ompi_mpi_char
    libmpich-p4mpd.so.1.0
    
  5. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    
    MPI_Init() or die("Error: $!\n");
    MPI_Finalize();
    
  6. or download this
    > perl -c  init.pl
    init.pl syntax OK
    
  7. or download this
    > mpirun -np 2 perl init.pl
    MPI_Init: no arguments found in the argv at init.pl line 7.
    MPI_Init: no arguments found in the argv at init.pl line 7.
    
  8. or download this
    >  mpirun -np 2 perl init.pl  asdada
    Fatal error in MPI_Errhandler_set: Invalid communicator, error stack:
    ...
    Fatal error in MPI_Errhandler_set: Invalid communicator, error stack:
    MPI_Errhandler_set(121): MPI_Errhandler_set(comm=0x5b, errh=0x78) fail
    +ed
    MPI_Errhandler_set(72).: Invalid communicator