Skip to Content.
Sympa Menu

charm - Re: [charm] building AMPI

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] building AMPI


Chronological Thread 
  • From: Phil Miller <mille121 AT illinois.edu>
  • To: Alberto <alberto.ortiz09 AT gmail.com>
  • Cc: charm <charm AT lists.cs.illinois.edu>
  • Subject: Re: [charm] building AMPI
  • Date: Thu, 16 Mar 2017 12:04:41 -0500

Hi Alberto,

Trying to build on one architecture (arm) with a configuration written to target another (x86[_64]) is unlikely to be helpful. If you want to try the newer netlrts network layer in place of the older net layer, I would suggest copying the contents of src/arch/net-linux-arm7 to src/arch/netlrts-linux-arm7, and then building against that:

cp -a src/arch/net-linux-arm7 src/arch/netlrts-linux-arm7
./build AMPI netlrts-linux-arm7 syncft -g -O0 -DCMK_USE_MEMPOOL_ISOMALLOC=1

You probably do *not* want to 'gcc' option, since that's really only geared for systems where the GNU compilers are not the default.

If the above builds and runs basic programs correctly, please let us know, so that we can incorporate that support. We don't have convenient arm-based test systems on which to qualify it.

Phil

On Thu, Mar 16, 2017 at 11:41 AM, Alberto <alberto.ortiz09 AT gmail.com> wrote:
Hello,
I am trying to build AMPI in a dual-core ARM processor running ArchLinux OS.
I have tried the net-linux-arm7 version but I get errors on migration and
haven't been able to solve them. This has encouraged me to try and build other
versions, which all gave errors probably due to using ArchLinux. The dual-core
ARMs are 32-bit, so I have tried building with:
'./build AMPI netlrts-linux syncft gcc -g -O0 -DCMK_USE_MEMPOOL_ISOMALLOC=1'
I used the compiler option 'gcc' as it gave me erros trying the option g++ -
m32, which didn't work probably because ArchLinux doesn't use g++. Even
though, I have a file linking g++ to gcc, but '-m32' seems to not be
recognized by gcc.
Using this type of build seemed to go correctly, but later on it gave the
following error:

ar: creating ../lib/libmemory-hooks-charmdebug.a
cp threads.c libthreads-default.c
( make -C QuickThreads clean )
make[1]: Entering directory '/home/artico1/charm/netlrts-linux-syncft-gcc/tmp/
QuickThreads'
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
make[1]: Leaving directory '/home/artico1/charm/netlrts-linux-syncft-gcc/tmp/
QuickThreads'
( cd QuickThreads;./configure )
Running configure on i386-gcc
( make -C QuickThreads qt  OPTS='-g -O0 -DCMK_USE_MEMPOOL_ISOMALLOC=1  -Wno-
error' ) || ( echo "Did you try to build net-linux on a 64-bit system? Try
net-linux-x86_64" && false )
make[1]: Entering directory '/home/artico1/charm/netlrts-linux-syncft-gcc/tmp/
QuickThreads'
rm -f qtmd.h
ln -s md/i386.h qtmd.h
../../bin/charmc -seq -I. -o qt.o qt.c
In file included from qt.c:2:0:
qt.h:149:8: warning: type defaults to 'int' in declaration of 'qt_abort' [-
Wimplicit-int]
 extern qt_abort (qt_helper_t *h, void *a0, void *a1, qt_t *newthread);
        ^~~~~~~~
as --32 -o qtmds.o md/i386.s
as: unrecognized option '--32'
make[1]: *** [Makefile:11: qt] Error 1
make[1]: Leaving directory '/home/artico1/charm/netlrts-linux-syncft-gcc/tmp/
QuickThreads'
Did you try to build net-linux on a 64-bit system? Try net-linux-x86_64

Suggesting to try a 64-bit version. The ARMs, as I mentioned before, are 32-
bit, so this shouldn't be the problem. Even though, and just to be sure, I
tried building with:
'./build AMPI netlrts-linux-x86_64 syncft gcc -g -O0 -
DCMK_USE_MEMPOOL_ISOMALLOC=1'
And, as expected, some errors came out as the binaries made were not 64-bit:

../bin/../include/conv-config.h:57:2: error: #error "Compiler not generating
64 bit binary, please check compiler flags."
 #error "Compiler not generating 64 bit binary, please check compiler flags."
  ^~~~~
Fatal Error by charmc in directory /home/artico1/charm/netlrts-linux-x86_64-
syncft-gcc/tmp
   Command g++ -fPIC -Wno-deprecated -I../bin/../include -D__CHARMC__=1 -
I../../src/xlat-i/ -I../../src/xlat-i/sdag/ -I. -c ../../src/xlat-i/xi-main.C
-o xi-main.o returned error code 1
charmc exiting...
make[1]: *** [<builtin>: xi-main.o] Error 1
make[1]: Leaving directory '/home/artico1/charm/netlrts-linux-x86_64-syncft-
gcc/tmp'
make: *** [Makefile:281: headers] Error 2




Archive powered by MHonArc 2.6.19.

Top of Page