madtom1999
Posts: 59
Joined: Mon Jul 29, 2013 4:37 pm

ARM NN and Machine Learning - Boost building

Tue Apr 03, 2018 8:06 am

I've been looking at https://developer.arm.com/products/proc ... ing/arm-nn and the got has a readme that gives some instructions on how to build and then get Caffe running. I've got to the point where I am trying to build Boost and the instructions on https://developer.arm.com/technologies/ ... pendencies
say to add these flags in the build process:
--------------------------------------------------------------
link=static cxxflags=-fPIC --with-filesystem --with-test --with-log --with-program_options
--------------------------------------------------------------
I've tried adding them to various places in the boost build process but bootstrap.sh complains of invalid flags and they seem to make b2 fall over too.
Anyone got any ideas?

madtom1999
Posts: 59
Joined: Mon Jul 29, 2013 4:37 pm

Re: ARM NN and Machine Learning - Boost building

Tue Apr 03, 2018 10:32 am

Cancel that - retried the .\b2 link=static cxxflags=-fPIC --with-filesystem --with-test --with-log --with-program_options
and its running OK now! Probably need to add sudo to it to install properly
And I used the shell command I used earlier - hot cpu?

wildfire
Posts: 810
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: ARM NN and Machine Learning - Boost building

Tue Apr 03, 2018 11:42 am

madtom1999 wrote:
Tue Apr 03, 2018 10:32 am
hot cpu?
Typo?
E8 85 A2 40 C9 40 81 94 40 81 95 40 89 84 89 96 A3
Still NF Shirls

madtom1999
Posts: 59
Joined: Mon Jul 29, 2013 4:37 pm

Re: ARM NN and Machine Learning - Boost building

Tue Apr 03, 2018 1:56 pm

No not a typo - I used the same string to run it a second time. I've got a new 3b+ and I've been rebuilding several things on it and seems to get a bit hot from time to time! I re-ran the above command and it compiled all bar 80 (out of near 6000) targets before overheating again. I need to knock up another heatsink*
need to read up on thermal management!
*copper pipe with end bent flat with air holes for convection and a blob of heat paste works wonders!

wildfire
Posts: 810
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: ARM NN and Machine Learning - Boost building

Tue Apr 03, 2018 2:07 pm

It was only a suggestion, AFAIK when the arm overheats it's throttled down to compensate. A typo seemed a more plausible reason than overheating.
E8 85 A2 40 C9 40 81 94 40 81 95 40 89 84 89 96 A3
Still NF Shirls

madtom1999
Posts: 59
Joined: Mon Jul 29, 2013 4:37 pm

Re: ARM NN and Machine Learning - Boost building

Tue Apr 03, 2018 2:22 pm

I've managed to kill mine a few times - it may throttle down but it still seems to overheat and sometimes I have to power off to get it back. I'm trying to make a list of instructions for people to easily build this so I'm taking it from file and the second attempt worked - with the same command line - until the machine locked up a lot later. On restarting and cutting and pasting the same line it finished off the last 80 or so targets. I've been running pretty much all 4 cpus flat out according to htop. It could possibly be ssd overheating as another possibility but that probably wouldnt explain the first error.
I've managed to build it and just finished installing 14028 targets into /usr/lib/boost so I can now see if I can build caffe with it, and then see if I can build caffe for the GPU!

Return to “Advanced users”