[mpich-discuss] discuss Digest, Vol 34, Issue 4

Kenneth Raffenetti raffenet at mcs.anl.gov
Wed Aug 12 10:06:19 CDT 2015


There were a number of bugs in your program. I've attached a new version 
that ran fine on my machine. Can you confirm?

Ken

On 08/12/2015 01:25 AM, Riddhi Modi wrote:
> My program:
>
> #include<stdio.h>
> #include"mpi.h"
>
> int main(int argc,char **argv)
> {
>             int total_procs,rank,namelen,i;
>             int n=10,m=11;
>             char processor_name[MPI_MAX_PROCESSOR_NAME];
>              char filename[256];
>              file *fp1,*fp2;
>              MPI_Status status;
>              MPI_Init(&argc,&argv);
>              MPI_Comm_size(MPI_COMM_WORLD,&total_procs);
>              MPI_Comm_rank(MPI_COMM_WORLD,&rank);
>              MPI_Get_Processor_name(Processor name,&namelen);
>             fprintf(stdout,"Process %d of %d is on %s
> \n",rank,total_procs,processor_name);
>             fflush(stdout);
>             if(rank==0)
>             {
>                     MPI_Send(&n,1,MPI_INT,1,0,MPI_COMM_WORLD);
>                     fp1=fopen("n.xx","w");
>                     fprintf(fp1,"%d",n);
>             }
>
>
>             if(rank==1)
>              {
>                      MPI_Recv(&n,1,MPI_INT,0.0,MPI_COMM_WORLD,&status);
>                      n=11;
>                      fp2=fopen("n.yy","w");
>                      fprintf(fp2,"%d",n);
>                      fclose(fp2);
>              }
>             MPI_Finalize();
>             return 0;
> }
>
>
> to execute the program i wrote :  mpiexec -n 2 -hosts master,node1 ./sim
>
> but it gives me error like assertion failed in file
> src/mpid/ch3/channels/nemesis/netmod/tcp/socksm.c at line 597 :
> hdr.datalen!=0
>
> internal ABORT - process 1 .
>
>
> how to solve this error ??
>
>
>
> On Tue, Aug 11, 2015 at 9:54 PM, <discuss-request at mpich.org
> <mailto:discuss-request at mpich.org>> wrote:
>
>     Send discuss mailing list submissions to
>     discuss at mpich.org <mailto:discuss at mpich.org>
>
>     To subscribe or unsubscribe via the World Wide Web, visit
>     https://lists.mpich.org/mailman/listinfo/discuss
>     or, via email, send a message with subject or body 'help' to
>     discuss-request at mpich.org <mailto:discuss-request at mpich.org>
>
>     You can reach the person managing the list at
>     discuss-owner at mpich.org <mailto:discuss-owner at mpich.org>
>
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of discuss digest..."
>
>
>     Today's Topics:
>
>         1. Re:  [MPICH compilation with NAG Fortran compiler]
>            (Thakur, Rajeev)
>         2. Re:  Problems with running make (Balaji, Pavan)
>         3.  static building of mpich (Doha Ehab)
>         4. Re:  static building of mpich (Balaji, Pavan)
>         5.  Error : Assertion Failed (Riddhi Modi)
>         6. Re:  Error : Assertion Failed (Balaji, Pavan)
>         7. Re:  static building of mpich (Doha Ehab)
>
>
>     ----------------------------------------------------------------------
>
>     Message: 1
>     Date: Thu, 6 Aug 2015 15:15:32 +0000
>     From: "Thakur, Rajeev" <thakur at mcs.anl.gov <mailto:thakur at mcs.anl.gov>>
>     To: "discuss at mpich.org <mailto:discuss at mpich.org>"
>     <discuss at mpich.org <mailto:discuss at mpich.org>>
>     Subject: Re: [mpich-discuss] [MPICH compilation with NAG Fortran
>              compiler]
>     Message-ID: <93932738-717A-466B-96ED-F9A398DD92EE at mcs.anl.gov
>     <mailto:93932738-717A-466B-96ED-F9A398DD92EE at mcs.anl.gov>>
>     Content-Type: text/plain; charset="utf-8"
>
>     We run nightly tests with the NAG compiler, and they build fine (see
>     the 5th column from the right at
>     http://www.mpich.org/static/cron/tests/). Can you try configuring
>     with just the ?prefix option to see if one of the options is the
>     cause. Shared libraries are built by default.
>
>     Rajeev
>
>
>      > On Aug 6, 2015, at 6:25 AM, Maxim Abalenkov
>     <maxim.abalenkov at gmail.com <mailto:maxim.abalenkov at gmail.com>> wrote:
>      >
>      > Dear Madam or Sir,
>      >
>      > I?m facing a problem trying to compile MPICH with NAG Fortran
>     compiler. The compilation breaks with an unrecognised option
>     ??dynamic lib? error. Please see the make log file called ?m.txt?.
>      >
>      > To configure MPICH version 3.2b4 I?m using the attached configure
>     script. Please see the script for the MPICH configuration options.
>     Configuration and compilation log files called ?c.txt? and ?m.txt?
>     are also attached.
>      >
>      > I would greatly appreciate your help in compiling MPICH with NAG
>     Fortran. Thank you. Have a good day.
>      >
>      > Product name and version: NAG Fortran Compiler Release 6.0
>     (Hibiya) Build 1021
>      > OS: Mac OS X Yosemite 10.10.4 (64-bit)
>      >
>      > ?
>      > Best wishes,
>      > Maxim Abalenkov
>      >
>      >
>      >
>      > _______________________________________________
>      > discuss mailing list discuss at mpich.org <mailto:discuss at mpich.org>
>      > To manage subscription options or unsubscribe:
>      > https://lists.mpich.org/mailman/listinfo/discuss
>      > <mpich-configure-nag.sh><c.txt><m.txt>
>
>
>     ------------------------------
>
>     Message: 2
>     Date: Thu, 6 Aug 2015 15:48:45 +0000
>     From: "Balaji, Pavan" <balaji at anl.gov <mailto:balaji at anl.gov>>
>     To: "discuss at mpich.org <mailto:discuss at mpich.org>"
>     <discuss at mpich.org <mailto:discuss at mpich.org>>
>     Subject: Re: [mpich-discuss] Problems with running make
>     Message-ID: <D355EC24-A2D3-4BDA-85A0-01F76B89D250 at anl.gov
>     <mailto:D355EC24-A2D3-4BDA-85A0-01F76B89D250 at anl.gov>>
>     Content-Type: text/plain; charset="utf-8"
>
>
>     Sorry, windows is not supported.
>
>        -- Pavan
>
>     From: hirak chatterjee
>     Reply-To: "discuss at mpich.org
>     <mailto:discuss at mpich.org><mailto:discuss at mpich.org
>     <mailto:discuss at mpich.org>>"
>     Date: Thursday, August 6, 2015 at 10:04 AM
>     To: "discuss at mpich.org
>     <mailto:discuss at mpich.org><mailto:discuss at mpich.org
>     <mailto:discuss at mpich.org>>"
>     Subject: [mpich-discuss] Problems with running make
>
>
>     Sir,
>     I am working with windows 8 (64 bit). After configuring
>     successfully,following the export step
>
>       ./configure --prefix=/home/hirak/mpich-install
>
>     --enable-timer-type=gettimeofday CC="gcc-4" CPP="cpp-4" CXX="g++-4"
>
>     CXXCPP="cpp-4" 2>&1 | tee c.txt
>
>     I am getting the error repeatedly
>
>     function 'MPIX_Grequest_class_allocate' part of alias cycle.
>     The text file is attached herewith.
>     Plz help.
>     Hirak
>
>     --
>     Hirak Chatterjee<https://www.facebook.com/hirakc1>
>     Research Scholar
>     Department of Chemistry
>     Assam University, Silchar
>     Assam-788011
>     INDIA
>     Phone No: +918486882543 (ASSAM)
>                      +919475265107 (WEST BENGAL)
>
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://lists.mpich.org/pipermail/discuss/attachments/20150806/d2cc5a59/attachment-0001.html>
>
>     ------------------------------
>
>     Message: 3
>     Date: Mon, 10 Aug 2015 03:24:43 +0300
>     From: Doha Ehab <dohaehab at gmail.com <mailto:dohaehab at gmail.com>>
>     To: discuss at mpich.org <mailto:discuss at mpich.org>
>     Subject: [mpich-discuss] static building of mpich
>     Message-ID:
>
>     <CAEjFr-bJN0OtKha+N+qz83oMSbMfXMOihX2iEFqPWXHg3WLzFg at mail.gmail.com
>     <mailto:CAEjFr-bJN0OtKha%2BN%2Bqz83oMSbMfXMOihX2iEFqPWXHg3WLzFg at mail.gmail.com>>
>     Content-Type: text/plain; charset="utf-8"
>
>     Hello,
>       i'm trying to cross compile mpich , I have extracted mpich-3.1.3 the I
>     created a folder name build inside it . In order to statically build
>     mpich
>     I used the following commands:
>
>     export
>     CC="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc"
>     export
>     AR="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-ar"
>     export CFLAGS="-march=armv5te -static
>     -I/home/doha/buildroot-2015.02/output/host/usr/include/"
>     export LDFLAGS="-L/home/doha/buildroot-2015.02/output/host/usr/lib/"
>
>
>     cc=/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc
>     ./configure --prefix=/home/doha/mpich-3.1.3/build/ --host=arm-linux
>       --disable-shared --with-pm=hydra --with-device=ch3:nemesis
>     --disable-fortran
>
>
>     but nothing appears in the build folder while it shows no errors on the
>     terminal
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://lists.mpich.org/pipermail/discuss/attachments/20150810/f7e08533/attachment-0001.html>
>
>     ------------------------------
>
>     Message: 4
>     Date: Mon, 10 Aug 2015 03:13:26 +0000
>     From: "Balaji, Pavan" <balaji at anl.gov <mailto:balaji at anl.gov>>
>     To: "discuss at mpich.org <mailto:discuss at mpich.org>"
>     <discuss at mpich.org <mailto:discuss at mpich.org>>
>     Subject: Re: [mpich-discuss] static building of mpich
>     Message-ID: <61167DA3-6B70-41FD-987C-B0E4823B51FB at anl.gov
>     <mailto:61167DA3-6B70-41FD-987C-B0E4823B51FB at anl.gov>>
>     Content-Type: text/plain; charset="utf-8"
>
>
>     Did you do make and make install?
>
>        -- Pavan
>
>     From: Doha Ehab
>     Reply-To: "discuss at mpich.org
>     <mailto:discuss at mpich.org><mailto:discuss at mpich.org
>     <mailto:discuss at mpich.org>>"
>     Date: Sunday, August 9, 2015 at 7:24 PM
>     To: "discuss at mpich.org
>     <mailto:discuss at mpich.org><mailto:discuss at mpich.org
>     <mailto:discuss at mpich.org>>"
>     Subject: [mpich-discuss] static building of mpich
>
>     Hello,
>       i'm trying to cross compile mpich , I have extracted mpich-3.1.3
>     the I created a folder name build inside it . In order to statically
>     build mpich I used the following commands:
>
>     export
>     CC="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc"
>     export
>     AR="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-ar"
>     export CFLAGS="-march=armv5te -static
>     -I/home/doha/buildroot-2015.02/output/host/usr/include/"
>     export LDFLAGS="-L/home/doha/buildroot-2015.02/output/host/usr/lib/"
>
>
>     cc=/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc
>     ./configure --prefix=/home/doha/mpich-3.1.3/build/ --host=arm-linux
>     --disable-shared --with-pm=hydra --with-device=ch3:nemesis
>     --disable-fortran
>
>
>     but nothing appears in the build folder while it shows no errors on
>     the terminal
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://lists.mpich.org/pipermail/discuss/attachments/20150810/e0ba151e/attachment-0001.html>
>
>     ------------------------------
>
>     Message: 5
>     Date: Tue, 11 Aug 2015 12:19:29 +0530
>     From: Riddhi Modi <riddhimodi07 at gmail.com
>     <mailto:riddhimodi07 at gmail.com>>
>     To: discuss at mpich.org <mailto:discuss at mpich.org>
>     Subject: [mpich-discuss] Error : Assertion Failed
>     Message-ID:
>
>     <CAGMiM1FtDLfc1Fgb=k7j+A9LJV7UvrFA7i=Hk-44XCHdzGjU1A at mail.gmail.com
>     <mailto:Hk-44XCHdzGjU1A at mail.gmail.com>>
>     Content-Type: text/plain; charset="utf-8"
>
>     I have one major problem.I established mpich-3.1.4 cluster on 2 machines
>     and run cpi.c program with 2 process which run on 2 different
>     machines.But
>     there is an error like
>
>     Assertion Failed in file
>     src/mpid/ch3/channels/nemesis/netmod/tcp/socksm.c
>     at line 597: hdr.datalen!=0
>
>     Internal  ABORT -process 1
>
>     how can i solve this kind of error.??/ any idea??
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://lists.mpich.org/pipermail/discuss/attachments/20150811/ac9dfca5/attachment-0001.html>
>
>     ------------------------------
>
>     Message: 6
>     Date: Tue, 11 Aug 2015 07:10:50 +0000
>     From: "Balaji, Pavan" <balaji at anl.gov <mailto:balaji at anl.gov>>
>     To: "discuss at mpich.org <mailto:discuss at mpich.org>"
>     <discuss at mpich.org <mailto:discuss at mpich.org>>
>     Subject: Re: [mpich-discuss] Error : Assertion Failed
>     Message-ID: <869418A0-9F44-4423-84BD-ACEDE39264E2 at anl.gov
>     <mailto:869418A0-9F44-4423-84BD-ACEDE39264E2 at anl.gov>>
>     Content-Type: text/plain; charset="utf-8"
>
>
>     I don't think we have seen this error before.  Can you send us a
>     small program that reproduces this error?
>
>        -- Pavan
>
>     From: Riddhi Modi
>     Reply-To: "discuss at mpich.org
>     <mailto:discuss at mpich.org><mailto:discuss at mpich.org
>     <mailto:discuss at mpich.org>>"
>     Date: Tuesday, August 11, 2015 at 1:49 AM
>     To: "discuss at mpich.org
>     <mailto:discuss at mpich.org><mailto:discuss at mpich.org
>     <mailto:discuss at mpich.org>>"
>     Subject: [mpich-discuss] Error : Assertion Failed
>
>     I have one major problem.I established mpich-3.1.4 cluster on 2
>     machines and run cpi.c program with 2 process which run on 2
>     different machines.But there is an error like
>
>     Assertion Failed in file
>     src/mpid/ch3/channels/nemesis/netmod/tcp/socksm.c at line 597:
>     hdr.datalen!=0
>
>     Internal  ABORT -process 1
>
>     how can i solve this kind of error.??/ any idea??
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://lists.mpich.org/pipermail/discuss/attachments/20150811/1897d486/attachment-0001.html>
>
>     ------------------------------
>
>     Message: 7
>     Date: Tue, 11 Aug 2015 19:24:18 +0300
>     From: Doha Ehab <dohaehab at gmail.com <mailto:dohaehab at gmail.com>>
>     To: discuss at mpich.org <mailto:discuss at mpich.org>
>     Subject: Re: [mpich-discuss] static building of mpich
>     Message-ID:
>
>     <CAEjFr-aoTMG_igVbRVthsh4YGgLniMF8OdJMj0wfcZRmE8RHMw at mail.gmail.com
>     <mailto:CAEjFr-aoTMG_igVbRVthsh4YGgLniMF8OdJMj0wfcZRmE8RHMw at mail.gmail.com>>
>     Content-Type: text/plain; charset="utf-8"
>
>     No , but after I did make and make install I checked whether it was
>     statically built using the following command :
>
>     file bin/mpiexec
>     mpiexec: symbolic link to `mpiexec.hydra'
>
>     Then I typed
>
>     file bin/mpiexec.hydrampiexec.hydra: ELF 32-bit LSB executable, Intel
>     80386, version 1 (SYSV), dynamically linked (uses shared libs), for
>     GNU/Linux 2.6.24,
>     BuildID[sha1]=0xb4510fb70ac8047d9028dbafe2d43848140fe894,
>     not stripped
>
>     I don't understand why it is dynamically linked and not statically
>     linked
>
>
>     On Mon, Aug 10, 2015 at 6:13 AM, Balaji, Pavan <balaji at anl.gov
>     <mailto:balaji at anl.gov>> wrote:
>
>      >
>      > Did you do make and make install?
>      >
>      >   -- Pavan
>      >
>      > From: Doha Ehab
>      > Reply-To: "discuss at mpich.org <mailto:discuss at mpich.org>"
>      > Date: Sunday, August 9, 2015 at 7:24 PM
>      > To: "discuss at mpich.org <mailto:discuss at mpich.org>"
>      > Subject: [mpich-discuss] static building of mpich
>      >
>      > Hello,
>      >  i'm trying to cross compile mpich , I have extracted mpich-3.1.3
>     the I
>      > created a folder name build inside it . In order to statically
>     build mpich
>      > I used the following commands:
>      >
>      > export
>     CC="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc"
>      > export
>     AR="/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-ar"
>      > export CFLAGS="-march=armv5te -static
>      > -I/home/doha/buildroot-2015.02/output/host/usr/include/"
>      > export LDFLAGS="-L/home/doha/buildroot-2015.02/output/host/usr/lib/"
>      >
>      >
>      > cc=/home/doha/buildroot-2015.02/output/host/usr/bin/arm-linux-gcc
>      > ./configure --prefix=/home/doha/mpich-3.1.3/build/ --host=arm-linux
>      >  --disable-shared --with-pm=hydra --with-device=ch3:nemesis
>      > --disable-fortran
>      >
>      >
>      > but nothing appears in the build folder while it shows no errors
>     on the
>      > terminal
>      >
>      > _______________________________________________
>      > discuss mailing list discuss at mpich.org <mailto:discuss at mpich.org>
>      > To manage subscription options or unsubscribe:
>      > https://lists.mpich.org/mailman/listinfo/discuss
>      >
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://lists.mpich.org/pipermail/discuss/attachments/20150811/fd768ffb/attachment.html>
>
>     ------------------------------
>
>     _______________________________________________
>     discuss mailing list
>     discuss at mpich.org <mailto:discuss at mpich.org>
>     https://lists.mpich.org/mailman/listinfo/discuss
>
>     End of discuss Digest, Vol 34, Issue 4
>     **************************************
>
>
>
>
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.c
Type: text/x-csrc
Size: 910 bytes
Desc: not available
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20150812/571bf06f/attachment.bin>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list