Skip to Content.
Sympa Menu

charm - Re: [charm] doubt about compilation AMPI

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] doubt about compilation AMPI


Chronological Thread 
  • From: Sabrina Bergoch <sabrinabms AT gmail.com>
  • To: Phil Miller <mille121 AT illinois.edu>, "charm AT cs.illinois.edu" <charm AT cs.illinois.edu>, mprobson AT illinois.edu
  • Subject: Re: [charm] doubt about compilation AMPI
  • Date: Thu, 18 Sep 2014 22:44:00 -0300
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

Hi Phil,

I checked my MPI and the problem was with PATH, I corrected it. Then I compiled Charm++ as you suggested. I have runseveral examples of charm++ package, but still I had no success with fortran90, as you can see below:

./charm/tests/ampi/fallreduce

make test
cc   test.o   -o test
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
     (maybe you meant: _mpi_main_)
  "_mpi_allreduce_", referenced from:
      _mpi_main_ in test.o
  "_mpi_comm_rank_", referenced from:
      _mpi_main_ in test.o
  "_mpi_comm_size_", referenced from:
      _mpi_main_ in test.o
  "_mpi_finalize_", referenced from:
      _mpi_main_ in test.o
  "_mpi_init_", referenced from:
      _mpi_main_ in test.o
  "_mpi_print_", referenced from:
      _mpi_main_ in test.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [test] Error 1

And during compilation I have got some error messages like:

../bin/charmc   -o ../lib/libmemory-hooks-charmdebug.o -DCMK_MEMORY_BUILD_GNU_HOOKS -DCMK_MEMORY_BUILD_CHARMDEBUG memory.c || touch ../lib/libmemory-hooks-charmdebug.o
In file included from memory.c:265:
./memory-charmdebug.c:585:3: error: use of undeclared identifier '__malloc_hook'; did you mean 'old_malloc_hook'?
  BEFORE_MALLOC_CALL;
...
memory.c:232:16: note: 'old_memalign_hook' declared here
static void *(*old_memalign_hook) (size_t,size_t, const void*);
               ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Fatal Error by charmc in directory /Users/sabrinabms/Documents/PROFISSIONAL/DOUTORADO/charm/multicore-darwin-x86_64/tmp
   Command gcc -arch x86_64 -fPIC -dynamic -fno-common -mmacosx-version-min=10.6 -D_REENTRANT -I../bin/../include -D__CHARMC__=1 -DCMK_MEMORY_BUILD_GNU_HOOKS -DCMK_MEMORY_BUILD_CHARMDEBUG -c memory.c -o ../lib/libmemory-hooks-charmdebug.o returned error code 1
charmc exiting...
( cd QuickThreads && /Applications/Xcode.app/Contents/Developer/usr/bin/make clean )
rm -f qtmd.h libqt.a libstp.a meas.o stp.o qt.o
rm -f qtmdb.s qtmds.s qtmdc.o qtmdb.o qtmds.o run
rm -f Makefile
( cd QuickThreads;./configure )
Running configure on generic64
Hugs,

Sabrina

On Wed, Sep 17, 2014 at 4:54 PM, Phil Miller <mille121 AT illinois.edu> wrote:
Hi Sabrina,

Are you able to compile and run standard MPI codes on your system? This error message would suggest that you don't have a working MPI implementation.

Since you're working on OS X, I would guess that you're not going to run the resulting binaries on a cluster. With that in mind, it will be much simpler to build AMPI for single-node execution, with

./build AMPI multicore-darwin-x86_64

to avoid any MPI dependency.

Phil

On Wed, Sep 17, 2014 at 1:49 PM, Sabrina Bergoch <sabrinabms AT gmail.com> wrote:
Hello,

I am trying to install AMPI on OSX (Version 10.9.4) with: 

./build ampi mpi-darwin-x86_64

but a problem appear:

icem:charm-6.6.0 inpe$ ./build ampi mpi-darwin-x86_64

Creating dir: mpi-darwin-x86_64

Creating dir: mpi-darwin-x86_64/tmp

Copying src/scripts/Makefile to mpi-darwin-x86_64/tmp

Soft-linking over bin

Soft-linking over lib

Soft-linking over lib_so

Soft-linking over include

Soft-linking over tmp

