This source file includes following definitions.
- Java_mpi_Prequest_start
- Java_mpi_Prequest_startAll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #include "ompi_config.h"
20 #include <stdlib.h>
21 #include <assert.h>
22 #ifdef HAVE_TARGETCONDITIONALS_H
23 #include <TargetConditionals.h>
24 #endif
25
26 #include "mpi.h"
27 #include "mpi_Prequest.h"
28 #include "mpiJava.h"
29
30 JNIEXPORT jlong JNICALL Java_mpi_Prequest_start(
31 JNIEnv *env, jobject jthis, jlong jRequest)
32 {
33 MPI_Request request = (MPI_Request)jRequest;
34 int rc = MPI_Start(&request);
35 ompi_java_exceptionCheck(env, rc);
36 return (jlong)request;
37 }
38
39 JNIEXPORT void JNICALL Java_mpi_Prequest_startAll(
40 JNIEnv *env, jclass clazz, jlongArray prequests)
41 {
42 int count = (*env)->GetArrayLength(env, prequests);
43 jlong* jReq;
44 MPI_Request *cReq;
45 ompi_java_getPtrArray(env, prequests, &jReq, (void***)&cReq);
46 int rc = MPI_Startall(count, cReq);
47 ompi_java_exceptionCheck(env, rc);
48 ompi_java_releasePtrArray(env, prequests, jReq, (void**)cReq);
49 }