AdjoinableMPI
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nt.c
Go to the documentation of this file.
1 /*
2 ##########################################################
3 # This file is part of the AdjoinableMPI library #
4 # released under the MIT License. #
5 # The full COPYRIGHT notice can be found in the top #
6 # level directory of the AdjoinableMPI distribution. #
7 ##########################################################
8 */
9 
10 #include <mpi.h>
11 
12 int AMPI_Init_NT(int* argc,
13  char*** argv) {
14  int rc = MPI_Init(argc, argv);
15  return rc ;
16 }
17 
18 int AMPI_Finalize_NT(void) {
19  return MPI_Finalize();
20 }
21 
22 
23 int AMPI_Buffer_attach_NT(void *buffer,
24  int size) {
25  return MPI_Buffer_attach(buffer,
26  size);
27 
28 }
29 
30 int AMPI_Buffer_detach_NT(void *buffer,
31  int *size){
32  return MPI_Buffer_detach(buffer,
33  size);
34 }
35 
36 int AMPI_Op_create_NT(MPI_User_function *function,
37  int commute,
38  MPI_Op *op) {
39  int rc;
40  rc = MPI_Op_create(function,
41  commute,
42  op);
43  return rc;
44 }
45 
46 int AMPI_Op_free_NT(MPI_Op *op) {
47  return MPI_Op_free(op);
48 }
49 
51  int array_of_blocklengths[],
52  MPI_Aint array_of_displacements[],
53  MPI_Datatype array_of_types[],
54  MPI_Datatype *newtype) {
55  int rc;
56  rc = MPI_Type_create_struct (count,
57  array_of_blocklengths,
58  array_of_displacements,
59  array_of_types,
60  newtype);
61  return rc;
62 }