root/oshmem/shmem/fortran/shmem_int4_add_f.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. SHMEM_GENERATE_WEAK_BINDINGS

   1 /*
   2  * Copyright (c) 2013      Mellanox Technologies, Inc.
   3  *                         All rights reserved.
   4  * Copyright (c) 2013 Cisco Systems, Inc.  All rights reserved.
   5  * $COPYRIGHT$
   6  *
   7  * Additional copyrights may follow
   8  *
   9  * $HEADER$
  10  */
  11 
  12 #include "oshmem_config.h"
  13 #include "oshmem/shmem/fortran/bindings.h"
  14 #include "oshmem/include/shmem.h"
  15 #include "oshmem/shmem/shmem_api_logger.h"
  16 #include "oshmem/runtime/runtime.h"
  17 #include "oshmem/mca/atomic/atomic.h"
  18 #include "ompi/datatype/ompi_datatype.h"
  19 #include "oshmem/op/op.h"
  20 #include "stdio.h"
  21 
  22 #if OSHMEM_PROFILING
  23 #include "oshmem/shmem/fortran/profile/pbindings.h"
  24 SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_INT4_ADD, shmem_int4_add)
  25 #include "oshmem/shmem/fortran/profile/defines.h"
  26 #endif
  27 
  28 SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
  29         SHMEM_INT4_ADD,
  30         shmem_int4_add_,
  31         shmem_int4_add__,
  32         shmem_int4_add_f,
  33         (FORTRAN_POINTER_T target, FORTRAN_POINTER_T value, MPI_Fint *pe),
  34         (target,value,pe) )
  35 
  36 void shmem_int4_add_f(FORTRAN_POINTER_T target, FORTRAN_POINTER_T value, MPI_Fint *pe)
  37 {
  38     MCA_ATOMIC_CALL(add(oshmem_ctx_default, FPTR_2_VOID_PTR(target),
  39         FPTR_2_INT(value, sizeof(ompi_fortran_integer4_t)),
  40         sizeof(ompi_fortran_integer4_t),
  41         OMPI_FINT_2_INT(*pe)));
  42 }
  43 

/* [<][>][^][v][top][bottom][index][help] */