Parallella nsp port

37 views
Skip to first unread message

Mariusz Grecki

unread,
Apr 11, 2019, 6:52:29 AM4/11/19
to tumbi
Hi Jean -Philippe,
in order to compile nsp on parallella (https://www.parallella.org/) I had to make the following steps on sources (using today downloaded cvs sources nsp2_trunk_2019-01-23):
1. run ./configure --host armv7-pc-linux-gnu'' since the detected host type is armv7l-unknown-linux-gnueabi and is certainly not supported by nsp configurator
2. remove the function int_set_double_extended from file src/libspmf/spmf-IN.c (it is also neccessary to remove this function from the table static OpTab Spmf_func) as no relevant hardware exists in parallella board
3. remove a part of nsp_expm1 function in src/libspmf/spmf.c file. In all 'removal cases' I simply added 'AAA' to the relevant #ifdef as shown below. Certainly, it should be done in a general way by using more sophisticated conditions.

#ifdef __linux__AAA
  if ( nsp_use_extended_fpu() == FALSE && Abs(x) > 0.01  )
    { 
      /* improve by newton step : 
       *     Copyright (C) 2002 The R Development Core Team
       */
      y -= (1.0 + y) * (nsp_log1p(y) - x);
    }
#endif

After that changes nsp compiles without problems. Of course, I had to install also several software packages to enable compilation, but this is not an issue, the parallella runs ubuntu and the repositories are available.

Mariusz Grecki

unread,
Apr 12, 2019, 4:30:01 AM4/12/19
to tumbi
I have announced that also on parallella forum: https://parallella.org/forums/viewtopic.php?f=41&t=4355
Reply all
Reply to author
Forward
0 new messages