OpenCoarrays integration with gfortran
Toon Moene
toon@moene.org
Sun Sep 23 19:17:00 GMT 2018
[ dropping mailing list gcc-patches, as it is not relevant to *this*
discussion :-) ]
On 09/23/2018 06:47 PM, Bernhard Reutner-Fischer wrote:
> On 23 September 2018 11:46:57 CEST, Toon Moene <toon@moene.org> wrote:
>> and recompiled my stuff:
>>
>> gfortran -g -fbacktrace -fcoarray=lib random-weather.f90
>> -L/usr/lib/x86_64-linux-gnu/open-coarrays/openmpi/lib -lcaf_mpi
>>
>> [ Yes, the location of the libs is quite experimental, but OK for the
>> "Testing" variant of Debian ... ]
>
> Are you sure you need the -L?
> For me a simple -fcoarray=lib -lcaf_mpi
> links fine.
I get this:
toon@moene:~/src$ gfortran -g -fbacktrace -fcoarray=lib
random-weather.f90 -lcaf_mpi
/usr/bin/ld: cannot find -lcaf_mpi
collect2: error: ld returned 1 exit status
Are you sure the linker isn't finding another libcaf_mpi.so ?
> Along the same lines a simple
> $ mpirun -np 4 ./a.out
> runs fine as expected, like any other mpi program.
Yeah, sorry. I was already using the options --oversubscribe --bind-to
none (of which the --oversubscribe certainly is necessary) before I
installed Debian's coarray packages. I need it because otherwise openmpi
will complain that I only have 10 cores (which is correct).
Kind regards,
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news
More information about the Fortran
mailing list