Merge branch 'development' of github.com:sfilippone/psblas3 into development
commit
4378d7f658
@ -0,0 +1,29 @@
|
|||||||
|
#ifndef PSB_CONFIG_H
|
||||||
|
#define PSB_CONFIG_H
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <math.h>
|
||||||
|
#include <complex.h>
|
||||||
|
|
||||||
|
#define @IPK@
|
||||||
|
#define @LPK@
|
||||||
|
|
||||||
|
|
||||||
|
typedef int32_t psb_m_t;
|
||||||
|
|
||||||
|
#if defined(IPK4) && defined(LPK4)
|
||||||
|
typedef int32_t psb_i_t;
|
||||||
|
typedef int32_t psb_l_t;
|
||||||
|
#elif defined(IPK4) && defined(LPK8)
|
||||||
|
typedef int32_t psb_i_t;
|
||||||
|
typedef int64_t psb_l_t;
|
||||||
|
#elif defined(IPK8) && defined(LPK8)
|
||||||
|
typedef int64_t psb_i_t;
|
||||||
|
typedef int64_t psb_l_t;
|
||||||
|
#else
|
||||||
|
#endif
|
||||||
|
typedef int64_t psb_e_t;
|
||||||
|
|
||||||
|
typedef float psb_s_t;
|
||||||
|
typedef double psb_d_t;
|
||||||
|
typedef float complex psb_c_t;
|
||||||
|
typedef double complex psb_z_t;
|
||||||
@ -1,20 +1,48 @@
|
|||||||
#ifndef PSB_INTERNALS_H
|
#ifndef PSB_INTERNALS_H
|
||||||
#define PSB_INTERNALS_H
|
#define PSB_INTERNALS_H
|
||||||
|
#include "psb_config.h"
|
||||||
|
|
||||||
|
#define MPI_INTEGER 1
|
||||||
|
#define MPI_INTEGER8 2
|
||||||
|
#define MPI_REAL 3
|
||||||
|
#define MPI_DOUBLE 4
|
||||||
|
#define MPI_COMPLEX 5
|
||||||
|
#define MPI_DOUBLE_COMPLEX 6
|
||||||
|
#define MPI_CHARACTER 7
|
||||||
|
#define MPI_LOGICAL 8
|
||||||
|
#define MPI_INTEGER2 9
|
||||||
|
#define MPI_INTEGER4 10
|
||||||
|
#define MPI_COMM_NULL -1
|
||||||
|
#define MPI_COMM_WORLD 1
|
||||||
|
|
||||||
/* providing a default mangling scheme */
|
|
||||||
#ifndef LowerUnderscore
|
|
||||||
#ifndef LowerDoubleUnderscore
|
|
||||||
#ifndef LowerCase
|
|
||||||
#ifndef UpperUnderscore
|
|
||||||
#ifndef UpperDoubleUnderscore
|
|
||||||
#ifndef UpperCase
|
|
||||||
#define LowerUnderscore 1 /* 20110404 the default */
|
|
||||||
/* #error "should specify a default mangling scheme" */
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
double mpi_wtime();
|
||||||
|
void mpi_wait(int *request, int* status, int *ierr);
|
||||||
|
void mpi_send(void* buf, int* count, int* datatype,
|
||||||
|
int *dest, int *tag, int *comm, int *ierr);
|
||||||
|
void mpi_isend(void* buf, int* count, int* datatype,
|
||||||
|
int *dest, int *tag, int *comm, int *request,
|
||||||
|
int *ierr);
|
||||||
|
void mpi_irecv(void* buf, int* count, int* datatype,
|
||||||
|
int *src, int *tag, int *comm, int *request,
|
||||||
|
int *ierr);
|
||||||
|
void mpi_alltoall(void* sdb, int* sdc, int* sdt,
|
||||||
|
void* rvb, int* rvc, int* rvt, int* comm, int* ierr);
|
||||||
|
void mpi_alltoallv(void* sdb, int* sdc, int* sdspl, int* sdt,
|
||||||
|
void* rvb, int* rvc, int* rdspl, int* rvt, int* comm, int* ierr);
|
||||||
|
void mpi_gather(void* sdb, int* sdc, int* sdt,
|
||||||
|
void* rvb, int* rvc, int* rvt, int *root, int* comm, int* ierr);
|
||||||
|
void mpi_gatherv(void* sdb, int* sdc, int* sdt,
|
||||||
|
void* rvb, int* rvc, int* rdspl,
|
||||||
|
int* rvt, int* comm, int *root, int* ierr);
|
||||||
|
void mpi_scatter(void* sdb, int* sdc, int* sdt,
|
||||||
|
void* rvb, int* rvc, int* rvt, int *root, int* comm, int* ierr);
|
||||||
|
void mpi_scatterv(void* sdb, int* sdc, int* sdt,
|
||||||
|
void* rvb, int* rvc, int* rdspl,
|
||||||
|
int* rvt, int* comm, int *root, int* ierr);
|
||||||
|
void mpi_allgather(void* sdb, int* sdc, int* sdt,
|
||||||
|
void* rvb, int* rvc, int* rvt, int* comm, int* ierr);
|
||||||
|
void mpi_allgatherv(void* sdb, int* sdc, int* sdt,
|
||||||
|
void* rvb, int* rvc, int* rdspl,
|
||||||
|
int* rvt, int* comm, int* ierr);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue