Parallel::MPI::SimpleParallel::MPI::Simple is a simple Perl module. | |
Download |
Parallel::MPI::Simple Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Alex Gough
- Publisher web site:
- http://search.cpan.org/~ajgough/Data-Dimensions-0.04/lib/Data/Dimensions.pm
Parallel::MPI::Simple Tags
Parallel::MPI::Simple Description
Parallel::MPI::Simple is a simple Perl module. Parallel::MPI::Simple is a simple Perl module.SYNOPSIS mpirun -np 2 perl script.pl #!perl use Parallel::MPI::Simple; MPI_Init(); my $rank = MPI_Comm_rank(MPI_COMM_WORLD); if ($rank == 1) { my $msg = "Hello, I'm $rank"; MPI_Send($msg, 0, 123, MPI_COMM_WORLD); } else { my $msg = MPI_Recv(1, 123, MPI_COMM_WORLD); print "$rank received: '$msg'n"; } MPI_Finalise();Perl is not a strongly typed language, Perl does not enforce data structures of a fixed size or dimensionality, Perl makes things easy. Parallel processing solves problems faster and is commonly programmed using a message passing paradigm. Traditional message passing systems are designed for strongly typed languages like C or Fortran, there exist implementations of these for Perl but they concentrate on perfectly mimicing the standards forcing the poor Perl programmer to use strongly typed data despite all his best instincts.This module provides a non-compliant wrapper around the widely implemented MPI libraries, allowing messages to consist of arbitarily nested Perl data structures whose size is limited by available memory. This hybrid approach should allow you to quickly write programs which run anywhere which supports MPI (both Beowulf and traditional MPP machines). Requirements: · Perl
Parallel::MPI::Simple Related Software