Generating mpi-darwin-x86_64/tmp/conv-mach-pre.sh

Generating mpi-darwin-x86_64/tmp/conv-mach-opt.h, conv-mach-opt.sh

Performing 'make basics OPTS= QUIET= CONFIG_OPTS=' in mpi-darwin-x86_64/tmp

Makefile:1079: Variable OPTS is defined to an empty string. Are you sure this is what you want?

pwd

/Users/inpe/Documents/Doutorado/DEPOSITO/charm-6.6.0/mpi-darwin-x86_64/tmp

find . -type l -exec rm {} \;

rm -rf QuickThreads

rm -rf libs

rm -rf ../bin ; mkdir ../bin

rm -rf ../lib ; mkdir ../lib

rm -rf ../lib_so ; mkdir ../lib_so; touch ../lib_so/.charmso

rm -rf ../examples

rm -rf ../tests

rm -rf ../doc ; ln -s ../doc ../doc

../../src/scripts/gatherflat ../../src/scripts .

./gatherflat ../../src/conv-core        .

./gatherflat ../../src/conv-ldb         .

./gatherflat ../../src/conv-ccs         .

./gatherflat ../../src/conv-perf .

./gatherflat ../../src/ck-core          .

./gatherflat ../../src/ck-perf          .

./gatherflat ../../src/ck-tune          .

./gatherflat ../../src/ck-ldb           .

./gatherflat ../../src/ck-com           .

./gatherflat ../../src/ck-cp            .

./gatherflat ../../src/conv-com         .

./gatherflat ../../src/langs/simplemsg  .

./gatherflat ../../src/langs/pvmc       .

./gatherflat ../../src/langs/bluegene   .

./gatherflat ../../src/langs/f90charm   .

./gatherflat ../../src/xlatcpm          .

./gathertree ../../src/QuickThreads     QuickThreads

./gathertree ../../src/libs             libs

./gathertree ../../src/arch/util        .

./gathertree ../../src/util             .

./gathertree ../../src/langs            langs

./gathertree ../../src/langs/jade       langs/jade

./gathertree ../../src/arch/common      .

./gathertree ../../src/arch/`cat .gdir` .

test -f ../../src/arch/`cat .gdir`/gdir_link && cat ../../src/arch/`cat .gdir`/gdir_link > .gdir.new && ./gathertree ../../src/arch/`cat .gdir.new`      . || true

./gatherflat ../../src/arch/`cat .vdir` .

./gathertree ../../examples             ../examples

./gathertree ../../tests                ../tests

rm -f ../bin/dep.pl ; cp dep.pl ../bin/

chmod +x charmc

./system_ln  ../tmp/charmc ../bin/

rm -rf ../include ; mkdir ../include

./system_ln  ../tmp/conv-*.*h ../include

./system_ln  ../tmp/cc-*.*h ../include

./system_ln  ../tmp/conv-mach-opt.sh ../include

if [ -x ./special.sh ] ; then ./special.sh ; fi

if [ ! -f conv-common.h ] ; then ( touch conv-common.h ) ; fi

touch dirs+sources

/Applications/Xcode.app/Contents/Developer/usr/bin/make charmxi

Makefile:1079: Variable OPTS is defined to an empty string. Are you sure this is what you want?

./configure

Error checking is enabled

Statistics collection is enabled

Charm tracing is enabled

Charm tracing communication thread is disabled

CharmDebug is enabled

Charm record/replay is enabled

CCS is enabled

Charm control point is enabled

Charm LB user data is disabled

Setting load balancing timer type as 'double'

checking machine name... mpi-darwin-x86_64

checking "cp command as"... cp -p

checking "C++ compiler as"... "mpicxx -m64 -dynamic -fPIC -fno-common     "

checking "whether C++ compiler works"... "no"

Cannot compile C++ programs with mpicxx -m64 -dynamic -fPIC -fno-common   

 (check your charm++ version)

*** Please find detailed output in charmconfig.out ***

make[1]: *** [conv-autoconfig.h] Error 1

make: *** [headers] Error 2

-------------------------------------------------

Charm++ NOT BUILT. Either cd into mpi-darwin-x86_64/tmp and try


_______________________________________________
charm mailing list
charm AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/charm






Archive powered by MHonArc 2.6.16.

Top of Page