OpenMPI  0.1.1
mpiJava.h
1 /*
2  * Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
3  *
4  * $COPYRIGHT$
5  *
6  * Additional copyrights may follow
7  *
8  * $HEADER$
9  *
10  */
11 
12 
13 #include "mpi.h"
14 
15 typedef struct {
16  jfieldID CommhandleID;
17  jfieldID ErrhandleID;
18  jfieldID GrouphandleID;
19  jfieldID DatatypehandleID;
20  jfieldID DatatypebaseTypeID;
21  jfieldID DatatypebaseSizeID;
22  jfieldID OphandleID;
23  jfieldID stathandleID;
24  jfieldID sourceID;
25  jfieldID tagID;
26  jfieldID indexID;
27  jfieldID elementsID;
28  jfieldID reqhandleID;
29  jfieldID opTagID;
30  jfieldID bufSaveID;
31  jfieldID countSaveID;
32  jfieldID offsetSaveID;
33  jfieldID baseTypeSaveID;
34  jfieldID bufbaseSaveID;
35  jfieldID bufptrSaveID;
36  jfieldID commSaveID;
37  jfieldID typeSaveID;
38  int *dt_sizes;
40 extern ompi_java_globals_t ompi_java;
41 
42 void ompi_java_clearFreeList(JNIEnv*);
43 
44 void ompi_java_init_native_Datatype(void);
45 
46 void* ompi_java_getBufPtr(void** bufbase,
47  JNIEnv *env, jobject buf,
48  int baseType, int offset);
49 
50 void ompi_java_releaseBufPtr(JNIEnv *env, jobject buf,
51  void* bufbase, int baseType);
52 
53 void* ompi_java_getMPIWriteBuf(int* bsize, int count,
54  MPI_Datatype type, MPI_Comm comm);
55 
56 #ifndef GC_DOES_PINNING
57 
58 void* ompi_java_getMPIBuf(int* size, JNIEnv *env, jobject buf, int offset,
59  int count, MPI_Datatype type, MPI_Comm comm,
60  int baseType);
61 
62 void ompi_java_releaseMPIBuf(JNIEnv *env, jobject buf, int offset,
63  int count, MPI_Datatype type, MPI_Comm comm,
64  void* bufptr, int size, int baseType);
65 
66 void ompi_java_releaseMPIRecvBuf(int* elements, JNIEnv *env, jobject buf, int offset,
67  int count, MPI_Datatype type, MPI_Comm comm,
68  void* bufptr, MPI_Status* status,
69  int baseType);
70 
71 void ompi_java_releaseMPIReadBuf(void* bufptr);
72 
73 #endif /* GC_DOES_PINNING */
Definition: ompi_datatype.h:68
Definition: mpi.h:337
Definition: mpiJava.h:15
Definition: communicator.h:118