# Parallel sum function

**URL:** <https://fortran-lang.discourse.group/t/parallel-sum-function/2074>\
**Category:** Help\
**Created:** [October 14, 2021, 9:23pm UTC](https://fortran-lang.discourse.group/t/parallel-sum-function/2074 "2021-10-14T21:23:45Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [October 15, 2021, 1:51pm UTC](https://fortran-lang.discourse.group/t/parallel-sum-function/2074/5 "2021-10-15T13:51:35Z")

</div>

See that very recent post:

> [@Using coarrays in a shared library (OpenCoarrays)](https://fortran-lang.discourse.group/t/using-coarrays-in-a-shared-library-opencoarrays/1089):
>
> Suppose I wanted to make a shared library exposing a C interface via bind(C), and use that library from a language other than Fortran, but use OpenCoarrays within the library. Does anybody know how I could accomplish this? I gather that I have to call \_gfortran\_caf\_init() and the associated finalization routine, but would I have to execute the program that uses that library by using cafrun / mpiexec? I’d love to hear from anyone who has experience with or knowledge about this. Thanks.

Note that the term _Coarrays_ can be used to talk about coarrays themselves, but is also often used as a more generic term to talk about all the parallel features introduced by Fortran 2008/2018, like the collective subroutines.

---

_[View the full topic](https://fortran-lang.discourse.group/t/parallel-sum-function/2074)._
