root/oshmem/shmem/fortran/shmem_real4_set_f.c

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

DEFINITIONS

This source file includes following definitions.
  1. SHMEM_GENERATE_WEAK_BINDINGS

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

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