void shmem_int8_inc_f(FORTRAN_POINTER_T target, MPI_Fint *pe) { ompi_fortran_integer8_t value = 1; MCA_ATOMIC_CALL(add(oshmem_ctx_default, FPTR_2_VOID_PTR(target), value, sizeof(value), OMPI_FINT_2_INT(*pe))); }
void shmem_real8_set_f(FORTRAN_POINTER_T target, FORTRAN_POINTER_T value, MPI_Fint *pe) { ompi_fortran_real8_t out_value = 0; MCA_ATOMIC_CALL(cswap(FPTR_2_VOID_PTR(target), (void *)&out_value, NULL, FPTR_2_VOID_PTR(value), sizeof(out_value), OMPI_FINT_2_INT(*pe))); }
void shmem_int8_add_f(FORTRAN_POINTER_T target, FORTRAN_POINTER_T value, MPI_Fint *pe) { ompi_fortran_integer8_t out_value = 0; oshmem_op_t* op = oshmem_op_sum_fint8; MCA_ATOMIC_CALL(fadd(FPTR_2_VOID_PTR(target), (void *)&out_value, FPTR_2_VOID_PTR(value), sizeof(out_value), OMPI_FINT_2_INT(*pe), op)); }
ompi_fortran_integer8_t shmem_int8_swap_f(FORTRAN_POINTER_T target, FORTRAN_POINTER_T value, MPI_Fint *pe) { ompi_fortran_integer8_t out_value = 0; MCA_ATOMIC_CALL(swap(oshmem_ctx_default, FPTR_2_VOID_PTR(target), (void *)&out_value, FPTR_2_INT(value, sizeof(out_value)), sizeof(out_value), OMPI_FINT_2_INT(*pe))); return out_value; }
ompi_fortran_integer4_t shmem_int4_swap_f(FORTRAN_POINTER_T target, FORTRAN_POINTER_T value, MPI_Fint *pe) { ompi_fortran_integer4_t out_value = 0; MCA_ATOMIC_CALL(cswap(FPTR_2_VOID_PTR(target), (void *)&out_value, NULL, FPTR_2_VOID_PTR(value), sizeof(out_value), OMPI_FINT_2_INT(*pe))); return out_value; }
ompi_fortran_real4_t shmem_real4_fetch_f(FORTRAN_POINTER_T target, MPI_Fint *pe) { ompi_fortran_real4_t out_value = 0; ompi_fortran_real4_t value = 0; MCA_ATOMIC_CALL(fadd(oshmem_ctx_default, FPTR_2_VOID_PTR(target), (void *)&out_value, value, sizeof(out_value), OMPI_FINT_2_INT(*pe))); return out_value; }
void shmem_int4_inc_f(FORTRAN_POINTER_T target, MPI_Fint *pe) { ompi_fortran_integer4_t out_value = 0; ompi_fortran_integer4_t value = 1; oshmem_op_t* op = oshmem_op_sum_fint4; MCA_ATOMIC_CALL(fadd(FPTR_2_VOID_PTR(target), (void *)&out_value, (const void*)&value, sizeof(out_value), OMPI_FINT_2_INT(*pe), op)); }
ompi_fortran_real4_t shmem_real4_fetch_f(FORTRAN_POINTER_T target, MPI_Fint *pe) { ompi_fortran_real4_t out_value = 0; oshmem_op_t* op = oshmem_op_sum_freal4; int value = 0; MCA_ATOMIC_CALL(fadd(FPTR_2_VOID_PTR(target), (void *)&out_value, (const void *)&value, sizeof(out_value), OMPI_FINT_2_INT(*pe), op)); return out_value; }
MPI_Fint shmem_swap_f(FORTRAN_POINTER_T target, FORTRAN_POINTER_T value, MPI_Fint *pe) { size_t integer_type_size = 0; MPI_Fint out_value = 0; ompi_datatype_type_size(&ompi_mpi_integer.dt, &integer_type_size); MCA_ATOMIC_CALL(cswap(FPTR_2_VOID_PTR(target), (void *)&out_value, NULL, FPTR_2_VOID_PTR(value), integer_type_size, OMPI_FINT_2_INT(*pe))); return out_value; }