[Fwd: Re: [MPICH] Crash using MPI_PACK on windows but not on Linux - Use "After all args"
biswanath.chowdhury at l-3com.com
biswanath.chowdhury at l-3com.com
Thu Nov 30 16:26:50 CST 2006
Hi ,
Thanks a lot. The test case and actual code works great with the
settings that you mention.
-Biswanath
Jayesh Krishna wrote:
> Hi,
> The problem seems to be with the string length argument passed by fortran
> compiler when character buffers are passed. Please try setting the following
> project setting in Visual Studio when compiling your test mpi program,
> Set "Project -> Settings -> Fortran -> Category = External Procedures ->
> String length argument passing" to "After all args"
> After setting the "string length argument passing" to "after all args" try
> compiling/executing your test mpi program and let us know the results.
>
> Regards,
> Jayesh
>
> ----------------------------------
> Jayesh Krishna
> Argonne National Laboratory
> Mathematics and Computer Science
> Email: jayesh at mcs.anl.gov
> ----------------------------------
> -----Original Message-----
> From: Jayesh Krishna [mailto:jayesh at mcs.anl.gov]
> Sent: Wednesday, November 29, 2006 5:00 PM
> To: 'biswanath.chowdhury at l-3com.com'
> Subject: RE: [Fwd: Re: [MPICH] Crash using MPI_PACK on windows but not on
> Linux -Looking into the pblm
>
> Hi,
> Looks like the problem/crash is due to the additional information that
> Compaq Visual fortran compiler (I was compiling with Intel fortran compiler,
> which does not add these extra info) adds when passing parameters (character
> arrays) to the mpich2 library. I am looking into the problem and will update
> you soon.
> (You can see the problem if you try to compile with standard calling
> convention and link with fmpich2s.lib)
>
> Regards,
> Jayesh
>
> ----------------------------------
> Jayesh Krishna
> Argonne National Laboratory
> Mathematics and Computer Science
> Email: jayesh at mcs.anl.gov
> ----------------------------------
> -----Original Message-----
> From: biswanath.chowdhury at l-3com.com [mailto:biswanath.chowdhury at l-3com.com]
> Sent: Tuesday, November 28, 2006 1:45 PM
> To: jayesh at mcs.anl.gov
> Subject: [Fwd: Re: [MPICH] Crash using MPI_PACK on windows but not on Linux
> - pls provide us with the compiler/linker settings]
>
> Hi Jayesh,
>
> Did you receive my earlier mail with the test case attached?
>
> Could you please send me a msi for the version that you are using or for
> MPICH2-1.0.4p1.?
>
> I can try running my test case using the new build. We tried building the
> MPICH2-1.0.4p1 from source but we get a lot of errors from winconfigure.wsf
> .
>
> Thanks,
> Biswanath
>
>
> -------- Original Message --------
> From: - Mon Nov 20 17:20:01 2006
> X-Mozilla-Status: 0001
> X-Mozilla-Status2: 00800000
> Message-ID: <45622A0F.2030806 at L-3Com.com>
> Date: Mon, 20 Nov 2006 17:19:59 -0500
> From: Biswanath Chowdhury <biswanath.chowdhury at L-3Com.com>
> Reply-To: biswanath.chowdhury at L-3Com.com
> User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
> MIME-Version: 1.0
> To: Jayesh Krishna <jayesh at mcs.anl.gov>
> Subject: Re: [MPICH] Crash using MPI_PACK on windows but not on Linux
> -
> pls provide us with the compiler/linker settings
> References: <003501c70ce1$a8bafc70$9d09dd8c at mcs.anl.gov>
> In-Reply-To: <003501c70ce1$a8bafc70$9d09dd8c at mcs.anl.gov>
>
> Content-Type: multipart/mixed;
> boundary="------------080104030100070300000902"
>
>
>
> Hi,
>
> I have not enabled the "Multi-threaded library" when linking the project. I
> have attached a code which runs successfully and provides the following
> outputs on separate windows.
>
> Sender: id = 0 a, b, n = 12.00000
> 10.00000 30
>
> Receiver : id = 1 a, b, n = 12.00000 10.00000
> 30
>
> The executable, workspace and project files are also included in the zip
> file.
>
> The main options are as follows:
>
> Fortran options :
> /check:bounds /compile_only /debug:full /extend_source:132 /iface:cref
> /include:"..\Debug" /include:"d:\mpich2\include" /nologo /traceback
> /warn:argument_checking /warn:nofileopt /module:"..\Debug"
> /object:"Debug/" /pdbfile:"Debug/DF60.PDB"
>
> C/C++ options:
> /nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D
> "_MBCS" /Fp"Debug/mpitest.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
>
> Link options:
> cxx.lib mpi.lib fmpich2.lib fmpich2s.lib fmpich2g.lib f90mod.lib stubs.lib
> kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
> shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo
> /subsystem:console /incremental:no /pdb:"Debug/mpitest.pdb" /debug
> /machine:I386 /out:"Debug/mpitest.exe"
> /pdbtype:sept /libpath:"..\debug" /libpath:"d:\mpich2\lib"
>
>
> I don't think that the linker problem is of concern as I can link and my
> compiler version is 6.6c.
>
> Thanks,
> Biswanath
>
>
> Jayesh Krishna wrote:
>
>> Hi,
>>
>> # Please provide us with detailed information on your compiler/linker
>> settings.
>> # Have you enabled "Multi-threaded library" support when linking your
>> project ?
>> (Compaq Visual fortran seems to have some problem, linker error :
>> unresolved external symbol __imp___fpieee_flt, when enabling
>> multithreaded library support from VS. You can download the Visual
>> fortran knowledge base from
>> http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,
>> 1701,7 175,00.html to know more on how to solve the problem)
>> If you compile your fortran project statically with the MPICH2
>> libraries you might get "Program exception" at run time.
>>
>>
>> Regards,
>> Jayesh
>>
>> ----------------------------------
>> Jayesh Krishna
>> Argonne National Laboratory
>> Mathematics and Computer Science
>> Email: jayesh at mcs.anl.gov
>> ----------------------------------
>> -----Original Message-----
>> From: biswanath.chowdhury at l-3com.com
>> [mailto:biswanath.chowdhury at l-3com.com]
>>
>> Sent: Friday, November 17, 2006 12:11 PM
>> To: Jayesh Krishna
>> Subject: Re: [MPICH] Crash using MPI_PACK on windows but not on Linux
>> - pls compile/run the pgm attached
>>
>> Hi Jayesh,
>>
>> Thanks for responding to my posting. I have tried your example program
>> and it is also crashing in windows. It appears to be in my_rank= 0 at
>> the first call to MPI_PACK.
>>
>> The error message is as follow:
>>
>> forrtl: severe (157): Program Exception - access violation
>> Image PC Routine Line Source
>> fmpich2.dll 00323D8F Unknown Unknown Unknown
>> mpitest.exe 0040105D MAIN 11
>>
> mpi_pack_test.f
>
>> mpitest.exe 0043EE19 Unknown Unknown Unknown
>> mpitest.exe 00427A29 Unknown Unknown Unknown
>> kernel32.dll 7C816D4F Unknown Unknown Unknown
>>
>> As mentioned earlier, I am running using Visual Fortran 6.6c. The test
>> was run in debug mode as described in the document "Windows Development
>>
> Guide"
>
>> Version 1.0.3, Section 9.8.
>>
>> Thanks,
>> Biswanath
>>
>>
>
>
>
>
>
More information about the mpich-discuss
mailing list