N-sim
Emulation and simulation of
Wireless Sensor Networks



   Home


   Project Page


   Download


   CVS



   Installation


   Configuration


   Plug-ins




 Hosted by
SourceForge.net Logo

/home/brennan/n-sim/OrbisQuartus/server/l4/mini_mpi-l4.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <mini_mpi.h>
#include <mini_mpi-internal.h>
#include "lwip.h"

Go to the source code of this file.

Defines

#define MY_NC   ((struct netconn*)my_socket.nc)

Functions

int MPI_Init (int *argc, char ***argv)
int MPI_Comm_socket (MPI_Comm comm, int *sock)
int MPI_Abort (MPI_Comm comm, int errorcode)
int MPI_Finalize (void)
int MPI_Send (void *buf, int count, MPI_Datatype type, int dest, int tag, MPI_Comm comm)
int MPI_Recv (void *buf, int count, MPI_Datatype type, int source, int tag, MPI_Comm comm, MPI_Status *status)
int MPI_Isend (void *buf, int count, MPI_Datatype type, int dest, int tag, MPI_Comm comm, MPI_Request *request)
int MPI_Irecv (void *buf, int count, MPI_Datatype type, int source, int tag, MPI_Comm comm, MPI_Request *request)
int MPI_Wait (MPI_Request *request, MPI_Status *status)
int MPI_Waitall (int count, MPI_Request *request[], MPI_Status *status[])
int MPI_Barrier (MPI_Comm comm)
int MPI_Bcast (void *buf, int count, MPI_Datatype type, int root, MPI_Comm comm)
int MPI_Scatter (void *sendbuffer, int sendcount, MPI_Datatype sendtype, void *recvbuffer, int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm)
int MPI_Gather (void *sendbuffer, int sendcount, MPI_Datatype sendtype, void *recvbuffer, int recvcount, MPI_Datatype recvtype, int root, MPI_Comm comm)

Variables

int my_numprocs
int my_taskid
unsigned short my_init
sockaddr_in head_addr
socket_ptr_t my_socket
task_ttask_array


Define Documentation

#define MY_NC   ((struct netconn*)my_socket.nc)
 

Definition at line 54 of file mini_mpi-l4.c.


Function Documentation

int MPI_Abort MPI_Comm  comm,
int  errorcode
 

Definition at line 169 of file mini_mpi-l4.c.

int MPI_Barrier MPI_Comm  comm  ) 
 

Definition at line 401 of file mini_mpi-l4.c.

int MPI_Bcast void *  buf,
int  count,
MPI_Datatype  type,
int  root,
MPI_Comm  comm
 

Definition at line 428 of file mini_mpi-l4.c.

int MPI_Comm_socket MPI_Comm  comm,
int *  sock
 

Definition at line 160 of file mini_mpi-l4.c.

int MPI_Finalize void   ) 
 

Definition at line 185 of file mini_mpi-l4.c.

Referenced by OrbisQuartus::stop().

int MPI_Gather void *  sendbuffer,
int  sendcount,
MPI_Datatype  sendtype,
void *  recvbuffer,
int  recvcount,
MPI_Datatype  recvtype,
int  root,
MPI_Comm  comm
 

Todo:
implement scatter/gather

Definition at line 480 of file mini_mpi-l4.c.

int MPI_Init int *  argc,
char ***  argv
 

Todo:
FIXME: complete setup

Definition at line 59 of file mini_mpi-l4.c.

int MPI_Irecv void *  buf,
int  count,
MPI_Datatype  type,
int  source,
int  tag,
MPI_Comm  comm,
MPI_Request *  request
 

Todo:
is this MPI standard?
Todo:
nonblocking recv

Definition at line 330 of file mini_mpi-l4.c.

int MPI_Isend void *  buf,
int  count,
MPI_Datatype  type,
int  dest,
int  tag,
MPI_Comm  comm,
MPI_Request *  request
 

Todo:
nonblocking send MINI_MPI_SEND (thread?)

Definition at line 295 of file mini_mpi-l4.c.

int MPI_Recv void *  buf,
int  count,
MPI_Datatype  type,
int  source,
int  tag,
MPI_Comm  comm,
MPI_Status *  status
 

Todo:
probably not MPI standard

Definition at line 239 of file mini_mpi-l4.c.

int MPI_Scatter void *  sendbuffer,
int  sendcount,
MPI_Datatype  sendtype,
void *  recvbuffer,
int  recvcount,
MPI_Datatype  recvtype,
int  root,
MPI_Comm  comm
 

Todo:
implement scatter/gather

Definition at line 451 of file mini_mpi-l4.c.

int MPI_Send void *  buf,
int  count,
MPI_Datatype  type,
int  dest,
int  tag,
MPI_Comm  comm
 

Definition at line 206 of file mini_mpi-l4.c.

int MPI_Wait MPI_Request *  request,
MPI_Status *  status
 

Todo:
implement wait on nonblocking send/recv

Definition at line 386 of file mini_mpi-l4.c.

int MPI_Waitall int  count,
MPI_Request *  request[],
MPI_Status *  status[]
 

Definition at line 393 of file mini_mpi-l4.c.


Variable Documentation

struct sockaddr_in head_addr
 

Definition at line 47 of file mini_mpi.c.

unsigned short my_init
 

Definition at line 46 of file mini_mpi.c.

Referenced by MPI_Abort(), MPI_Barrier(), MPI_Bcast(), MPI_Comm_rank(), MPI_Comm_size(), MPI_Comm_socket(), MPI_Finalize(), MPI_Gather(), MPI_Init(), MPI_Initialized(), MPI_Irecv(), MPI_Isend(), MPI_Recv(), MPI_Scatter(), and MPI_Send().

int my_numprocs
 

Definition at line 44 of file mini_mpi.c.

Referenced by MPI_Comm_size(), and MPI_Init().

socket_ptr_t my_socket
 

Definition at line 48 of file mini_mpi.c.

int my_taskid
 

Definition at line 45 of file mini_mpi.c.

Referenced by MPI_Comm_rank(), MPI_Init(), and VT_message::VT_message().

task_t* task_array
 

Definition at line 49 of file mini_mpi.c.

Referenced by MPI_Finalize(), MPI_Init(), MPI_Irecv(), MPI_Isend(), MPI_Recv(), and MPI_Send().


© 2007, Los Alamos National Security, LLC.