On Sun, Jul 12, 2009 at 8:13 PM, Dorian Krause<doriankra...@web.de> wrote: > Hi, > > you can ignore MP... if you set the compiler and linker to mpicc. In my > makefile for hpl I have > > # ---------------------------------------------------------------------- > # - MPI directories - library ------------------------------------------ > # ---------------------------------------------------------------------- > # MPinc tells the C compiler where to find the Message Passing library > # header files, MPlib is defined to be the name of the library to be > # used. The variable MPdir is only used for defining MPinc and MPlib. > # > MPdir = > MPinc = > MPlib = > # > > and > > # ---------------------------------------------------------------------- > # - Compilers / linkers - Optimization flags --------------------------- > # ---------------------------------------------------------------------- > # > CC = $(HOME)/openmpi-1.3.2/bin/mpicc > CCNOOPT = $(HPL_DEFS) > CCFLAGS = $(HPL_DEFS) -fomit-frame-pointer -O3 -funroll-loops -W -Wall > # > LINKER = $(HOME)/openmpi-1.3.2/bin/mpicc > LINKFLAGS = $(CCFLAGS) > # > ARCHIVER = ar > ARFLAGS = r > RANLIB = echo > > The mpicc wrapper will take care of including the correct libraries. > > Regards, > Dorian > > > Lee Amy wrote: >> >> Hello, >> >> I use OpenMPI 1.3.2 and HPL-2.0 to measure clusters performance. >> However I encountered a problem when I compile the HPL. >> >> I don't know how to fill up the MPlib variable item because the >> default value is $(MPdir)/lib/libmpich.a. Obviously I have to choose a >> file from OpenMPI to replace it. >> >> # >> # ---------------------------------------------------------------------- >> # - Message Passing library (MPI) -------------------------------------- >> # ---------------------------------------------------------------------- >> # MPinc tells the C compiler where to find the Message Passing library >> # header files, MPlib is defined to be the name of the library to be >> # used. The variable MPdir is only used for defining MPinc and MPlib. >> # >> MPdir = /usr/local/openmpi >> MPinc = -I$(MPdir)/include >> MPlib = $(MPdir)/lib/libmpich.a >> >> Could anyone tell me how to fix that problem? >> >> Thank you very much. >> >> Regards, >> >> Amy Lee >> _______________________________________________ >> users mailing list >> us...@open-mpi.org >> http://www.open-mpi.org/mailman/listinfo.cgi/users >> >> > > _______________________________________________ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users > Thanks. Your solution is great. And I found that if I use libmpi.so HPL could also compile well.
Regards, Amy