Opened 9 years ago

Last modified 5 years ago

#307 new bug

about /iface:mixed_str_len_arg

Reported by: "Wei Yao" <Yao-W@…> Owned by:
Priority: major Milestone: future
Component: mpich Keywords:
Cc:

Description (last modified by balaji)

Dear MPI developing group,

I am trying to run a FORTRAN code (Intel Fortran compilier). In my code I need
to use
the compilier option: "/iface:mixed_str_len_arg".
Unfortrantely MPICH2 does not support this mixed_str_len_arg.
I tried compiling the MPICH2 source code with mixed_str_len_arg option, but it
still does not work.
Do you know how to compile a MPI version that supports /iface:mixed_str_len_arg
(based in Interl Fortran compilier).



Cheers,
Wei Yao


Attachments (10)

part0001.html (1.3 KB) - added by Wei Yao 9 years ago.
Added by email2trac
part0001.2.html (2.6 KB) - added by Jayesh Krishna 9 years ago.
Added by email2trac
part0001.3.html (7.8 KB) - added by Jayesh Krishna 9 years ago.
Added by email2trac
part0001.4.html (10.2 KB) - added by Jayesh Krishna 9 years ago.
Added by email2trac
part0001.5.html (14.9 KB) - added by Jayesh Krishna 9 years ago.
Added by email2trac
part0001.6.html (18.3 KB) - added by Jayesh Krishna 9 years ago.
Added by email2trac
part0001.7.html (20.1 KB) - added by Jayesh Krishna 9 years ago.
Added by email2trac
part0001.8.html (29.0 KB) - added by Jayesh Krishna 9 years ago.
Added by email2trac
part0001.9.html (30.0 KB) - added by Jayesh Krishna 9 years ago.
Added by email2trac
part0001.10.html (30.6 KB) - added by Jayesh Krishna 9 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (24)

Changed 9 years ago by Wei Yao

Added by email2trac

comment:1 Changed 9 years ago by Wei Yao

  • id set to 307

This message has 1 attachment(s)

comment:2 Changed 9 years ago by Jayesh Krishna

 Hi,
  Are you using MPICH2+IF on windows ? Why do you want to use the mixed
string length args when compiling your fortran code ?

Regards,
Jayesh

-----Original Message-----
From: mpich2-bugs-bounces@mcs.anl.gov
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
Sent: Tuesday, November 25, 2008 11:34 AM
To: undisclosed-recipients:
Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg

--------------------------------------------------+---------------------
--------------------------------------------------+----
 Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:  bug
   Status:  new                                   |    Priority:  major
Milestone:                                        |   Component:  mpich2
--------------------------------------------------+---------------------
--------------------------------------------------+----


 {{{

 Dear MPI developing group,

 I am trying to run a FORTRAN code (Intel Fortran compilier). In my code I
need  to use  the compilier option: "/iface:mixed_str_len_arg".
 Unfortrantely MPICH2 does not support this mixed_str_len_arg.
 I tried compiling the MPICH2 source code with mixed_str_len_arg option,
but it  still does not work.
 Do you know how to compile a MPI version that supports
/iface:mixed_str_len_arg  (based in Interl Fortran compilier).



 Cheers,
 Wei Yao


 }}}


--
Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>

Changed 9 years ago by Jayesh Krishna

Added by email2trac

comment:3 Changed 9 years ago by Wei Yao

Dear Jayesh,

I am using MPI+IF on windows.
I need to use libs from another software (CHEMKIN ) in my code. These libs are
compiled with /iface:CVF option and I can not recompiled these libs.
I changed the compiler option of Fortran projects to /iface:mixed_str_len_arg
and recompilied it. But this
does not solved the problem. I know few about the structure of MPI source code;
maybe I need to do some changes in the MPICH2f project.



Cheers,
Wei



----- Original Message -----
From: "mpich2" <mpich2-maint@mcs.anl.gov>
Sent: Tuesday, November 25, 2008 8:21 PM
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


> --------------------------------------------------+-------------------------
> Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
>     Type:  bug                                   |       Status:  new
> Priority:  major                                 |    Milestone:
> Component:  mpich2                                |   Resolution:
> Keywords:                                        |
> --------------------------------------------------+-------------------------
>
>
> Comment (by Jayesh Krishna):
>
> {{{
>
>  Hi,
>   Are you using MPICH2+IF on windows ? Why do you want to use the mixed
> string length args when compiling your fortran code ?
>
> Regards,
> Jayesh
>
> -----Original Message-----
> From: mpich2-bugs-bounces@mcs.anl.gov
> [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
> Sent: Tuesday, November 25, 2008 11:34 AM
> To: undisclosed-recipients:
> Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg
>
> --------------------------------------------------+---------------------
> --------------------------------------------------+----
>  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:  bug
>    Status:  new                                   |    Priority:  major
> Milestone:                                        |   Component:  mpich2
> --------------------------------------------------+---------------------
> --------------------------------------------------+----
>
>
>  {{{
>
>  Dear MPI developing group,
>
>  I am trying to run a FORTRAN code (Intel Fortran compilier). In my code I
> need  to use  the compilier option: "/iface:mixed_str_len_arg".
>  Unfortrantely MPICH2 does not support this mixed_str_len_arg.
>  I tried compiling the MPICH2 source code with mixed_str_len_arg option,
> but it  still does not work.
>  Do you know how to compile a MPI version that supports
> /iface:mixed_str_len_arg  (based in Interl Fortran compilier).
>
>
>
>  Cheers,
>  Wei Yao
>
>
>  }}}
>
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>
> }}}
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
>

Changed 9 years ago by Jayesh Krishna

Added by email2trac

comment:4 Changed 9 years ago by Jayesh Krishna

 Hi,
  Changing the options of the fortran compiler won't work. Let me take a
look into this and get back to you (I will try to make your life easier :)
).

Regards,
Jayesh

-----Original Message-----
From: mpich2-bugs-bounces@mcs.anl.gov
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
Sent: Tuesday, November 25, 2008 6:27 PM
To: undisclosed-recipients:
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

--------------------------------------------------+---------------------
--------------------------------------------------+----
 Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
     Type:  bug                                   |       Status:  new
 Priority:  major                                 |    Milestone:
Component:  mpich2                                |   Resolution:
 Keywords:                                        |
--------------------------------------------------+---------------------
--------------------------------------------------+----


Comment (by Wei Yao):

 {{{

 Dear Jayesh,

 I am using MPI+IF on windows.
 I need to use libs from another software (CHEMKIN ) in my code. These
libs  are  compiled with /iface:CVF option and I can not recompiled these
libs.
 I changed the compiler option of Fortran projects to
/iface:mixed_str_len_arg  and recompilied it. But this  does not solved
the problem. I know few about the structure of MPI source  code;  maybe I
need to do some changes in the MPICH2f project.



 Cheers,
 Wei



 ----- Original Message -----
 From: "mpich2" <mpich2-maint@mcs.anl.gov>
 Sent: Tuesday, November 25, 2008 8:21 PM
 Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


 >

--------------------------------------------------+-----------------------
--
 > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >     Type:  bug                                   |       Status:  new
 > Priority:  major                                 |    Milestone:
 > Component:  mpich2                                |   Resolution:
 > Keywords:                                        |
 >

--------------------------------------------------+-----------------------
--
 >
 >
 > Comment (by Jayesh Krishna):
 >
 > {{{
 >
 >  Hi,
 >   Are you using MPICH2+IF on windows ? Why do you want to use the mixed
 > string length args when compiling your fortran code ?
 >
 > Regards,
 > Jayesh
 >
 > -----Original Message-----
 > From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
Tuesday, November 25, 2008 11:34 AM  > To: undisclosed-recipients:
 > Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
--------------------------------------------------+---------------------
 > --------------------------------------------------+----
 >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:  bug
 >    Status:  new                                   |    Priority:  major
 > Milestone:                                        |   Component:
mpich2
 >
--------------------------------------------------+---------------------
 > --------------------------------------------------+----
 >
 >
 >  {{{
 >
 >  Dear MPI developing group,
 >
 >  I am trying to run a FORTRAN code (Intel Fortran compilier). In my
code  I  > need  to use  the compilier option: "/iface:mixed_str_len_arg".
 >  Unfortrantely MPICH2 does not support this mixed_str_len_arg.
 >  I tried compiling the MPICH2 source code with mixed_str_len_arg
option,  > but it  still does not work.
 >  Do you know how to compile a MPI version that supports  >
/iface:mixed_str_len_arg  (based in Interl Fortran compilier).
 >
 >
 >
 >  Cheers,
 >  Wei Yao
 >
 >
 >  }}}
 >
 >
 > --
 > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>
 > }}}
 >
 > --
 > Ticket URL:
 <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >
 }}}

--
Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>

Changed 9 years ago by Jayesh Krishna

Added by email2trac

comment:5 Changed 9 years ago by Jayesh Krishna

 Hi,
  Did you try compiling your code with fmpich2s.lib ?

Regards,
Jayesh

-----Original Message-----
From: mpich2-bugs-bounces@mcs.anl.gov
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, November 26, 2008 10:28 AM
To: undisclosed-recipients:
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

--------------------------------------------------+---------------------
--------------------------------------------------+----
 Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
     Type:  bug                                   |       Status:  new
 Priority:  major                                 |    Milestone:
Component:  mpich2                                |   Resolution:
 Keywords:                                        |
--------------------------------------------------+---------------------
--------------------------------------------------+----


Comment (by Jayesh Krishna):

 {{{

  Hi,
   Changing the options of the fortran compiler won't work. Let me take a
look into this and get back to you (I will try to make your life easier :)
).

 Regards,
 Jayesh

 -----Original Message-----
 From: mpich2-bugs-bounces@mcs.anl.gov
 [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 Sent: Tuesday, November 25, 2008 6:27 PM
 To: undisclosed-recipients:
 Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

 --------------------------------------------------+---------------------
 --------------------------------------------------+----
  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
      Type:  bug                                   |       Status:  new
  Priority:  major                                 |    Milestone:
 Component:  mpich2                                |   Resolution:
  Keywords:                                        |
 --------------------------------------------------+---------------------
 --------------------------------------------------+----


 Comment (by Wei Yao):

  {{{

  Dear Jayesh,

  I am using MPI+IF on windows.
  I need to use libs from another software (CHEMKIN ) in my code. These
libs  are  compiled with /iface:CVF option and I can not recompiled these
libs.
  I changed the compiler option of Fortran projects to
/iface:mixed_str_len_arg  and recompilied it. But this  does not solved
the problem. I know few about the structure of MPI source  code;  maybe I
need to do some changes in the MPICH2f project.



  Cheers,
  Wei



  ----- Original Message -----
  From: "mpich2" <mpich2-maint@mcs.anl.gov>
  Sent: Tuesday, November 25, 2008 8:21 PM
  Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


  >


--------------------------------------------------+-----------------------
 --
  > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
  >     Type:  bug                                   |       Status:  new
  > Priority:  major                                 |    Milestone:
  > Component:  mpich2                                |   Resolution:
  > Keywords:                                        |
  >


--------------------------------------------------+-----------------------
 --
  >
  >
  > Comment (by Jayesh Krishna):
  >
  > {{{
  >
  >  Hi,
  >   Are you using MPICH2+IF on windows ? Why do you want to use the
mixed
  > string length args when compiling your fortran code ?
  >
  > Regards,
  > Jayesh
  >
  > -----Original Message-----
  > From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
 Tuesday, November 25, 2008 11:34 AM  > To: undisclosed-recipients:
  > Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
 --------------------------------------------------+---------------------
  > --------------------------------------------------+----
  >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:  bug
  >    Status:  new                                   |    Priority:
major
  > Milestone:                                        |   Component:
 mpich2
  >
 --------------------------------------------------+---------------------
  > --------------------------------------------------+----
  >
  >
  >  {{{
  >
  >  Dear MPI developing group,
  >
  >  I am trying to run a FORTRAN code (Intel Fortran compilier). In my
code  I  > need  to use  the compilier option: "/iface:mixed_str_len_arg".
  >  Unfortrantely MPICH2 does not support this mixed_str_len_arg.
  >  I tried compiling the MPICH2 source code with mixed_str_len_arg
option,  > but it  still does not work.
  >  Do you know how to compile a MPI version that supports  >
/iface:mixed_str_len_arg  (based in Interl Fortran compilier).
  >
  >
  >
  >  Cheers,
  >  Wei Yao
  >
  >
  >  }}}
  >
  >
  > --
  > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>
  > }}}
  >
  > --
  > Ticket URL:
  <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
  >
  }}}

 --
 Ticket URL:
<https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 }}}

