Re: [lng-odp] odp_cpu_count() vs odp_cpumask size

2015-03-12 Thread Taras Kondratiuk
Subject: Re: [lng-odp] odp_cpu_count() vs odp_cpumask size On 03/11/2015 04:46 PM, Savolainen, Petri (Nokia - FI/Espoo) wrote: Continuation of cpumask discussion on the call... For creating arbitrary masks (e.g. fill in a mask with CPU ids of another ODP program in the system, or testing all

Re: [lng-odp] odp_cpu_count() vs odp_cpumask size

2015-03-12 Thread Ola Liljedahl
To: Savolainen, Petri (Nokia - FI/Espoo); ext Christophe Milard; lng- o...@lists.linaro.org Subject: Re: [lng-odp] odp_cpu_count() vs odp_cpumask size On 03/11/2015 04:46 PM, Savolainen, Petri (Nokia - FI/Espoo) wrote: Continuation of cpumask discussion on the call... For creating arbitrary masks (e.g

Re: [lng-odp] odp_cpu_count() vs odp_cpumask size

2015-03-12 Thread Savolainen, Petri (Nokia - FI/Espoo)
-Original Message- From: ext Taras Kondratiuk [mailto:taras.kondrat...@linaro.org] Sent: Wednesday, March 11, 2015 5:18 PM To: Savolainen, Petri (Nokia - FI/Espoo); ext Christophe Milard; lng- o...@lists.linaro.org Subject: Re: [lng-odp] odp_cpu_count() vs odp_cpumask size On 03

Re: [lng-odp] odp_cpu_count() vs odp_cpumask size

2015-03-11 Thread Taras Kondratiuk
:*lng-odp-boun...@lists.linaro.org [mailto:lng-odp-boun...@lists.linaro.org] *On Behalf Of *ext Savolainen, Petri (Nokia - FI/Espoo) *Sent:* Wednesday, March 11, 2015 2:09 PM *To:* ext Christophe Milard; lng-odp@lists.linaro.org *Subject:* Re: [lng-odp] odp_cpu_count() vs odp_cpumask size Actually

Re: [lng-odp] odp_cpu_count() vs odp_cpumask size

2015-03-11 Thread Savolainen, Petri (Nokia - FI/Espoo)
...@lists.linaro.org [mailto:lng-odp-boun...@lists.linaro.org] On Behalf Of ext Christophe Milard Sent: Tuesday, March 10, 2015 4:22 PM To: lng-odp@lists.linaro.org Subject: [lng-odp] odp_cpu_count() vs odp_cpumask size Hi, I am writing validation tests for the odp_cpumask functions. The question is: How

Re: [lng-odp] odp_cpu_count() vs odp_cpumask size

2015-03-11 Thread Savolainen, Petri (Nokia - FI/Espoo)
/Espoo) Sent: Wednesday, March 11, 2015 2:03 PM To: ext Christophe Milard; lng-odp@lists.linaro.org Subject: Re: [lng-odp] odp_cpu_count() vs odp_cpumask size CPU IDs are system dependent. So e.g. odp_cpu_count() == 2 would not necessarily result a cpumask with cpus 0 and 1 set, but e.g. cpus 7

Re: [lng-odp] odp_cpu_count() vs odp_cpumask size

2015-03-11 Thread Savolainen, Petri (Nokia - FI/Espoo)
] On Behalf Of ext Savolainen, Petri (Nokia - FI/Espoo) Sent: Wednesday, March 11, 2015 2:09 PM To: ext Christophe Milard; lng-odp@lists.linaro.org Subject: Re: [lng-odp] odp_cpu_count() vs odp_cpumask size Actually, this is equal to odp_cpu_max(): odp_cpumask_t mask; odp_cpu_mask(mask

[lng-odp] odp_cpu_count() vs odp_cpumask size

2015-03-10 Thread Christophe Milard
Hi, I am writing validation tests for the odp_cpumask functions. The question is: How many CPUs should the cpu mask be tested for?. Of course, the answer is implementation dependent, but if we want the tests to be non platform dependent, the tests should know the max number of CPU the mask could