[mvapich-discuss] install mvapich when there are two gcc in the system

zhang yigang zhangyg at mail.iggcas.ac.cn
Wed Mar 26 05:07:07 EDT 2008


Dear Pavel Shamis:

Thanks for your response. I used ifort for fortran compiler and gcc and g++ for c and c++ compiler. I used make.mvapich.gen2, and changed the parameters at lines starting with "export". I do not know how to specify a particular gcc, so I just 'cp gcc gcc-old' and 'rm gcc'. When I use 'which gcc', it gives me the one that I have not changed name and is the one that I want to use. Before I installed the new gcc4.2, everything works just fine. After the install of gcc 4.2,I tried with both the old and new gcc, and none of them work now. The gcc themselves and ifort seem to work when I type 'gcc'or 'ifort', but both mpicc and mpif90 do not work anymore and give me the undefined reference error. 

Maybe the new installment of gcc 4.2 get some libarary mixed up. I do not know what to do.

By the way, as you are from Mellanox, My infinibad switch (infiniscale) and HCA cards are from your company. The problem is sometimes when I reboot my computers the state of the cards becomes PORT_INIT(2). There is no way to make them active except to switch off the infiniscale switch and and then switch on all the computers. Do you know a better way?

another question: when I used 'ibclearcounter', there are following message

#warn: counter SymbolErrors = 65535     (threshold 10)
#warn: counter LinkDowned = 13  (threshold 10)
#warn: counter RcvSwRelayErrors = 2394  (threshold 100)
Error check on lid 2 (MT47396 Infiniscale-III Mellanox Technologies) port all:  FAILED

.....

## Summary: 25 nodes checked, 0 bad nodes found
##          48 ports checked, 0 bad ports found
##          8 ports have errors beyond threshold

They appear after I used ulimit -l and ulimit -s. What do the messages meaning? a correction?

The first question about gcc and mpicc and mpif90 is more urgent, hope someone kindly helps.

yigang zhang


----- Original Message ----- 
From: "Pavel Shamis (Pasha)" <pasha at dev.mellanox.co.il>
To: "zhang yigang" <zhangyg at mail.iggcas.ac.cn>
Cc: <mvapich-discuss at cse.ohio-state.edu>
Sent: Wednesday, March 26, 2008 4:09 PM
Subject: Re: [mvapich-discuss] install mvapich when there are two gcc in the system


> 
> > I had to use ATLAS for my calculation code VASP. The new ATLAS need to
> > be compiled using gcc 4.2. So I install gcc4.2. Everything seems fine.
> > I can use the new ATLAS in VASP now using the old mvapich-1.0 that I
> > compiled without the gcc4.2. However, when I deleted the old mvapich
> > that I compiled when there was no gcc 4.2 in my system and recompiled
> > mvapich-1.0, the compiling seems OK, but when I run mpicc or mpif90,
> > it always say:
> > /opt/intel/fce/10.1.012/lib/for_mai.o(.text+0x26): In function
> > 'main'::undefined reference to 'MAIN__"
> Actually "/opt/intel/fce" shows that you some how compiled your stuff
> with intel compiler?
> Before running mvapich compilation script you should define
> CC/CXX/F77/F90 env. variable that will point exactly on compiler that
> you want to use.
> 
> 
> -- 
> Pavel Shamis (Pasha)
> Mellanox Technologies



More information about the mvapich-discuss mailing list