[gmx-users] Improving Scaling w/ mpi & gcc v3.2

David van der Spoel spoel at xray.bmc.uu.se
Wed Dec 18 18:29:42 CET 2002


On Wed, 2002-12-18 at 16:14, Anton Feenstra wrote:
> Hi again,
> 
> 
> After some tryals, I found out that the following program (test.c):
> #include <mpi.h>
> int main () {
> int argc; char **argv; MPI_Init(&argc,&argv);
>   ;
>   return 0;
> }
> 
> doesn't compile in one step with:
> # cc -L/usr/local/mpich-1.2.4/lib -o test -g -O2 -lmpich -I/usr/local/mpich-1.2.4/include test.c
> or in different order:
> # cc -o test -g -O2 -I/usr/local/mpich-1.2.4/include -L/usr/local/mpich-1.2.4/lib -lmpich test.c
> 
> although it does compile in two steps:
> # cc -I/usr/local/mpich-1.2.4/include -c -g -O2 test.c
> # cc -L/usr/local/mpich-1.2.4/lib test.o -o test -g -O2 -lmpich
> 
> Is this normal behavior? It seems pretty weird to me... :-{
> By the way, the test.c comes from the failing test in configure,
> as does the command line.
> 
> 
try putting test.c before the linking arguments:
cc -o test -g -O2 -I/usr/local/mpich-1.2.4/include  test.c\
-L/usr/local/mpich-1.2.4/lib -lmpich

> -- 
> Groetjes,
> 
> Anton
>  ________ ___________________________________________________________
> |        | Anton Feenstra                                            |
> | .      | Dept. of Pharmacochemistry - Vrije Universiteit Amsterdam |
> | |----  | De Boelelaan 1083 - 1081 HV Amsterdam - The Netherlands   |
> | |----  | Tel: +31 20 44 47608 - Fax: +31 20 44 47610               |
> | ' __   | Feenstra at chem.vu.nl - http://www.chem.vu.nl/afdelingen/FAR|
> |  /  \  |-----------------------------------------------------------|
> | (    ) | Dept. of Biophysical Chemistry - University of Groningen  |
> |  \__/  | Nijenborgh 4 - 9747 AG Groningen - The Netherlands        |
> |   __   | Tel +31 50 363 4327 - Fax +31 50 363 4800                 |
> |  /  \  | K.A.Feenstra at chem.rug.nl - http://md.chem.rug.nl/~anton   |
> | (    ) |-----------------------------------------------------------|
> |  \__/  | "Three Little Fonzies" (Pulp Fiction)                     |
> |________|___________________________________________________________|
> _______________________________________________
> gmx-users mailing list
> gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-users-request at gromacs.org.
> _______________________________________________
> gmx-users mailing list
> gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-users-request at gromacs.org.
> 
-- 
Groeten, David.
________________________________________________________________________
Dr. David van der Spoel, 	Biomedical center, Dept. of Biochemistry
Husargatan 3, Box 576,  	75123 Uppsala, Sweden
phone:	46 18 471 4205		fax: 46 18 511 755
spoel at xray.bmc.uu.se	spoel at gromacs.org   http://xray.bmc.uu.se/~spoel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



More information about the gromacs.org_gmx-users mailing list