Neko  0.8.99
A portable framework for high-order spectral element flow simulations
device_mpi.c File Reference
#include <stdlib.h>
#include <mpi.h>
#include <comm/comm.h>
Include dependency graph for device_mpi.c:

Go to the source code of this file.

Functions

void device_mpi_init_reqs (int n, void **reqs_out)
 
void device_mpi_free_reqs (void **reqs)
 
void device_mpi_isend (void *buf_d, int offset, int nbytes, int rank, void *vreqs, int i)
 
void device_mpi_irecv (void *buf_d, int offset, int nbytes, int rank, void *vreqs, int i)
 
int device_mpi_test (void *vreqs, int i)
 
void device_mpi_waitall (int n, void *vreqs)
 
int device_mpi_waitany (int n, void *vreqs, int *i)
 

Function Documentation

◆ device_mpi_free_reqs()

void device_mpi_free_reqs ( void **  reqs)

Definition at line 53 of file device_mpi.c.

◆ device_mpi_init_reqs()

void device_mpi_init_reqs ( int  n,
void **  reqs_out 
)

C wrapper for MPI calls, since passing device pointers does not work in the Fortran MPI interface.

Definition at line 48 of file device_mpi.c.

◆ device_mpi_irecv()

void device_mpi_irecv ( void *  buf_d,
int  offset,
int  nbytes,
int  rank,
void *  vreqs,
int  i 
)

Definition at line 69 of file device_mpi.c.

◆ device_mpi_isend()

void device_mpi_isend ( void *  buf_d,
int  offset,
int  nbytes,
int  rank,
void *  vreqs,
int  i 
)

Definition at line 58 of file device_mpi.c.

◆ device_mpi_test()

int device_mpi_test ( void *  vreqs,
int  i 
)

Definition at line 81 of file device_mpi.c.

◆ device_mpi_waitall()

void device_mpi_waitall ( int  n,
void *  vreqs 
)

Definition at line 88 of file device_mpi.c.

◆ device_mpi_waitany()

int device_mpi_waitany ( int  n,
void *  vreqs,
int *  i 
)

Definition at line 93 of file device_mpi.c.