--
Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>

Changed 9 years ago by Jayesh Krishna

Added by email2trac

comment:6 Changed 9 years ago by Jayesh Krishna


Hi,
 Please try the following,

# Delete all object files and executables created by your project.
# Set the following settings in IVF for compiling your source,

====  Set the "Calling convention" for "External procedures" in IVF to CVF
("/iface:cvf")
====  Leave the "Name Case interpretation" for "External procedures" to
default (don't change anything here)
====  Leave the "String length argument passing" for "External procedures"
in IVF to default (don't change anything here - the compiler should select
"After Individual string argument" by default for CVF calling convention)
====  Leave the "Append Underscore to External Names" setting for
"External procedures" to default (don't change anything here)
====  Compile your code and Link your code with "fmpich2s.lib"

 If you are compiling from command line use the following example to
compile your code (in the example below source code is "fpi.f" & MPICH2 is
installed in "c:\progra~1\mpich2")

C:\test> ifort fpi.f /Ic:\progra~1\mpich2\include /iface:cvf /link
/OUT:fpi.exe /LIBPATH:c:\progra~1\mpich2\lib fmpich2s.lib

 Let us know if it works for you.

Regards,
Jayesh


-----Original Message-----
Dear jayesh Krishna,


I tried using fmpich2s.lib with /iface:mixed_str_len_arg
but it gives errors like:
unrecognized symbol _MPI_INIT
unrecognized symbol _MPI_COMM_RANK
unrecognized symbol  _MPI_COMM_SIZE
unrecognized symbol  _MPI_GET_PROCE
unrecognized symbol  _MPI_BARRIER
unrecognized symbol  _MPI_ALLGATHER
unrecognized symbol  _MPI_GATHER
unrecognized symbol  _MPI_ALLREDUCE
unrecognized symbol  _MPI_REDUCE
unrecognized symbol  _MPI_FINALIZE
unrecognized symbol  _MPI_SEND
unrecognized symbol  _MPI_RECV
unrecognized symbol  _MPI_ISEND
unrecognized symbol  _MPI_WAITALL
unrecognized symbol  _MPI_IRECV

Cheers,
Wei


-----Original Message-----
From: mpich2-bugs-bounces@mcs.anl.gov
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, November 26, 2008 5:42 PM
To: undisclosed-recipients:
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

--------------------------------------------------+---------------------
--------------------------------------------------+----
 Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
     Type:  bug                                   |       Status:  new
 Priority:  major                                 |    Milestone:
Component:  mpich2                                |   Resolution:
 Keywords:                                        |
--------------------------------------------------+---------------------
--------------------------------------------------+----


Comment (by Jayesh Krishna):

 {{{

  Hi,
   Did you try compiling your code with fmpich2s.lib ?

 Regards,
 Jayesh

 -----Original Message-----
 From: mpich2-bugs-bounces@mcs.anl.gov
 [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 Sent: Wednesday, November 26, 2008 10:28 AM
 To: undisclosed-recipients:
 Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

 --------------------------------------------------+---------------------
 --------------------------------------------------+----
  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
      Type:  bug                                   |       Status:  new
  Priority:  major                                 |    Milestone:
 Component:  mpich2                                |   Resolution:
  Keywords:                                        |
 --------------------------------------------------+---------------------
 --------------------------------------------------+----


 Comment (by Jayesh Krishna):

  {{{

   Hi,
    Changing the options of the fortran compiler won't work. Let me take a
look into this and get back to you (I will try to make your life easier :)
).

  Regards,
  Jayesh

  -----Original Message-----
  From: mpich2-bugs-bounces@mcs.anl.gov
  [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
  Sent: Tuesday, November 25, 2008 6:27 PM
  To: undisclosed-recipients:
  Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

  --------------------------------------------------+---------------------
  --------------------------------------------------+----
   Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
       Type:  bug                                   |       Status:  new
   Priority:  major                                 |    Milestone:
  Component:  mpich2                                |   Resolution:
   Keywords:                                        |
  --------------------------------------------------+---------------------
  --------------------------------------------------+----


  Comment (by Wei Yao):

   {{{

   Dear Jayesh,

   I am using MPI+IF on windows.
   I need to use libs from another software (CHEMKIN ) in my code. These
libs  are  compiled with /iface:CVF option and I can not recompiled these
libs.
   I changed the compiler option of Fortran projects to
/iface:mixed_str_len_arg  and recompilied it. But this  does not solved
the problem. I know few about the structure of MPI source  code;  maybe I
need to do some changes in the MPICH2f project.



   Cheers,
   Wei



   ----- Original Message -----
   From: "mpich2" <mpich2-maint@mcs.anl.gov>
   Sent: Tuesday, November 25, 2008 8:21 PM
   Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


   >



--------------------------------------------------+-----------------------
  --
   > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
   >     Type:  bug                                   |       Status:  new
   > Priority:  major                                 |    Milestone:
   > Component:  mpich2                                |   Resolution:
   > Keywords:                                        |
   >



--------------------------------------------------+-----------------------
  --
   >
   >
   > Comment (by Jayesh Krishna):
   >
   > {{{
   >
   >  Hi,
   >   Are you using MPICH2+IF on windows ? Why do you want to use the
 mixed
   > string length args when compiling your fortran code ?
   >
   > Regards,
   > Jayesh
   >
   > -----Original Message-----
   > From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
  Tuesday, November 25, 2008 11:34 AM  > To: undisclosed-recipients:
   > Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
  --------------------------------------------------+---------------------
   > --------------------------------------------------+----
   >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:  bug
   >    Status:  new                                   |    Priority:
 major
   > Milestone:                                        |   Component:
  mpich2
   >
  --------------------------------------------------+---------------------
   > --------------------------------------------------+----
   >
   >
   >  {{{
   >
   >  Dear MPI developing group,
   >
   >  I am trying to run a FORTRAN code (Intel Fortran compilier). In my
code  I  > need  to use  the compilier option: "/iface:mixed_str_len_arg".
   >  Unfortrantely MPICH2 does not support this mixed_str_len_arg.
   >  I tried compiling the MPICH2 source code with mixed_str_len_arg
option,  > but it  still does not work.
   >  Do you know how to compile a MPI version that supports  >
/iface:mixed_str_len_arg  (based in Interl Fortran compilier).
   >
   >
   >
   >  Cheers,
   >  Wei Yao
   >
   >
   >  }}}
   >
   >
   > --
   > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>
   > }}}
   >
   > --
   > Ticket URL:
   <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
   >
   }}}

  --
  Ticket URL:
 <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
  }}}

 --
 Ticket URL:
<https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 }}}

--
Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>

comment:7 Changed 9 years ago by Jayesh Krishna

Hi,
 We are still working on a solution to the problem.

(PS: We know what the problem is but are still looking for an elegant
soln. With mixed str len arg, FORTRAN code passes string lengths just
after a string, CHARACTER array, argument to a function. So MPICH2 lib,
fmpich2s.lib, exports two versions of the MPI functions that accept a user
buffer. However the fortran compiler does not generate different symbols
for functions that differ in the number of the arguments. In your code
this results in all instances of MPI_SEND() being linked to either the
interface function that accept CHARACTER arrays OR the function that
accepts non-CHARACTER arrays - the interface function linked to depends on
the type/number of arguments for MPI_SEND() that the compiler first "see"s
in your code.)

Regards,
Jayesh

  _____

From: Wei Yao [mailto:Yao-W@email.ulster.ac.uk]
Sent: Monday, December 08, 2008 8:01 AM
To: Jayesh Krishna
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg




Hi, Jayesh,

Got any solution for the problem?

Cheers,
Wei




----- Original Message -----
From: Jayesh  <mailto:jayesh@mcs.anl.gov> Krishna
To: Wei Yao <mailto:Yao-W@email.ulster.ac.uk>
Cc: mpich2-maint@mcs.anl.gov
Sent: Monday, December 01, 2008 6:40 PM
Subject: RE: [mpich2-maint] #307: about /iface:mixed_str_len_arg



Hi,
 Please try the following,

# Delete all object files and executables created by your project.
# Set the following settings in IVF for compiling your source,

====  Set the "Calling convention" for "External procedures" in IVF to CVF
("/iface:cvf")
====  Leave the "Name Case interpretation" for "External procedures" to
default (don't change anything here)
====  Leave the "String length argument passing" for "External procedures"
in IVF to default (don't change anything here - the compiler should select
"After Individual string argument" by default for CVF calling convention)
====  Leave the "Append Underscore to External Names" setting for
"External procedures" to default (don't change anything here)
====  Compile your code and Link your code with "fmpich2s.lib"

 If you are compiling from command line use the following example to
compile your code (in the example below source code is "fpi.f" & MPICH2 is
installed in "c:\progra~1\mpich2")

C:\test> ifort fpi.f /Ic:\progra~1\mpich2\include /iface:cvf /link
/OUT:fpi.exe /LIBPATH:c:\progra~1\mpich2\lib fmpich2s.lib

 Let us know if it works for you.

Regards,
Jayesh


-----Original Message-----
Dear jayesh Krishna,


I tried using fmpich2s.lib with /iface:mixed_str_len_arg
but it gives errors like:
unrecognized symbol _MPI_INIT
unrecognized symbol _MPI_COMM_RANK
unrecognized symbol  _MPI_COMM_SIZE
unrecognized symbol  _MPI_GET_PROCE
unrecognized symbol  _MPI_BARRIER
unrecognized symbol  _MPI_ALLGATHER
unrecognized symbol  _MPI_GATHER
unrecognized symbol  _MPI_ALLREDUCE
unrecognized symbol  _MPI_REDUCE
unrecognized symbol  _MPI_FINALIZE
unrecognized symbol  _MPI_SEND
unrecognized symbol  _MPI_RECV
unrecognized symbol  _MPI_ISEND
unrecognized symbol  _MPI_WAITALL
unrecognized symbol  _MPI_IRECV

Cheers,
Wei


-----Original Message-----
From: mpich2-bugs-bounces@mcs.anl.gov
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, November 26, 2008 5:42 PM
To: undisclosed-recipients:
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

--------------------------------------------------+---------------------
--------------------------------------------------+----
 Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
     Type:  bug                                   |       Status:  new
 Priority:  major                                 |    Milestone:
Component:  mpich2                                |   Resolution:
 Keywords:                                        |
--------------------------------------------------+---------------------
--------------------------------------------------+----


Comment (by Jayesh Krishna):

 {{{

  Hi,
   Did you try compiling your code with fmpich2s.lib ?

 Regards,
 Jayesh

 -----Original Message-----
 From: mpich2-bugs-bounces@mcs.anl.gov
 [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 Sent: Wednesday, November 26, 2008 10:28 AM
 To: undisclosed-recipients:
 Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

 --------------------------------------------------+---------------------
 --------------------------------------------------+----
  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
      Type:  bug                                   |       Status:  new
  Priority:  major                                 |    Milestone:
 Component:  mpich2                                |   Resolution:
  Keywords:                                        |
 --------------------------------------------------+---------------------
 --------------------------------------------------+----


 Comment (by Jayesh Krishna):

  {{{

   Hi,
    Changing the options of the fortran compiler won't work. Let me take a
look into this and get back to you (I will try to make your life easier :)
).

  Regards,
  Jayesh

  -----Original Message-----
  From: mpich2-bugs-bounces@mcs.anl.gov
  [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
  Sent: Tuesday, November 25, 2008 6:27 PM
  To: undisclosed-recipients:
  Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

  --------------------------------------------------+---------------------
  --------------------------------------------------+----
   Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
       Type:  bug                                   |       Status:  new
   Priority:  major                                 |    Milestone:
  Component:  mpich2                                |   Resolution:
   Keywords:                                        |
  --------------------------------------------------+---------------------
  --------------------------------------------------+----


  Comment (by Wei Yao):

   {{{

   Dear Jayesh,

   I am using MPI+IF on windows.
   I need to use libs from another software (CHEMKIN ) in my code. These
libs  are  compiled with /iface:CVF option and I can not recompiled these
libs.
   I changed the compiler option of Fortran projects to
/iface:mixed_str_len_arg  and recompilied it. But this  does not solved
the problem. I know few about the structure of MPI source  code;  maybe I
need to do some changes in the MPICH2f project.



   Cheers,
   Wei



   ----- Original Message -----
   From: "mpich2" <mpich2-maint@mcs.anl.gov>
   Sent: Tuesday, November 25, 2008 8:21 PM
   Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


   >



--------------------------------------------------+-----------------------
  --
   > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
   >     Type:  bug                                   |       Status:  new
   > Priority:  major                                 |    Milestone:
   > Component:  mpich2                                |   Resolution:
   > Keywords:                                        |
   >



--------------------------------------------------+-----------------------
  --
   >
   >
   > Comment (by Jayesh Krishna):
   >
   > {{{
   >
   >  Hi,
   >   Are you using MPICH2+IF on windows ? Why do you want to use the
 mixed
   > string length args when compiling your fortran code ?
   >
   > Regards,
   > Jayesh
   >
   > -----Original Message-----
   > From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
  Tuesday, November 25, 2008 11:34 AM  > To: undisclosed-recipients:
   > Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
  --------------------------------------------------+---------------------
   > --------------------------------------------------+----
   >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:  bug
   >    Status:  new                                   |    Priority:
 major
   > Milestone:                                        |   Component:
  mpich2
   >
  --------------------------------------------------+---------------------
   > --------------------------------------------------+----
   >
   >
   >  {{{
   >
   >  Dear MPI developing group,
   >
   >  I am trying to run a FORTRAN code (Intel Fortran compilier). In my
code  I  > need  to use  the compilier option: "/iface:mixed_str_len_arg".
   >  Unfortrantely MPICH2 does not support this mixed_str_len_arg.
   >  I tried compiling the MPICH2 source code with mixed_str_len_arg
option,  > but it  still does not work.
   >  Do you know how to compile a MPI version that supports  >
/iface:mixed_str_len_arg  (based in Interl Fortran compilier).
   >
   >
   >
   >  Cheers,
   >  Wei Yao
   >
   >
   >  }}}
   >
   >
   > --
   > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>
   > }}}
   >
   > --
   > Ticket URL:
   <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
   >
   }}}

  --
  Ticket URL:
 <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
  }}}

 --
 Ticket URL:
<https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 }}}

--
Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>


Changed 9 years ago by Jayesh Krishna

Added by email2trac

comment:8 Changed 9 years ago by Jayesh Krishna

 Hi,
  Does the library CHEMKIN make any MPI calls (Is it linked with MPICH2 ?
) ? If not, can you separate the code that makes MPI calls and calls to
CHEMKIN to different source files & compile with different compiler
arguments (calls to MPI/MPICH2 with no_mixed_str_len_arg & calls to
CHEMKIN with mixed_str_len_arg) ?

(PS: Supporting mixed_str_len_arg compiler option would require some work
and might not be available instantly.)
Regards,
Jayesh

-----Original Message-----
From: mpich2-bugs-bounces@mcs.anl.gov
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
Sent: Monday, December 08, 2008 9:25 AM
To: undisclosed-recipients:
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

--------------------------------------------------+---------------------
--------------------------------------------------+----
 Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
     Type:  bug                                   |       Status:  new
 Priority:  major                                 |    Milestone:
Component:  mpich2                                |   Resolution:
 Keywords:                                        |
--------------------------------------------------+---------------------
--------------------------------------------------+----


Comment (by Jayesh Krishna):

 {{{

 Hi,
  We are still working on a solution to the problem.

 (PS: We know what the problem is but are still looking for an elegant
soln. With mixed str len arg, FORTRAN code passes string lengths just
after a string, CHARACTER array, argument to a function. So MPICH2 lib,
fmpich2s.lib, exports two versions of the MPI functions that accept a user
buffer. However the fortran compiler does not generate different symbols
for functions that differ in the number of the arguments. In your code
this results in all instances of MPI_SEND() being linked to either the
interface function that accept CHARACTER arrays OR the function that
accepts non-CHARACTER arrays - the interface function linked to depends on
the type/number of arguments for MPI_SEND() that the compiler first "see"s
in your code.)

 Regards,
 Jayesh

   _____

 From: Wei Yao [mailto:Yao-W@email.ulster.ac.uk]
 Sent: Monday, December 08, 2008 8:01 AM
 To: Jayesh Krishna
 Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg




 Hi, Jayesh,

 Got any solution for the problem?

 Cheers,
 Wei




 ----- Original Message -----
 From: Jayesh  <mailto:jayesh@mcs.anl.gov> Krishna
 To: Wei Yao <mailto:Yao-W@email.ulster.ac.uk>
 Cc: mpich2-maint@mcs.anl.gov
 Sent: Monday, December 01, 2008 6:40 PM
 Subject: RE: [mpich2-maint] #307: about /iface:mixed_str_len_arg



 Hi,
  Please try the following,

 # Delete all object files and executables created by your project.
 # Set the following settings in IVF for compiling your source,

 ====  Set the "Calling convention" for "External procedures" in IVF to
CVF
 ("/iface:cvf")
 ====  Leave the "Name Case interpretation" for "External procedures" to
default (don't change anything here)  ====  Leave the "String length
argument passing" for "External procedures"
 in IVF to default (don't change anything here - the compiler should
select  "After Individual string argument" by default for CVF calling
convention)  ====  Leave the "Append Underscore to External Names" setting
for  "External procedures" to default (don't change anything here)  ====
Compile your code and Link your code with "fmpich2s.lib"

  If you are compiling from command line use the following example to
compile your code (in the example below source code is "fpi.f" & MPICH2 is
installed in "c:\progra~1\mpich2")

 C:\test> ifort fpi.f /Ic:\progra~1\mpich2\include /iface:cvf /link
/OUT:fpi.exe /LIBPATH:c:\progra~1\mpich2\lib fmpich2s.lib

  Let us know if it works for you.

 Regards,
 Jayesh


 -----Original Message-----
 Dear jayesh Krishna,


 I tried using fmpich2s.lib with /iface:mixed_str_len_arg  but it gives
errors like:
 unrecognized symbol _MPI_INIT
 unrecognized symbol _MPI_COMM_RANK
 unrecognized symbol  _MPI_COMM_SIZE
 unrecognized symbol  _MPI_GET_PROCE
 unrecognized symbol  _MPI_BARRIER
 unrecognized symbol  _MPI_ALLGATHER
 unrecognized symbol  _MPI_GATHER
 unrecognized symbol  _MPI_ALLREDUCE
 unrecognized symbol  _MPI_REDUCE
 unrecognized symbol  _MPI_FINALIZE
 unrecognized symbol  _MPI_SEND
 unrecognized symbol  _MPI_RECV
 unrecognized symbol  _MPI_ISEND
 unrecognized symbol  _MPI_WAITALL
 unrecognized symbol  _MPI_IRECV

 Cheers,
 Wei


 -----Original Message-----
 From: mpich2-bugs-bounces@mcs.anl.gov
 [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 Sent: Wednesday, November 26, 2008 5:42 PM
 To: undisclosed-recipients:
 Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

 --------------------------------------------------+---------------------
 --------------------------------------------------+----
  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
      Type:  bug                                   |       Status:  new
  Priority:  major                                 |    Milestone:
 Component:  mpich2                                |   Resolution:
  Keywords:                                        |
 --------------------------------------------------+---------------------
 --------------------------------------------------+----


 Comment (by Jayesh Krishna):

  {{{

   Hi,
    Did you try compiling your code with fmpich2s.lib ?

  Regards,
  Jayesh

  -----Original Message-----
  From: mpich2-bugs-bounces@mcs.anl.gov
  [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
  Sent: Wednesday, November 26, 2008 10:28 AM
  To: undisclosed-recipients:
  Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

  --------------------------------------------------+---------------------
  --------------------------------------------------+----
   Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
       Type:  bug                                   |       Status:  new
   Priority:  major                                 |    Milestone:
  Component:  mpich2                                |   Resolution:
   Keywords:                                        |
  --------------------------------------------------+---------------------
  --------------------------------------------------+----


  Comment (by Jayesh Krishna):

   {{{

    Hi,
     Changing the options of the fortran compiler won't work. Let me take
a  look into this and get back to you (I will try to make your life easier
:)  ).

   Regards,
   Jayesh

   -----Original Message-----
   From: mpich2-bugs-bounces@mcs.anl.gov
   [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
   Sent: Tuesday, November 25, 2008 6:27 PM
   To: undisclosed-recipients:
   Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


--------------------------------------------------+---------------------
   --------------------------------------------------+----
    Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
        Type:  bug                                   |       Status:  new
    Priority:  major                                 |    Milestone:
   Component:  mpich2                                |   Resolution:
    Keywords:                                        |

--------------------------------------------------+---------------------
   --------------------------------------------------+----


   Comment (by Wei Yao):

    {{{

    Dear Jayesh,

    I am using MPI+IF on windows.
    I need to use libs from another software (CHEMKIN ) in my code. These
libs  are  compiled with /iface:CVF option and I can not recompiled these
libs.
    I changed the compiler option of Fortran projects to
/iface:mixed_str_len_arg  and recompilied it. But this  does not solved
the problem. I know few about the structure of MPI source  code;  maybe I
need to do some changes in the MPICH2f project.



    Cheers,
    Wei



    ----- Original Message -----
    From: "mpich2" <mpich2-maint@mcs.anl.gov>
    Sent: Tuesday, November 25, 2008 8:21 PM
    Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


    >




--------------------------------------------------+-----------------------
   --
    > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
    >     Type:  bug                                   |       Status:
new
    > Priority:  major                                 |    Milestone:
    > Component:  mpich2                                |   Resolution:
    > Keywords:                                        |
    >




--------------------------------------------------+-----------------------
   --
    >
    >
    > Comment (by Jayesh Krishna):
    >
    > {{{
    >
    >  Hi,
    >   Are you using MPICH2+IF on windows ? Why do you want to use the
  mixed
    > string length args when compiling your fortran code ?
    >
    > Regards,
    > Jayesh
    >
    > -----Original Message-----
    > From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
   Tuesday, November 25, 2008 11:34 AM  > To: undisclosed-recipients:
    > Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >

--------------------------------------------------+---------------------
    > --------------------------------------------------+----
    >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:
bug
    >    Status:  new                                   |    Priority:
  major
    > Milestone:                                        |   Component:
   mpich2
    >

--------------------------------------------------+---------------------
    > --------------------------------------------------+----
    >
    >
    >  {{{
    >
    >  Dear MPI developing group,
    >
    >  I am trying to run a FORTRAN code (Intel Fortran compilier). In my
code  I  > need  to use  the compilier option: "/iface:mixed_str_len_arg".
    >  Unfortrantely MPICH2 does not support this mixed_str_len_arg.
    >  I tried compiling the MPICH2 source code with mixed_str_len_arg
option,  > but it  still does not work.
    >  Do you know how to compile a MPI version that supports  >
/iface:mixed_str_len_arg  (based in Interl Fortran compilier).
    >
    >
    >
    >  Cheers,
    >  Wei Yao
    >
    >
    >  }}}
    >
    >
    > --
    > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>
    > }}}
    >
    > --
    > Ticket URL:
    <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
    >
    }}}

   --
   Ticket URL:
  <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
   }}}

  --
  Ticket URL:
 <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
  }}}

 --
 Ticket URL:
<https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>


 }}}

--
Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>

Changed 9 years ago by Jayesh Krishna

Added by email2trac

comment:9 Changed 9 years ago by Wei Yao

Dear Jayesh,

The CHEMKIN does not include any MPI calls.
It is easy to do what you suggest: to separate the code that makes MPI calls and
calls to
 CHEMKIN to different source files & compile with different compiler arguments.
But How
can I build them in the same executable file?


Cheers,
Wei



----- Original Message -----
From: "mpich2" <mpich2-maint@mcs.anl.gov>
Sent: Tuesday, December 09, 2008 10:39 PM
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


> --------------------------------------------------+-------------------------
> Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
>     Type:  bug                                   |       Status:  new
> Priority:  major                                 |    Milestone:
> Component:  mpich2                                |   Resolution:
> Keywords:                                        |
> --------------------------------------------------+-------------------------
>
>
> Comment (by Jayesh Krishna):
>
> {{{
>
>  Hi,
>   Does the library CHEMKIN make any MPI calls (Is it linked with MPICH2 ?
> ) ? If not, can you separate the code that makes MPI calls and calls to
> CHEMKIN to different source files & compile with different compiler
> arguments (calls to MPI/MPICH2 with no_mixed_str_len_arg & calls to
> CHEMKIN with mixed_str_len_arg) ?
>
> (PS: Supporting mixed_str_len_arg compiler option would require some work
> and might not be available instantly.)
> Regards,
> Jayesh
>
> -----Original Message-----
> From: mpich2-bugs-bounces@mcs.anl.gov
> [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
> Sent: Monday, December 08, 2008 9:25 AM
> To: undisclosed-recipients:
> Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
>
> --------------------------------------------------+---------------------
> --------------------------------------------------+----
>  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
>      Type:  bug                                   |       Status:  new
>  Priority:  major                                 |    Milestone:
> Component:  mpich2                                |   Resolution:
>  Keywords:                                        |
> --------------------------------------------------+---------------------
> --------------------------------------------------+----
>
>
> Comment (by Jayesh Krishna):
>
>  {{{
>
>  Hi,
>   We are still working on a solution to the problem.
>
>  (PS: We know what the problem is but are still looking for an elegant
> soln. With mixed str len arg, FORTRAN code passes string lengths just
> after a string, CHARACTER array, argument to a function. So MPICH2 lib,
> fmpich2s.lib, exports two versions of the MPI functions that accept a user
> buffer. However the fortran compiler does not generate different symbols
> for functions that differ in the number of the arguments. In your code
> this results in all instances of MPI_SEND() being linked to either the
> interface function that accept CHARACTER arrays OR the function that
> accepts non-CHARACTER arrays - the interface function linked to depends on
> the type/number of arguments for MPI_SEND() that the compiler first "see"s
> in your code.)
>
>  Regards,
>  Jayesh
>
>    _____
>
>  From: Wei Yao [mailto:Yao-W@email.ulster.ac.uk]
>  Sent: Monday, December 08, 2008 8:01 AM
>  To: Jayesh Krishna
>  Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
>
>
>
>
>  Hi, Jayesh,
>
>  Got any solution for the problem?
>
>  Cheers,
>  Wei
>
>
>
>
>  ----- Original Message -----
>  From: Jayesh  <mailto:jayesh@mcs.anl.gov> Krishna
>  To: Wei Yao <mailto:Yao-W@email.ulster.ac.uk>
>  Cc: mpich2-maint@mcs.anl.gov
>  Sent: Monday, December 01, 2008 6:40 PM
>  Subject: RE: [mpich2-maint] #307: about /iface:mixed_str_len_arg
>
>
>
>  Hi,
>   Please try the following,
>
>  # Delete all object files and executables created by your project.
>  # Set the following settings in IVF for compiling your source,
>
>  ====  Set the "Calling convention" for "External procedures" in IVF to
> CVF
>  ("/iface:cvf")
>  ====  Leave the "Name Case interpretation" for "External procedures" to
> default (don't change anything here)  ====  Leave the "String length
> argument passing" for "External procedures"
>  in IVF to default (don't change anything here - the compiler should
> select  "After Individual string argument" by default for CVF calling
> convention)  ====  Leave the "Append Underscore to External Names" setting
> for  "External procedures" to default (don't change anything here)  ====
> Compile your code and Link your code with "fmpich2s.lib"
>
>   If you are compiling from command line use the following example to
> compile your code (in the example below source code is "fpi.f" & MPICH2 is
> installed in "c:\progra~1\mpich2")
>
>  C:\test> ifort fpi.f /Ic:\progra~1\mpich2\include /iface:cvf /link
> /OUT:fpi.exe /LIBPATH:c:\progra~1\mpich2\lib fmpich2s.lib
>
>   Let us know if it works for you.
>
>  Regards,
>  Jayesh
>
>
>  -----Original Message-----
>  Dear jayesh Krishna,
>
>
>  I tried using fmpich2s.lib with /iface:mixed_str_len_arg  but it gives
> errors like:
>  unrecognized symbol _MPI_INIT
>  unrecognized symbol _MPI_COMM_RANK
>  unrecognized symbol  _MPI_COMM_SIZE
>  unrecognized symbol  _MPI_GET_PROCE
>  unrecognized symbol  _MPI_BARRIER
>  unrecognized symbol  _MPI_ALLGATHER
>  unrecognized symbol  _MPI_GATHER
>  unrecognized symbol  _MPI_ALLREDUCE
>  unrecognized symbol  _MPI_REDUCE
>  unrecognized symbol  _MPI_FINALIZE
>  unrecognized symbol  _MPI_SEND
>  unrecognized symbol  _MPI_RECV
>  unrecognized symbol  _MPI_ISEND
>  unrecognized symbol  _MPI_WAITALL
>  unrecognized symbol  _MPI_IRECV
>
>  Cheers,
>  Wei
>
>
>  -----Original Message-----
>  From: mpich2-bugs-bounces@mcs.anl.gov
>  [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
>  Sent: Wednesday, November 26, 2008 5:42 PM
>  To: undisclosed-recipients:
>  Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
>
>  --------------------------------------------------+---------------------
>  --------------------------------------------------+----
>   Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
>       Type:  bug                                   |       Status:  new
>   Priority:  major                                 |    Milestone:
>  Component:  mpich2                                |   Resolution:
>   Keywords:                                        |
>  --------------------------------------------------+---------------------
>  --------------------------------------------------+----
>
>
>  Comment (by Jayesh Krishna):
>
>   {{{
>
>    Hi,
>     Did you try compiling your code with fmpich2s.lib ?
>
>   Regards,
>   Jayesh
>
>   -----Original Message-----
>   From: mpich2-bugs-bounces@mcs.anl.gov
>   [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
>   Sent: Wednesday, November 26, 2008 10:28 AM
>   To: undisclosed-recipients:
>   Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
>
>   --------------------------------------------------+---------------------
>   --------------------------------------------------+----
>    Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
>        Type:  bug                                   |       Status:  new
>    Priority:  major                                 |    Milestone:
>   Component:  mpich2                                |   Resolution:
>    Keywords:                                        |
>   --------------------------------------------------+---------------------
>   --------------------------------------------------+----
>
>
>   Comment (by Jayesh Krishna):
>
>    {{{
>
>     Hi,
>      Changing the options of the fortran compiler won't work. Let me take
> a  look into this and get back to you (I will try to make your life easier
> :)  ).
>
>    Regards,
>    Jayesh
>
>    -----Original Message-----
>    From: mpich2-bugs-bounces@mcs.anl.gov
>    [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
>    Sent: Tuesday, November 25, 2008 6:27 PM
>    To: undisclosed-recipients:
>    Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
>
>
> --------------------------------------------------+---------------------
>    --------------------------------------------------+----
>     Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
>         Type:  bug                                   |       Status:  new
>     Priority:  major                                 |    Milestone:
>    Component:  mpich2                                |   Resolution:
>     Keywords:                                        |
>
> --------------------------------------------------+---------------------
>    --------------------------------------------------+----
>
>
>    Comment (by Wei Yao):
>
>     {{{
>
>     Dear Jayesh,
>
>     I am using MPI+IF on windows.
>     I need to use libs from another software (CHEMKIN ) in my code. These
> libs  are  compiled with /iface:CVF option and I can not recompiled these
> libs.
>     I changed the compiler option of Fortran projects to
> /iface:mixed_str_len_arg  and recompilied it. But this  does not solved
> the problem. I know few about the structure of MPI source  code;  maybe I
> need to do some changes in the MPICH2f project.
>
>
>
>     Cheers,
>     Wei
>
>
>
>     ----- Original Message -----
>     From: "mpich2" <mpich2-maint@mcs.anl.gov>
>     Sent: Tuesday, November 25, 2008 8:21 PM
>     Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
>
>
>     >
>
>
>
>
> --------------------------------------------------+-----------------------
>    --
>     > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
>     >     Type:  bug                                   |       Status:
> new
>     > Priority:  major                                 |    Milestone:
>     > Component:  mpich2                                |   Resolution:
>     > Keywords:                                        |
>     >
>
>
>
>
> --------------------------------------------------+-----------------------
>    --
>     >
>     >
>     > Comment (by Jayesh Krishna):
>     >
>     > {{{
>     >
>     >  Hi,
>     >   Are you using MPICH2+IF on windows ? Why do you want to use the
>   mixed
>     > string length args when compiling your fortran code ?
>     >
>     > Regards,
>     > Jayesh
>     >
>     > -----Original Message-----
>     > From: mpich2-bugs-bounces@mcs.anl.gov  >
> [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
>    Tuesday, November 25, 2008 11:34 AM  > To: undisclosed-recipients:
>     > Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
>
> --------------------------------------------------+---------------------
>     > --------------------------------------------------+----
>     >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:
> bug
>     >    Status:  new                                   |    Priority:
>   major
>     > Milestone:                                        |   Component:
>    mpich2
>     >
>
> --------------------------------------------------+---------------------
>     > --------------------------------------------------+----
>     >
>     >
>     >  {{{
>     >
>     >  Dear MPI developing group,
>     >
>     >  I am trying to run a FORTRAN code (Intel Fortran compilier). In my
> code  I  > need  to use  the compilier option: "/iface:mixed_str_len_arg".
>     >  Unfortrantely MPICH2 does not support this mixed_str_len_arg.
>     >  I tried compiling the MPICH2 source code with mixed_str_len_arg
> option,  > but it  still does not work.
>     >  Do you know how to compile a MPI version that supports  >
> /iface:mixed_str_len_arg  (based in Interl Fortran compilier).
>     >
>     >
>     >
>     >  Cheers,
>     >  Wei Yao
>     >
>     >
>     >  }}}
>     >
>     >
>     > --
>     > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>
>     > }}}
>     >
>     > --
>     > Ticket URL:
>     <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
>     >
>     }}}
>
>    --
>    Ticket URL:
>   <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
>    }}}
>
>   --
>   Ticket URL:
>  <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
>   }}}
>
>  --
>  Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
>
>
>  }}}
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
> }}}
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
>

Changed 9 years ago by Jayesh Krishna

Added by email2trac

comment:10 Changed 9 years ago by Jayesh Krishna

 Hi,
  As long as you don't have to pass CHARACTER strings between the two
source files (the one that makes MPI calls & the one that makes CHEMKIN
calls) you should be ok. You can compile the source that makes MPI calls
with "stdcall+reference+names_uppercase+no_mixed_str_len" settiings
(/iface:stdref /names:uppercase) & the source that makes CHEMKIN calls
with "/iface:cvf" option. The linker would then be able to link your
object files to create an executable.
  Let us know if it works for you.

Regards,
Jayesh

-----Original Message-----
From: mpich2-bugs-bounces@mcs.anl.gov
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, December 10, 2008 4:07 AM
To: undisclosed-recipients:
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

--------------------------------------------------+---------------------
--------------------------------------------------+----
 Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
     Type:  bug                                   |       Status:  new
 Priority:  major                                 |    Milestone:
Component:  mpich2                                |   Resolution:
 Keywords:                                        |
--------------------------------------------------+---------------------
--------------------------------------------------+----


Comment (by Wei Yao):

 {{{

 Dear Jayesh,

 The CHEMKIN does not include any MPI calls.
 It is easy to do what you suggest: to separate the code that makes MPI
calls and  calls to
  CHEMKIN to different source files & compile with different compiler
arguments.
 But How
 can I build them in the same executable file?


 Cheers,
 Wei



 ----- Original Message -----
 From: "mpich2" <mpich2-maint@mcs.anl.gov>
 Sent: Tuesday, December 09, 2008 10:39 PM
 Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


 >

--------------------------------------------------+-----------------------
--
 > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >     Type:  bug                                   |       Status:  new
 > Priority:  major                                 |    Milestone:
 > Component:  mpich2                                |   Resolution:
 > Keywords:                                        |
 >

--------------------------------------------------+-----------------------
--
 >
 >
 > Comment (by Jayesh Krishna):
 >
 > {{{
 >
 >  Hi,
 >   Does the library CHEMKIN make any MPI calls (Is it linked with MPICH2
 ?
 > ) ? If not, can you separate the code that makes MPI calls and calls to
> CHEMKIN to different source files & compile with different compiler  >
arguments (calls to MPI/MPICH2 with no_mixed_str_len_arg & calls to  >
CHEMKIN with mixed_str_len_arg) ?
 >
 > (PS: Supporting mixed_str_len_arg compiler option would require some
work  > and might not be available instantly.)  > Regards,  > Jayesh  >  >
-----Original Message-----  > From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
Monday, December 08, 2008 9:25 AM  > To: undisclosed-recipients:
 > Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
--------------------------------------------------+---------------------
 > --------------------------------------------------+----
 >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >      Type:  bug                                   |       Status:  new
 >  Priority:  major                                 |    Milestone:
 > Component:  mpich2                                |   Resolution:
 >  Keywords:                                        |
 >
--------------------------------------------------+---------------------
 > --------------------------------------------------+----
 >
 >
 > Comment (by Jayesh Krishna):
 >
 >  {{{
 >
 >  Hi,
 >   We are still working on a solution to the problem.
 >
 >  (PS: We know what the problem is but are still looking for an elegant
> soln. With mixed str len arg, FORTRAN code passes string lengths just  >
after a string, CHARACTER array, argument to a function. So MPICH2 lib,  >
fmpich2s.lib, exports two versions of the MPI functions that accept a
user  > buffer. However the fortran compiler does not generate different
symbols  > for functions that differ in the number of the arguments. In
your code  > this results in all instances of MPI_SEND() being linked to
either the  > interface function that accept CHARACTER arrays OR the
function that  > accepts non-CHARACTER arrays - the interface function
linked to depends  on  > the type/number of arguments for MPI_SEND() that
the compiler first  "see"s  > in your code.)  >  >  Regards,  >  Jayesh  >
 >    _____
 >
 >  From: Wei Yao [mailto:Yao-W@email.ulster.ac.uk]  >  Sent: Monday,
December 08, 2008 8:01 AM  >  To: Jayesh Krishna  >  Subject: Re:
[mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >  >  >  >  Hi,
Jayesh,  >  >  Got any solution for the problem?
 >
 >  Cheers,
 >  Wei
 >
 >
 >
 >
 >  ----- Original Message -----
 >  From: Jayesh  <mailto:jayesh@mcs.anl.gov> Krishna  >  To: Wei Yao
<mailto:Yao-W@email.ulster.ac.uk>  >  Cc: mpich2-maint@mcs.anl.gov  >
Sent: Monday, December 01, 2008 6:40 PM  >  Subject: RE: [mpich2-maint]
#307: about /iface:mixed_str_len_arg  >  >  >  >  Hi,
 >   Please try the following,
 >
 >  # Delete all object files and executables created by your project.
 >  # Set the following settings in IVF for compiling your source,  >  >
====  Set the "Calling convention" for "External procedures" in IVF to  >
CVF  >  ("/iface:cvf")  >  ====  Leave the "Name Case interpretation" for
"External procedures" to  > default (don't change anything here)  ====
Leave the "String length  > argument passing" for "External procedures"
 >  in IVF to default (don't change anything here - the compiler should  >
select  "After Individual string argument" by default for CVF calling  >
convention)  ====  Leave the "Append Underscore to External Names"
 setting
 > for  "External procedures" to default (don't change anything here)
====  > Compile your code and Link your code with "fmpich2s.lib"
 >
 >   If you are compiling from command line use the following example to
 > compile your code (in the example below source code is "fpi.f" & MPICH2
is  > installed in "c:\progra~1\mpich2")  >  >  C:\test> ifort fpi.f
/Ic:\progra~1\mpich2\include /iface:cvf /link  > /OUT:fpi.exe
/LIBPATH:c:\progra~1\mpich2\lib fmpich2s.lib  >
 >   Let us know if it works for you.
 >
 >  Regards,
 >  Jayesh
 >
 >
 >  -----Original Message-----
 >  Dear jayesh Krishna,
 >
 >
 >  I tried using fmpich2s.lib with /iface:mixed_str_len_arg  but it gives
> errors like:
 >  unrecognized symbol _MPI_INIT
 >  unrecognized symbol _MPI_COMM_RANK
 >  unrecognized symbol  _MPI_COMM_SIZE
 >  unrecognized symbol  _MPI_GET_PROCE
 >  unrecognized symbol  _MPI_BARRIER
 >  unrecognized symbol  _MPI_ALLGATHER
 >  unrecognized symbol  _MPI_GATHER
 >  unrecognized symbol  _MPI_ALLREDUCE
 >  unrecognized symbol  _MPI_REDUCE
 >  unrecognized symbol  _MPI_FINALIZE
 >  unrecognized symbol  _MPI_SEND
 >  unrecognized symbol  _MPI_RECV
 >  unrecognized symbol  _MPI_ISEND
 >  unrecognized symbol  _MPI_WAITALL
 >  unrecognized symbol  _MPI_IRECV
 >
 >  Cheers,
 >  Wei
 >
 >
 >  -----Original Message-----
 >  From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  >  Sent:
Wednesday, November 26, 2008 5:42 PM  >  To: undisclosed-recipients:
 >  Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
 --------------------------------------------------+---------------------
 >  --------------------------------------------------+----
 >   Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >       Type:  bug                                   |       Status:  new
 >   Priority:  major                                 |    Milestone:
 >  Component:  mpich2                                |   Resolution:
 >   Keywords:                                        |
 >
 --------------------------------------------------+---------------------
 >  --------------------------------------------------+----
 >
 >
 >  Comment (by Jayesh Krishna):
 >
 >   {{{
 >
 >    Hi,
 >     Did you try compiling your code with fmpich2s.lib ?
 >
 >   Regards,
 >   Jayesh
 >
 >   -----Original Message-----
 >   From: mpich2-bugs-bounces@mcs.anl.gov
 >   [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 >   Sent: Wednesday, November 26, 2008 10:28 AM
 >   To: undisclosed-recipients:
 >   Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
 >
 >
 --------------------------------------------------+---------------------
 >   --------------------------------------------------+----
 >    Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >        Type:  bug                                   |       Status:
new
 >    Priority:  major                                 |    Milestone:
 >   Component:  mpich2                                |   Resolution:
 >    Keywords:                                        |
 >
 --------------------------------------------------+---------------------
 >   --------------------------------------------------+----
 >
 >
 >   Comment (by Jayesh Krishna):
 >
 >    {{{
 >
 >     Hi,
 >      Changing the options of the fortran compiler won't work. Let me
 take
 > a  look into this and get back to you (I will try to make your life
easier  > :)  ).
 >
 >    Regards,
 >    Jayesh
 >
 >    -----Original Message-----
 >    From: mpich2-bugs-bounces@mcs.anl.gov
 >    [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 >    Sent: Tuesday, November 25, 2008 6:27 PM
 >    To: undisclosed-recipients:
 >    Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
 >
 >
 >
--------------------------------------------------+---------------------
 >    --------------------------------------------------+----
 >     Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >         Type:  bug                                   |       Status:
 new
 >     Priority:  major                                 |    Milestone:
 >    Component:  mpich2                                |   Resolution:
 >     Keywords:                                        |
 >
 >
--------------------------------------------------+---------------------
 >    --------------------------------------------------+----
 >
 >
 >    Comment (by Wei Yao):
 >
 >     {{{
 >
 >     Dear Jayesh,
 >
 >     I am using MPI+IF on windows.
 >     I need to use libs from another software (CHEMKIN ) in my code.
 These
 > libs  are  compiled with /iface:CVF option and I can not recompiled
these  > libs.
 >     I changed the compiler option of Fortran projects to
 > /iface:mixed_str_len_arg  and recompilied it. But this  does not solved
> the problem. I know few about the structure of MPI source  code;  maybe
I  > need to do some changes in the MPICH2f project.
 >
 >
 >
 >     Cheers,
 >     Wei
 >
 >
 >
 >     ----- Original Message -----
 >     From: "mpich2" <mpich2-maint@mcs.anl.gov>
 >     Sent: Tuesday, November 25, 2008 8:21 PM
 >     Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
 >
 >
 >     >
 >
 >
 >
 >
 >

--------------------------------------------------+-----------------------
 >    --
 >     > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >     >     Type:  bug                                   |       Status:
 > new
 >     > Priority:  major                                 |    Milestone:
 >     > Component:  mpich2                                |   Resolution:
 >     > Keywords:                                        |
 >     >
 >
 >
 >
 >
 >

--------------------------------------------------+-----------------------
 >    --
 >     >
 >     >
 >     > Comment (by Jayesh Krishna):
 >     >
 >     > {{{
 >     >
 >     >  Hi,
 >     >   Are you using MPICH2+IF on windows ? Why do you want to use the
 >   mixed
 >     > string length args when compiling your fortran code ?
 >     >
 >     > Regards,
 >     > Jayesh
 >     >
 >     > -----Original Message-----
 >     > From: mpich2-bugs-bounces@mcs.anl.gov  >
 > [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
 >    Tuesday, November 25, 2008 11:34 AM  > To: undisclosed-recipients:
 >     > Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >
>
 >
 >
--------------------------------------------------+---------------------
 >     > --------------------------------------------------+----
 >     >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:
 > bug
 >     >    Status:  new                                   |    Priority:
 >   major
 >     > Milestone:                                        |   Component:
 >    mpich2
 >     >
 >
 >
--------------------------------------------------+---------------------
 >     > --------------------------------------------------+----
 >     >
 >     >
 >     >  {{{
 >     >
 >     >  Dear MPI developing group,
 >     >
 >     >  I am trying to run a FORTRAN code (Intel Fortran compilier). In
 my
 > code  I  > need  to use  the compilier option:
 "/iface:mixed_str_len_arg".
 >     >  Unfortrantely MPICH2 does not support this mixed_str_len_arg.
 >     >  I tried compiling the MPICH2 source code with mixed_str_len_arg
 > option,  > but it  still does not work.
 >     >  Do you know how to compile a MPI version that supports  >
 > /iface:mixed_str_len_arg  (based in Interl Fortran compilier).
 >     >
 >     >
 >     >
 >     >  Cheers,
 >     >  Wei Yao
 >     >
 >     >
 >     >  }}}
 >     >
 >     >
 >     > --
 >     > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>
 >     > }}}
 >     >
 >     > --
 >     > Ticket URL:
 >     <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >     >
 >     }}}
 >
 >    --
 >    Ticket URL:
 >   <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >    }}}
 >
 >   --
 >   Ticket URL:
 >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >   }}}
 >
 >  --
 >  Ticket URL:
 > <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >
 >
 >  }}}
 >
 > --
 > Ticket URL:
 <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 > }}}
 >
 > --
 > Ticket URL:
 <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >
 }}}

--
Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>

Changed 9 years ago by Jayesh Krishna

Added by email2trac

comment:11 Changed 9 years ago by Jayesh Krishna

Hi,
 Also a slight change is required in the MPICH2 fortran interface library
too. Let me know if you would be able to make the changes mentioned below
and then I can provide you with the updated fortran interface library for
MPICH2.

Regards,
Jayesh

  _____

From: Jayesh Krishna [mailto:krishna@zimbra.mcs.anl.gov]
Sent: Wednesday, December 10, 2008 11:50 AM
To: 'Yao-W@email.ulster.ac.uk'
Cc: 'mpich2-maint@mcs.anl.gov'
Subject: RE: [mpich2-maint] #307: about /iface:mixed_str_len_arg



 Hi,
  As long as you don't have to pass CHARACTER strings between the two
source files (the one that makes MPI calls & the one that makes CHEMKIN
calls) you should be ok. You can compile the source that makes MPI calls
with "stdcall+reference+names_uppercase+no_mixed_str_len" settiings
(/iface:stdref /names:uppercase) & the source that makes CHEMKIN calls
with "/iface:cvf" option. The linker would then be able to link your
object files to create an executable.
  Let us know if it works for you.

Regards,
Jayesh

-----Original Message-----
From: mpich2-bugs-bounces@mcs.anl.gov
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, December 10, 2008 4:07 AM
To: undisclosed-recipients:
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

--------------------------------------------------+---------------------
--------------------------------------------------+----
 Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
     Type:  bug                                   |       Status:  new
 Priority:  major                                 |    Milestone:
Component:  mpich2                                |   Resolution:
 Keywords:                                        |
--------------------------------------------------+---------------------
--------------------------------------------------+----


Comment (by Wei Yao):

 {{{

 Dear Jayesh,

 The CHEMKIN does not include any MPI calls.
 It is easy to do what you suggest: to separate the code that makes MPI
calls and  calls to
  CHEMKIN to different source files & compile with different compiler
arguments.
 But How
 can I build them in the same executable file?


 Cheers,
 Wei



 ----- Original Message -----
 From: "mpich2" <mpich2-maint@mcs.anl.gov>
 Sent: Tuesday, December 09, 2008 10:39 PM
 Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


 >

--------------------------------------------------+-----------------------
--
 > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >     Type:  bug                                   |       Status:  new
 > Priority:  major                                 |    Milestone:
 > Component:  mpich2                                |   Resolution:
 > Keywords:                                        |
 >

--------------------------------------------------+-----------------------
--
 >
 >
 > Comment (by Jayesh Krishna):
 >
 > {{{
 >
 >  Hi,
 >   Does the library CHEMKIN make any MPI calls (Is it linked with MPICH2
 ?
 > ) ? If not, can you separate the code that makes MPI calls and calls to
> CHEMKIN to different source files & compile with different compiler  >
arguments (calls to MPI/MPICH2 with no_mixed_str_len_arg & calls to  >
CHEMKIN with mixed_str_len_arg) ?
 >
 > (PS: Supporting mixed_str_len_arg compiler option would require some
work  > and might not be available instantly.)  > Regards,  > Jayesh  >  >
-----Original Message-----  > From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
Monday, December 08, 2008 9:25 AM  > To: undisclosed-recipients:
 > Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
--------------------------------------------------+---------------------
 > --------------------------------------------------+----
 >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >      Type:  bug                                   |       Status:  new
 >  Priority:  major                                 |    Milestone:
 > Component:  mpich2                                |   Resolution:
 >  Keywords:                                        |
 >
--------------------------------------------------+---------------------
 > --------------------------------------------------+----
 >
 >
 > Comment (by Jayesh Krishna):
 >
 >  {{{
 >
 >  Hi,
 >   We are still working on a solution to the problem.
 >
 >  (PS: We know what the problem is but are still looking for an elegant
> soln. With mixed str len arg, FORTRAN code passes string lengths just  >
after a string, CHARACTER array, argument to a function. So MPICH2 lib,  >
fmpich2s.lib, exports two versions of the MPI functions that accept a
user  > buffer. However the fortran compiler does not generate different
symbols  > for functions that differ in the number of the arguments. In
your code  > this results in all instances of MPI_SEND() being linked to
either the  > interface function that accept CHARACTER arrays OR the
function that  > accepts non-CHARACTER arrays - the interface function
linked to depends  on  > the type/number of arguments for MPI_SEND() that
the compiler first  "see"s  > in your code.)  >  >  Regards,  >  Jayesh  >
 >    _____
 >
 >  From: Wei Yao [mailto:Yao-W@email.ulster.ac.uk]  >  Sent: Monday,
December 08, 2008 8:01 AM  >  To: Jayesh Krishna  >  Subject: Re:
[mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >  >  >  >  Hi,
Jayesh,  >  >  Got any solution for the problem?
 >
 >  Cheers,
 >  Wei
 >
 >
 >
 >
 >  ----- Original Message -----
 >  From: Jayesh  <mailto:jayesh@mcs.anl.gov> Krishna  >  To: Wei Yao
<mailto:Yao-W@email.ulster.ac.uk>  >  Cc: mpich2-maint@mcs.anl.gov  >
Sent: Monday, December 01, 2008 6:40 PM  >  Subject: RE: [mpich2-maint]
#307: about /iface:mixed_str_len_arg  >  >  >  >  Hi,
 >   Please try the following,
 >
 >  # Delete all object files and executables created by your project.
 >  # Set the following settings in IVF for compiling your source,  >  >
====  Set the "Calling convention" for "External procedures" in IVF to  >
CVF  >  ("/iface:cvf")  >  ====  Leave the "Name Case interpretation" for
"External procedures" to  > default (don't change anything here)  ====
Leave the "String length  > argument passing" for "External procedures"
 >  in IVF to default (don't change anything here - the compiler should  >
select  "After Individual string argument" by default for CVF calling  >
convention)  ====  Leave the "Append Underscore to External Names"
 setting
 > for  "External procedures" to default (don't change anything here)
====  > Compile your code and Link your code with "fmpich2s.lib"
 >
 >   If you are compiling from command line use the following example to
 > compile your code (in the example below source code is "fpi.f" & MPICH2
is  > installed in "c:\progra~1\mpich2")  >  >  C:\test> ifort fpi.f
/Ic:\progra~1\mpich2\include /iface:cvf /link  > /OUT:fpi.exe
/LIBPATH:c:\progra~1\mpich2\lib fmpich2s.lib  >
 >   Let us know if it works for you.
 >
 >  Regards,
 >  Jayesh
 >
 >
 >  -----Original Message-----
 >  Dear jayesh Krishna,
 >
 >
 >  I tried using fmpich2s.lib with /iface:mixed_str_len_arg  but it gives
> errors like:
 >  unrecognized symbol _MPI_INIT
 >  unrecognized symbol _MPI_COMM_RANK
 >  unrecognized symbol  _MPI_COMM_SIZE
 >  unrecognized symbol  _MPI_GET_PROCE
 >  unrecognized symbol  _MPI_BARRIER
 >  unrecognized symbol  _MPI_ALLGATHER
 >  unrecognized symbol  _MPI_GATHER
 >  unrecognized symbol  _MPI_ALLREDUCE
 >  unrecognized symbol  _MPI_REDUCE
 >  unrecognized symbol  _MPI_FINALIZE
 >  unrecognized symbol  _MPI_SEND
 >  unrecognized symbol  _MPI_RECV
 >  unrecognized symbol  _MPI_ISEND
 >  unrecognized symbol  _MPI_WAITALL
 >  unrecognized symbol  _MPI_IRECV
 >
 >  Cheers,
 >  Wei
 >
 >
 >  -----Original Message-----
 >  From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  >  Sent:
Wednesday, November 26, 2008 5:42 PM  >  To: undisclosed-recipients:
 >  Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
 --------------------------------------------------+---------------------
 >  --------------------------------------------------+----
 >   Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >       Type:  bug                                   |       Status:  new
 >   Priority:  major                                 |    Milestone:
 >  Component:  mpich2                                |   Resolution:
 >   Keywords:                                        |
 >
 --------------------------------------------------+---------------------
 >  --------------------------------------------------+----
 >
 >
 >  Comment (by Jayesh Krishna):
 >
 >   {{{
 >
 >    Hi,
 >     Did you try compiling your code with fmpich2s.lib ?
 >
 >   Regards,
 >   Jayesh
 >
 >   -----Original Message-----
 >   From: mpich2-bugs-bounces@mcs.anl.gov
 >   [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 >   Sent: Wednesday, November 26, 2008 10:28 AM
 >   To: undisclosed-recipients:
 >   Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
 >
 >
 --------------------------------------------------+---------------------
 >   --------------------------------------------------+----
 >    Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >        Type:  bug                                   |       Status:
new
 >    Priority:  major                                 |    Milestone:
 >   Component:  mpich2                                |   Resolution:
 >    Keywords:                                        |
 >
 --------------------------------------------------+---------------------
 >   --------------------------------------------------+----
 >
 >
 >   Comment (by Jayesh Krishna):
 >
 >    {{{
 >
 >     Hi,
 >      Changing the options of the fortran compiler won't work. Let me
 take
 > a  look into this and get back to you (I will try to make your life
easier  > :)  ).
 >
 >    Regards,
 >    Jayesh
 >
 >    -----Original Message-----
 >    From: mpich2-bugs-bounces@mcs.anl.gov
 >    [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 >    Sent: Tuesday, November 25, 2008 6:27 PM
 >    To: undisclosed-recipients:
 >    Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
 >
 >
 >
--------------------------------------------------+---------------------
 >    --------------------------------------------------+----
 >     Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >         Type:  bug                                   |       Status:
 new
 >     Priority:  major                                 |    Milestone:
 >    Component:  mpich2                                |   Resolution:
 >     Keywords:                                        |
 >
 >
--------------------------------------------------+---------------------
 >    --------------------------------------------------+----
 >
 >
 >    Comment (by Wei Yao):
 >
 >     {{{
 >
 >     Dear Jayesh,
 >
 >     I am using MPI+IF on windows.
 >     I need to use libs from another software (CHEMKIN ) in my code.
 These
 > libs  are  compiled with /iface:CVF option and I can not recompiled
these  > libs.
 >     I changed the compiler option of Fortran projects to
 > /iface:mixed_str_len_arg  and recompilied it. But this  does not solved
> the problem. I know few about the structure of MPI source  code;  maybe
I  > need to do some changes in the MPICH2f project.
 >
 >
 >
 >     Cheers,
 >     Wei
 >
 >
 >
 >     ----- Original Message -----
 >     From: "mpich2" <mpich2-maint@mcs.anl.gov>
 >     Sent: Tuesday, November 25, 2008 8:21 PM
 >     Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
 >
 >
 >     >
 >
 >
 >
 >
 >

--------------------------------------------------+-----------------------
 >    --
 >     > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >     >     Type:  bug                                   |       Status:
 > new
 >     > Priority:  major                                 |    Milestone:
 >     > Component:  mpich2                                |   Resolution:
 >     > Keywords:                                        |
 >     >
 >
 >
 >
 >
 >

--------------------------------------------------+-----------------------
 >    --
 >     >
 >     >
 >     > Comment (by Jayesh Krishna):
 >     >
 >     > {{{
 >     >
 >     >  Hi,
 >     >   Are you using MPICH2+IF on windows ? Why do you want to use the
 >   mixed
 >     > string length args when compiling your fortran code ?
 >     >
 >     > Regards,
 >     > Jayesh
 >     >
 >     > -----Original Message-----
 >     > From: mpich2-bugs-bounces@mcs.anl.gov  >
 > [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
 >    Tuesday, November 25, 2008 11:34 AM  > To: undisclosed-recipients:
 >     > Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >
>
 >
 >
--------------------------------------------------+---------------------
 >     > --------------------------------------------------+----
 >     >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:
 > bug
 >     >    Status:  new                                   |    Priority:
 >   major
 >     > Milestone:                                        |   Component:
 >    mpich2
 >     >
 >
 >
--------------------------------------------------+---------------------
 >     > --------------------------------------------------+----
 >     >
 >     >
 >     >  {{{
 >     >
 >     >  Dear MPI developing group,
 >     >
 >     >  I am trying to run a FORTRAN code (Intel Fortran compilier). In
 my
 > code  I  > need  to use  the compilier option:
 "/iface:mixed_str_len_arg".
 >     >  Unfortrantely MPICH2 does not support this mixed_str_len_arg.
 >     >  I tried compiling the MPICH2 source code with mixed_str_len_arg
 > option,  > but it  still does not work.
 >     >  Do you know how to compile a MPI version that supports  >
 > /iface:mixed_str_len_arg  (based in Interl Fortran compilier).
 >     >
 >     >
 >     >
 >     >  Cheers,
 >     >  Wei Yao
 >     >
 >     >
 >     >  }}}
 >     >
 >     >
 >     > --
 >     > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>
 >     > }}}
 >     >
 >     > --
 >     > Ticket URL:
 >     <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >     >
 >     }}}
 >
 >    --
 >    Ticket URL:
 >   <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >    }}}
 >
 >   --
 >   Ticket URL:
 >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >   }}}
 >
 >  --
 >  Ticket URL:
 > <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >
 >
 >  }}}
 >
 > --
 > Ticket URL:
 <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 > }}}
 >
 > --
 > Ticket URL:
 <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >
 }}}

--
Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>


comment:12 Changed 9 years ago by Jayesh Krishna


Hi,
 If you explicitly pass character string lengths in your code, your code
is no longer portable. Do you have to pass character strings btw the
sources compiled with different options ?
 The default options of FORTRAN compilers are not standardized. For
example if you use Compaq Digital fortran compiler the default option is
"mixed_str_len_arg" & if you use the Intel fortran compiler the default
option is "no_mixed_str_len_arg" (So even if the developer compiled their
code with the default options there is no consensus on all the compiler
options).

Regards,
Jayesh


----- Original Message -----
Dear Jayesh,

I can do it in this way:

If this is the subroutine compilied with After Individual String Argument,
Subroutine MySub1(int1,real1,cha[1],int2,real2,cha[2])
In my code, I need to call the routine by adding additional string length
arguments,
MySub1(int1,real1,cha[1][,int3],int2,real2,cha[2][,int4]), where int3 and
int4 are the string lengths.

I tried it, it works.

The libs I am using is actually CHEMKIN libs. They compilied their code
with After Individual String Argument option.
I really do not understand why they do not use the default options in
Intel Compilier.

I appreciate your help very much.

Cheers,
Wei



----- Original Message -----
From: Jayesh Krishna
To: Wei Yao
Cc: mpich2-maint@mcs.anl.gov
Sent: Wednesday, December 10, 2008 5:50 PM
Subject: RE: [mpich2-maint] #307: about /iface:mixed_str_len_arg


 Hi,
  As long as you don't have to pass CHARACTER strings between the two
source files (the one that makes MPI calls & the one that makes CHEMKIN
calls) you should be ok. You can compile the source that makes MPI calls
with "stdcall+reference+names_uppercase+no_mixed_str_len" settiings
(/iface:stdref /names:uppercase) & the source that makes CHEMKIN calls
with "/iface:cvf" option. The linker would then be able to link your
object files to create an executable.
  Let us know if it works for you.

Regards,
Jayesh

-----Original Message-----
From: mpich2-bugs-bounces@mcs.anl.gov
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, December 10, 2008 4:07 AM
To: undisclosed-recipients:
Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg

--------------------------------------------------+---------------------
--------------------------------------------------+----
 Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
     Type:  bug                                   |       Status:  new
 Priority:  major                                 |    Milestone:
Component:  mpich2                                |   Resolution:
 Keywords:                                        |
--------------------------------------------------+---------------------
--------------------------------------------------+----


Comment (by Wei Yao):

 {{{

 Dear Jayesh,

 The CHEMKIN does not include any MPI calls.
 It is easy to do what you suggest: to separate the code that makes MPI
calls and  calls to
  CHEMKIN to different source files & compile with different compiler
arguments.
 But How
 can I build them in the same executable file?


 Cheers,
 Wei



 ----- Original Message -----
 From: "mpich2" <mpich2-maint@mcs.anl.gov>
 Sent: Tuesday, December 09, 2008 10:39 PM
 Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg


 >

--------------------------------------------------+-----------------------
--
 > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >     Type:  bug                                   |       Status:  new
 > Priority:  major                                 |    Milestone:
 > Component:  mpich2                                |   Resolution:
 > Keywords:                                        |
 >

--------------------------------------------------+-----------------------
--
 >
 >
 > Comment (by Jayesh Krishna):
 >
 > {{{
 >
 >  Hi,
 >   Does the library CHEMKIN make any MPI calls (Is it linked with MPICH2
 ?
 > ) ? If not, can you separate the code that makes MPI calls and calls to
> CHEMKIN to different source files & compile with different compiler  >
arguments (calls to MPI/MPICH2 with no_mixed_str_len_arg & calls to  >
CHEMKIN with mixed_str_len_arg) ?
 >
 > (PS: Supporting mixed_str_len_arg compiler option would require some
work  > and might not be available instantly.)  > Regards,  > Jayesh  >  >
-----Original Message-----  > From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
Monday, December 08, 2008 9:25 AM  > To: undisclosed-recipients:
 > Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
--------------------------------------------------+---------------------
 > --------------------------------------------------+----
 >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >      Type:  bug                                   |       Status:  new
 >  Priority:  major                                 |    Milestone:
 > Component:  mpich2                                |   Resolution:
 >  Keywords:                                        |
 >
--------------------------------------------------+---------------------
 > --------------------------------------------------+----
 >
 >
 > Comment (by Jayesh Krishna):
 >
 >  {{{
 >
 >  Hi,
 >   We are still working on a solution to the problem.
 >
 >  (PS: We know what the problem is but are still looking for an elegant
> soln. With mixed str len arg, FORTRAN code passes string lengths just  >
after a string, CHARACTER array, argument to a function. So MPICH2 lib,  >
fmpich2s.lib, exports two versions of the MPI functions that accept a
user  > buffer. However the fortran compiler does not generate different
symbols  > for functions that differ in the number of the arguments. In
your code  > this results in all instances of MPI_SEND() being linked to
either the  > interface function that accept CHARACTER arrays OR the
function that  > accepts non-CHARACTER arrays - the interface function
linked to depends  on  > the type/number of arguments for MPI_SEND() that
the compiler first  "see"s  > in your code.)  >  >  Regards,  >  Jayesh  >
 >    _____
 >
 >  From: Wei Yao [mailto:Yao-W@email.ulster.ac.uk]  >  Sent: Monday,
December 08, 2008 8:01 AM  >  To: Jayesh Krishna  >  Subject: Re:
[mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >  >  >  >  Hi,
Jayesh,  >  >  Got any solution for the problem?
 >
 >  Cheers,
 >  Wei
 >
 >
 >
 >
 >  ----- Original Message -----
 >  From: Jayesh  <mailto:jayesh@mcs.anl.gov> Krishna  >  To: Wei Yao
<mailto:Yao-W@email.ulster.ac.uk>  >  Cc: mpich2-maint@mcs.anl.gov  >
Sent: Monday, December 01, 2008 6:40 PM  >  Subject: RE: [mpich2-maint]
#307: about /iface:mixed_str_len_arg  >  >  >  >  Hi,
 >   Please try the following,
 >
 >  # Delete all object files and executables created by your project.
 >  # Set the following settings in IVF for compiling your source,  >  >
====  Set the "Calling convention" for "External procedures" in IVF to  >
CVF  >  ("/iface:cvf")  >  ====  Leave the "Name Case interpretation" for
"External procedures" to  > default (don't change anything here)  ====
Leave the "String length  > argument passing" for "External procedures"
 >  in IVF to default (don't change anything here - the compiler should  >
select  "After Individual string argument" by default for CVF calling  >
convention)  ====  Leave the "Append Underscore to External Names"
 setting
 > for  "External procedures" to default (don't change anything here)
====  > Compile your code and Link your code with "fmpich2s.lib"
 >
 >   If you are compiling from command line use the following example to
 > compile your code (in the example below source code is "fpi.f" & MPICH2
is  > installed in "c:\progra~1\mpich2")  >  >  C:\test> ifort fpi.f
/Ic:\progra~1\mpich2\include /iface:cvf /link  > /OUT:fpi.exe
/LIBPATH:c:\progra~1\mpich2\lib fmpich2s.lib  >
 >   Let us know if it works for you.
 >
 >  Regards,
 >  Jayesh
 >
 >
 >  -----Original Message-----
 >  Dear jayesh Krishna,
 >
 >
 >  I tried using fmpich2s.lib with /iface:mixed_str_len_arg  but it gives
> errors like:
 >  unrecognized symbol _MPI_INIT
 >  unrecognized symbol _MPI_COMM_RANK
 >  unrecognized symbol  _MPI_COMM_SIZE
 >  unrecognized symbol  _MPI_GET_PROCE
 >  unrecognized symbol  _MPI_BARRIER
 >  unrecognized symbol  _MPI_ALLGATHER
 >  unrecognized symbol  _MPI_GATHER
 >  unrecognized symbol  _MPI_ALLREDUCE
 >  unrecognized symbol  _MPI_REDUCE
 >  unrecognized symbol  _MPI_FINALIZE
 >  unrecognized symbol  _MPI_SEND
 >  unrecognized symbol  _MPI_RECV
 >  unrecognized symbol  _MPI_ISEND
 >  unrecognized symbol  _MPI_WAITALL
 >  unrecognized symbol  _MPI_IRECV
 >
 >  Cheers,
 >  Wei
 >
 >
 >  -----Original Message-----
 >  From: mpich2-bugs-bounces@mcs.anl.gov  >
[mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  >  Sent:
Wednesday, November 26, 2008 5:42 PM  >  To: undisclosed-recipients:
 >  Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >  >
 --------------------------------------------------+---------------------
 >  --------------------------------------------------+----
 >   Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >       Type:  bug                                   |       Status:  new
 >   Priority:  major                                 |    Milestone:
 >  Component:  mpich2                                |   Resolution:
 >   Keywords:                                        |
 >
 --------------------------------------------------+---------------------
 >  --------------------------------------------------+----
 >
 >
 >  Comment (by Jayesh Krishna):
 >
 >   {{{
 >
 >    Hi,
 >     Did you try compiling your code with fmpich2s.lib ?
 >
 >   Regards,
 >   Jayesh
 >
 >   -----Original Message-----
 >   From: mpich2-bugs-bounces@mcs.anl.gov
 >   [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 >   Sent: Wednesday, November 26, 2008 10:28 AM
 >   To: undisclosed-recipients:
 >   Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
 >
 >
 --------------------------------------------------+---------------------
 >   --------------------------------------------------+----
 >    Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >        Type:  bug                                   |       Status:
new
 >    Priority:  major                                 |    Milestone:
 >   Component:  mpich2                                |   Resolution:
 >    Keywords:                                        |
 >
 --------------------------------------------------+---------------------
 >   --------------------------------------------------+----
 >
 >
 >   Comment (by Jayesh Krishna):
 >
 >    {{{
 >
 >     Hi,
 >      Changing the options of the fortran compiler won't work. Let me
 take
 > a  look into this and get back to you (I will try to make your life
easier  > :)  ).
 >
 >    Regards,
 >    Jayesh
 >
 >    -----Original Message-----
 >    From: mpich2-bugs-bounces@mcs.anl.gov
 >    [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 >    Sent: Tuesday, November 25, 2008 6:27 PM
 >    To: undisclosed-recipients:
 >    Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
 >
 >
 >
--------------------------------------------------+---------------------
 >    --------------------------------------------------+----
 >     Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >         Type:  bug                                   |       Status:
 new
 >     Priority:  major                                 |    Milestone:
 >    Component:  mpich2                                |   Resolution:
 >     Keywords:                                        |
 >
 >
--------------------------------------------------+---------------------
 >    --------------------------------------------------+----
 >
 >
 >    Comment (by Wei Yao):
 >
 >     {{{
 >
 >     Dear Jayesh,
 >
 >     I am using MPI+IF on windows.
 >     I need to use libs from another software (CHEMKIN ) in my code.
 These
 > libs  are  compiled with /iface:CVF option and I can not recompiled
these  > libs.
 >     I changed the compiler option of Fortran projects to
 > /iface:mixed_str_len_arg  and recompilied it. But this  does not solved
> the problem. I know few about the structure of MPI source  code;  maybe
I  > need to do some changes in the MPICH2f project.
 >
 >
 >
 >     Cheers,
 >     Wei
 >
 >
 >
 >     ----- Original Message -----
 >     From: "mpich2" <mpich2-maint@mcs.anl.gov>
 >     Sent: Tuesday, November 25, 2008 8:21 PM
 >     Subject: Re: [mpich2-maint] #307: about /iface:mixed_str_len_arg
 >
 >
 >     >
 >
 >
 >
 >
 >

--------------------------------------------------+-----------------------
 >    --
 >     > Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Owner:
 >     >     Type:  bug                                   |       Status:
 > new
 >     > Priority:  major                                 |    Milestone:
 >     > Component:  mpich2                                |   Resolution:
 >     > Keywords:                                        |
 >     >
 >
 >
 >
 >
 >

--------------------------------------------------+-----------------------
 >    --
 >     >
 >     >
 >     > Comment (by Jayesh Krishna):
 >     >
 >     > {{{
 >     >
 >     >  Hi,
 >     >   Are you using MPICH2+IF on windows ? Why do you want to use the
 >   mixed
 >     > string length args when compiling your fortran code ?
 >     >
 >     > Regards,
 >     > Jayesh
 >     >
 >     > -----Original Message-----
 >     > From: mpich2-bugs-bounces@mcs.anl.gov  >
 > [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2  > Sent:
 >    Tuesday, November 25, 2008 11:34 AM  > To: undisclosed-recipients:
 >     > Subject: [mpich2-maint] #307: about /iface:mixed_str_len_arg  >
>
 >
 >
--------------------------------------------------+---------------------
 >     > --------------------------------------------------+----
 >     >  Reporter:  "Wei Yao" <Yao-W@email.ulster.ac.uk>  |        Type:
 > bug
 >     >    Status:  new                                   |    Priority:
 >   major
 >     > Milestone:                                        |   Component:
 >    mpich2
 >     >
 >
 >
--------------------------------------------------+---------------------
 >     > --------------------------------------------------+----
 >     >
 >     >
 >     >  {{{
 >     >
 >     >  Dear MPI developing group,
 >     >
 >     >  I am trying to run a FORTRAN code (Intel Fortran compilier). In
 my
 > code  I  > need  to use  the compilier option:
 "/iface:mixed_str_len_arg".
 >     >  Unfortrantely MPICH2 does not support this mixed_str_len_arg.
 >     >  I tried compiling the MPICH2 source code with mixed_str_len_arg
 > option,  > but it  still does not work.
 >     >  Do you know how to compile a MPI version that supports  >
 > /iface:mixed_str_len_arg  (based in Interl Fortran compilier).
 >     >
 >     >
 >     >
 >     >  Cheers,
 >     >  Wei Yao
 >     >
 >     >
 >     >  }}}
 >     >
 >     >
 >     > --
 >     > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307>
 >     > }}}
 >     >
 >     > --
 >     > Ticket URL:
 >     <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >     >
 >     }}}
 >
 >    --
 >    Ticket URL:
 >   <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >    }}}
 >
 >   --
 >   Ticket URL:
 >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >   }}}
 >
 >  --
 >  Ticket URL:
 > <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >
 >
 >  }}}
 >
 > --
 > Ticket URL:
 <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 > }}}
 >
 > --
 > Ticket URL:
 <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>
 >
 }}}

--
Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/307#comment:>

Changed 9 years ago by Jayesh Krishna

Added by email2trac

comment:13 Changed 9 years ago by balaji

  • Milestone set to future
  • Owner set to jayesh

comment:14 Changed 5 years ago by balaji

  • Description modified (diff)
  • Owner jayesh deleted
Note: See TracTickets for help on using tickets.