Skip to Content.
Sympa Menu

charm - RE: [charm] Regarding charm4py and charm++ on RPi3B+.

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

RE: [charm] Regarding charm4py and charm++ on RPi3B+.


Chronological Thread 
  • From: "Galvez Garcia, Juan Jose" <jjgalvez AT illinois.edu>
  • To: Edlir Pllashniku <Edlir_1996 AT live.com>
  • Cc: "charm AT cs.illinois.edu" <charm AT cs.illinois.edu>
  • Subject: RE: [charm] Regarding charm4py and charm++ on RPi3B+.
  • Date: Wed, 10 Apr 2019 21:48:52 +0000
  • Accept-language: en-US
  • Authentication-results: illinois.edu; spf=pass smtp.mailfrom=jjgalvez AT illinois.edu; dkim=pass header.d=uillinoisedu.onmicrosoft.com header.s=selector1-illinois-edu; dmarc=pass header.from=illinois.edu

Hi Ed,

 

I have pushed a patch to fix building Charm++ on RPi3B+. I have also modified charm4py's setup script to automatically detect and build Charm++ for ARM architecture. These changes will be in the next charm4py release, so `pip3 install charm4py` should work then.

 

But for now, you can install like this:

 

 

- Install these if you don't have them already (the version number should not be important. I have chosen recent versions that have binaries available in piwheels.org to make install fast):

 

pip3 install cython==0.29.5

sudo apt-get install python3-numpy  (install this before charm4py setup if you are going to be sending numpy arrays)

 

 

- Next, starting from scratch:

 

git clone https://github.com/UIUC-PPL/charm4py

cd charm4py

git clone https://github.com/UIUC-PPL/charm charm_src/charm

python3 setup.py install

 

 

Hope this works. Let me know if you have any further issues building or running charm4py.

 

 

-Juan

 

From: Edlir Pllashniku
Sent: Wednesday, April 10, 2019 6:43 AM
To: Galvez Garcia, Juan Jose
Subject: Re: [charm] Regarding charm4py and charm++ on RPi3B+.

 

Hi Juan,

Great! Please let me know about the post with an url or some kind of link. Thank you.

Kind regards,
Ed


-------- Mesazhi origjinal --------
Nga: "Galvez Garcia, Juan Jose" <jjgalvez AT illinois.edu>
Data: 10.4.19 05:53 (GMT+01:00)
Merr: Edlir Pllashniku <Edlir_1996 AT live.com>
Subjekti: RE: [charm] Regarding charm4py and charm++ on RPi3B+.

Hi Ed,

 

I was able to build Charm++ and get charm4py working. The fix is simple. I’ll post the fix soon and let you know.

 

-Juan

 

From: Edlir Pllashniku
Sent: Tuesday, April 9, 2019 4:11 AM
To: Galvez Garcia, Juan Jose
Subject: Sv: [charm] Regarding charm4py and charm++ on RPi3B+.

 

Hello Juan,

It did fail again when ./build charm4py netlrts-linux-arm7 -j2. I will paste the error message output on bash beneath if you are interested of it. Thank you for your reply.

../bin/charmc  -build-shared -IQuickThreads -I. -o libthreads-default.o -DCMK_THREADS_BUILD_DEFAULT=1 threads.c
threads.c: In function ‘CthPup’:
threads.c:1932:57: error: ‘mcontext_t {aka struct sigcontext}’ has no member named ‘fpregs’
   if (!pup_isUnpacking(p)) flag = t->context.uc_mcontext.fpregs != NULL;
                                                         ^
threads.c:1936:29: error: ‘mcontext_t {aka struct sigcontext}’ has no member named ‘fpregs’
       t->context.uc_mcontext.fpregs = (struct _libc_fpstate *)malloc(sizeof(struct _libc_fpstate));
                             ^
threads.c:1938:39: error: ‘mcontext_t {aka struct sigcontext}’ has no member named ‘fpregs’
     pup_bytes(p,t->context.uc_mcontext.fpregs,sizeof(struct _libc_fpstate));
                                       ^
Fatal Error by charmc in directory /home/pi/charm4py/charm_src/charm/netlrts-linux-arm7/tmp
   Command gcc -I../bin/../include -D__CHARMC__=1 -IQuickThreads -I. -DCMK_THREADS_BUILD_DEFAULT=1 -fno-stack-protector -fPIC -c threads.c -o libthreads-default.o returned error code 1
charmc exiting...
Makefile:680: recipe for target '../lib/libthreads-default.a' failed
make: *** [../lib/libthreads-default.a] Error 1
make: *** Waiting for unfinished jobs....
ar: creating ../lib/libtrace-perfReport.a

Kind Regards,
Ed



Från: Galvez Garcia, Juan Jose <jjgalvez AT illinois.edu>
Skickat: den 8 april 2019 19:31
Till: Evan Ramos; Edlir Pllashniku
Kopia: charm AT cs.illinois.edu
Ämne: RE: [charm] Regarding charm4py and charm++ on RPi3B+.
 

Hi Ed,

 

For completeness, since you have to build charm++ from source, these are the full instructions to build Charm4py + Charm++ from source and install:

 

git clone https://github.com/UIUC-PPL/charm4py

cd charm4py

git clone https://github.com/UIUC-PPL/charm charm_src/charm

cd charm_src/charm

./build charm4py netlrts-linux-arm7 -j2

cd ../..

python3 setup.py install

 

 

Let us know if this works or not.

 

-Juan

 

From: Evan Ramos
Sent: Monday, April 8, 2019 12:23 PM
To: Edlir Pllashniku
Cc: charm AT cs.illinois.edu
Subject: Re: [charm] Regarding charm4py and charm++ on RPi3B+.

 

Hi Ed,

It looks like pip is trying to build Charm++ in the netlrts-linux-x86_64-tcp configuration, which won't work on an ARM device like the Raspberry Pi.

Try cloning Charm from our Git repository and building it with one of the following commands.

If your OS is built in 32-bit mode, which is likely to be the case unless you went out of your way to use an AArch64 distribution, try this command:

./build charm4py netlrts-linux-arm7 -j2

For completeness, the 64-bit build command would be:

./build charm4py netlrts-linux-arm8 -j2

Regards,
Evan A. Ramos
Software Engineer
Charmworks, Inc.


On Sat, Apr 6, 2019 at 10:25 AM Edlir Pllashniku <edlir_1996 AT live.com> wrote:
Hello,

I am wondering if charm4py is compatible with Raspberry Pi 3B+ which has an ARM cortex A53 (quad core) processor ?

I've tried to install it using both raspbian and ubuntu mate OS but neither work. Everytime I try it exits after ~1.5 hours blaming on internal compiler error. After that I tried installing the charm++ manually first and there the (same) error appears in a slightly different form. If you are curious on the different errors I got, I made a post (see link below) on superuser at stackoverflow about the error.


Kind Regards,
Ed



Archive powered by MHonArc 2.6.19.

Top of Page