Changes between Initial Version and Version 1 of Ticket #47806, comment 5


Ignore:
Timestamp:
Jun 15, 2015, 8:56:50 AM (9 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #47806, comment 5

    initial v1  
    88> I have had a very hard time figuring out the appropriate dependencies so I'm hoping you can help sort this out:
    99>
    10 > (1) Building gcc5 does not require the OpenCoarrays libcaf_mpi.a library, but using gcc5 to build parallel executables from coarray Fortran codes requires linking to libcaf_mpi.a
    11 >
    12 > (2) Building libcaf_mpi.a does not require gcc5 (earlier versions of gcc5 can build libcaf_mpi.a), but libcaf_mpi.a will be unusable if mpich-gcc5 is not present.
     10> 1. Building gcc5 does not require the OpenCoarrays libcaf_mpi.a library, but using gcc5 to build parallel executables from coarray Fortran codes requires linking to libcaf_mpi.a
     11> 2. Building libcaf_mpi.a does not require gcc5 (earlier versions of gcc5 can build libcaf_mpi.a), but libcaf_mpi.a will be unusable if mpich-gcc5 is not present.
    1312>
    1413> so either can be built without the other, but each is of limited utility without the utility without the other.  Should gcc5 depend on OpenCoarrays or should OpenCoarrays depend on gcc5 or neither?
     
    2625after the installation process:
    2726
     27{{{
    2828mpif90 -fcoarray=lib testCoarray.f90 -L/opt/local/lib -lcaf_mpi -o test
     29}}}
    2930
    3031compiles without any problem
    3132
     33{{{
    3234$ mpirun -np 4 ./test
    3335
     
    4042 Hello world, I am           4
    4143           4 prev           3 next           1
     44}}}
    4245
    4346which means the program runs correctly too.