Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-13 Thread Savolainen, Petri (Nokia - FI/Espoo)
; *From:* lng-odp [mailto:lng-odp-boun...@lists.linaro.org] *On Behalf > Of *Christophe > > > Milard > > > *Sent:* Thursday, May 12, 2016 2:14 PM > > > *To:* Savolainen, Petri (Nokia - FI/Espoo) > > > > *Cc:* lng-odp@lists.linaro.org > > > *Subject:

Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-12 Thread Brian Brooks
> > *Sent:* Thursday, May 12, 2016 2:14 PM > > *To:* Savolainen, Petri (Nokia - FI/Espoo) > > *Cc:* lng-odp@lists.linaro.org > > *Subject:* Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating > > functions to handle odpthreads > > > > On 12 May 2016 at 12

Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-12 Thread Christophe Milard
, Petri (Nokia - FI/Espoo) > *Cc:* lng-odp@lists.linaro.org > *Subject:* Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating > functions to handle odpthreads > > > > > > > > On 12 May 2016 at 12:28, Savolainen, Petri (Nokia - FI/Espoo) < > petri.savolai..

Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-12 Thread Savolainen, Petri (Nokia - FI/Espoo)
From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of Christophe Milard Sent: Thursday, May 12, 2016 2:14 PM To: Savolainen, Petri (Nokia - FI/Espoo) Cc: lng-odp@lists.linaro.org Subject: Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-12 Thread Christophe Milard
On 12 May 2016 at 12:28, Savolainen, Petri (Nokia - FI/Espoo) < petri.savolai...@nokia.com> wrote: > > > +int odph_odpthreads_create(odph_odpthread_t *thread_tbl, > > +const odp_cpumask_t *mask, > > +const odph_odpthread_params_t *thr_params) > > +{

Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-12 Thread Savolainen, Petri (Nokia - FI/Espoo)
> +int odph_odpthreads_create(odph_odpthread_t *thread_tbl, > +const odp_cpumask_t *mask, > +const odph_odpthread_params_t *thr_params) > +{ > + int i; > + int num; > + int cpu_count; > + int cpu; > + > + num = odp_cpumask_count(m

Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-12 Thread Christophe Milard
y 11, 2016 7:42 PM > > To: brian.bro...@linaro.org; mike.hol...@linaro.org; lng- > > o...@lists.linaro.org > > Subject: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to > > handle odpthreads > > > > Two functions, odph_odpthreads_create and odph_odpthre

Re: [lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-12 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: lng-odp [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of > Christophe Milard > Sent: Wednesday, May 11, 2016 7:42 PM > To: brian.bro...@linaro.org; mike.hol...@linaro.org; lng- > o...@lists.linaro.org > Subject: [lng-odp] [PATCHv6

[lng-odp] [PATCHv6 05/38] helpers: linux: creating functions to handle odpthreads

2016-05-11 Thread Christophe Milard
Two functions, odph_odpthreads_create and odph_odpthreads_join are created to create and termindate odp threads. These function will create the odp threads either as linux processes or as linux threads, depending on the command line arguments (flag odph_proc or odph_thread). If both flags are given