PULSAR  2.0.0
Parallel Ultra-Light Systolic Array Runtime
 All Data Structures Files Functions Typedefs Enumerations Macros Groups
prt_request.h File Reference

PRT communication request. More...

#include "prt.h"

Go to the source code of this file.

Data Structures

struct  prt_request_s
 MPI communication request for a packet. Contains a packet, some info, MPI request and MPI status. More...
 

Typedefs

typedef struct prt_request_s prt_request_t
 MPI communication request for a packet. Contains a packet, some info, MPI request and MPI status.
 

Functions

prt_request_tprt_request_new (struct prt_packet_s *packet, size_t size, int peer, int tag)
 Creates a new request. More...
 
void prt_request_delete (prt_request_t *request)
 Destroys a request. More...
 
void prt_request_send (prt_request_t *request)
 Posts a send request. More...
 
void prt_request_recv (prt_request_t *request)
 Posts a receive request. More...
 
int prt_request_test (prt_request_t *request)
 Tests a request. Traces only completed requests. More...
 
void prt_request_cancel (prt_request_t *request)
 Cancels a request. Cancels them MPI request, releases the packet, frees the request object. More...
 

Detailed Description

PRT communication request.

Author
Jakub Kurzak

PULSAR Runtime http://icl.utk.edu/pulsar/ Copyright (C) 2012-2015 University of Tennessee.

Definition in file prt_request.h.

Function Documentation

void prt_request_cancel ( prt_request_t request)

Cancels a request. Cancels them MPI request, releases the packet, frees the request object.

Parameters
request– The request to cancel.

Definition at line 126 of file prt_request.c.

void prt_request_delete ( prt_request_t request)

Destroys a request.

Parameters
request– The request to destroy.

Definition at line 43 of file prt_request.c.

prt_request_t* prt_request_new ( prt_packet_t packet,
size_t  size,
int  peer,
int  tag 
)

Creates a new request.

Parameters
packet– The packet to create the request for.
count– The number of data items.
datatype– The type of data items.
peer– The peer communicating node.
tag– The MPI tag of the message.
Returns
A new request.

Definition at line 25 of file prt_request.c.

void prt_request_recv ( prt_request_t request)

Posts a receive request.

Parameters
request– The receive request to post.

Definition at line 77 of file prt_request.c.

void prt_request_send ( prt_request_t request)

Posts a send request.

Parameters
request– The send request to post.

Definition at line 54 of file prt_request.c.

int prt_request_test ( prt_request_t request)

Tests a request. Traces only completed requests.

Parameters
request– The request to test.
Return values
1if operation completed.
0if operation is pending.

Definition at line 104 of file prt_request.c.