* [Xenomai] Parallel Computing?
@ 2014-08-12 18:56 Yogi A. Patel
2014-08-12 19:20 ` Gilles Chanteperdrix
0 siblings, 1 reply; 8+ messages in thread
From: Yogi A. Patel @ 2014-08-12 18:56 UTC (permalink / raw)
To: xenomai
Hi -
I am interested in using Xenomai with multiple cores. When I run “cat /proc/cpuinfo | grep “model name” I see that there are two CPUs listed.
My system using data acquisition from a NI DAQ (using ANALOGY driver), processes it with some model, and then provides some output through the NI DAQ.
I would like to make the system faster (both real-time and computation) by off loading the acquisition and data processing parts to one CPU and then letting the user interactions and the GUI (Qt-based) processed by the other CPU.
Is this possible? If so, any examples on how to do this?
Yogi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai] Parallel Computing?
2014-08-12 18:56 [Xenomai] Parallel Computing? Yogi A. Patel
@ 2014-08-12 19:20 ` Gilles Chanteperdrix
2014-08-16 20:59 ` Yogi A. Patel
0 siblings, 1 reply; 8+ messages in thread
From: Gilles Chanteperdrix @ 2014-08-12 19:20 UTC (permalink / raw)
To: Yogi A. Patel, xenomai
On 08/12/2014 08:56 PM, Yogi A. Patel wrote:
> Hi -
>
> I am interested in using Xenomai with multiple cores. When I run “cat
> /proc/cpuinfo | grep “model name” I see that there are two CPUs
> listed.
>
> My system using data acquisition from a NI DAQ (using ANALOGY
> driver), processes it with some model, and then provides some output
> through the NI DAQ.
>
> I would like to make the system faster (both real-time and
> computation) by off loading the acquisition and data processing parts
> to one CPU and then letting the user interactions and the GUI
> (Qt-based) processed by the other CPU.
>
> Is this possible? If so, any examples on how to do this?
Xenomai never migrates a thread running in primary mode, so the job of
deciding on which cpu to run a task is left to Linux. So, simply use
sched_setaffinity to decide on which cpu to run a thread.
--
Gilles.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai] Parallel Computing?
2014-08-12 19:20 ` Gilles Chanteperdrix
@ 2014-08-16 20:59 ` Yogi A. Patel
2014-08-16 21:34 ` Gilles Chanteperdrix
2014-08-17 6:30 ` Philippe Gerum
0 siblings, 2 replies; 8+ messages in thread
From: Yogi A. Patel @ 2014-08-16 20:59 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
Will this approach work with Xenomai 3.x, too?
Yogi
On Aug 12, 2014, at 3:20 PM, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
> On 08/12/2014 08:56 PM, Yogi A. Patel wrote:
>> Hi -
>>
>> I am interested in using Xenomai with multiple cores. When I run “cat
>> /proc/cpuinfo | grep “model name” I see that there are two CPUs
>> listed.
>>
>> My system using data acquisition from a NI DAQ (using ANALOGY
>> driver), processes it with some model, and then provides some output
>> through the NI DAQ.
>>
>> I would like to make the system faster (both real-time and
>> computation) by off loading the acquisition and data processing parts
>> to one CPU and then letting the user interactions and the GUI
>> (Qt-based) processed by the other CPU.
>>
>> Is this possible? If so, any examples on how to do this?
>
> Xenomai never migrates a thread running in primary mode, so the job of
> deciding on which cpu to run a task is left to Linux. So, simply use
> sched_setaffinity to decide on which cpu to run a thread.
>
> --
> Gilles.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai] Parallel Computing?
2014-08-16 20:59 ` Yogi A. Patel
@ 2014-08-16 21:34 ` Gilles Chanteperdrix
2014-08-16 21:37 ` Yogi A. Patel
2014-08-17 6:30 ` Philippe Gerum
1 sibling, 1 reply; 8+ messages in thread
From: Gilles Chanteperdrix @ 2014-08-16 21:34 UTC (permalink / raw)
To: Yogi A. Patel; +Cc: xenomai
On 08/16/2014 10:59 PM, Yogi A. Patel wrote:
> Will this approach work with Xenomai 3.x, too?
Why do you ask? You tested and it does not work?
--
Gilles.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai] Parallel Computing?
2014-08-16 21:34 ` Gilles Chanteperdrix
@ 2014-08-16 21:37 ` Yogi A. Patel
0 siblings, 0 replies; 8+ messages in thread
From: Yogi A. Patel @ 2014-08-16 21:37 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai
I am in the process of testing it on our current system (xenomai 2.6.3) however wanted to know if it ports or if it will have to be undone.
Yogi
On Aug 16, 2014, at 5:34 PM, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
> On 08/16/2014 10:59 PM, Yogi A. Patel wrote:
>> Will this approach work with Xenomai 3.x, too?
>
> Why do you ask? You tested and it does not work?
>
> --
> Gilles.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai] Parallel Computing?
2014-08-16 20:59 ` Yogi A. Patel
2014-08-16 21:34 ` Gilles Chanteperdrix
@ 2014-08-17 6:30 ` Philippe Gerum
2014-08-21 17:21 ` Yogi A. Patel
1 sibling, 1 reply; 8+ messages in thread
From: Philippe Gerum @ 2014-08-17 6:30 UTC (permalink / raw)
To: Yogi A. Patel, Gilles Chanteperdrix; +Cc: xenomai
On 08/16/2014 10:59 PM, Yogi A. Patel wrote:
> Will this approach work with Xenomai 3.x, too?
>
Yes.
> Yogi
>
> On Aug 12, 2014, at 3:20 PM, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
>
>> On 08/12/2014 08:56 PM, Yogi A. Patel wrote:
>>> Hi -
>>>
>>> I am interested in using Xenomai with multiple cores. When I run “cat
>>> /proc/cpuinfo | grep “model name” I see that there are two CPUs
>>> listed.
>>>
>>> My system using data acquisition from a NI DAQ (using ANALOGY
>>> driver), processes it with some model, and then provides some output
>>> through the NI DAQ.
>>>
>>> I would like to make the system faster (both real-time and
>>> computation) by off loading the acquisition and data processing parts
>>> to one CPU and then letting the user interactions and the GUI
>>> (Qt-based) processed by the other CPU.
>>>
>>> Is this possible? If so, any examples on how to do this?
>>
>> Xenomai never migrates a thread running in primary mode, so the job of
>> deciding on which cpu to run a task is left to Linux. So, simply use
>> sched_setaffinity to decide on which cpu to run a thread.
>>
>> --
>> Gilles.
>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai
>
--
Philippe.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai] Parallel Computing?
2014-08-17 6:30 ` Philippe Gerum
@ 2014-08-21 17:21 ` Yogi A. Patel
2014-08-21 17:47 ` Gilles Chanteperdrix
0 siblings, 1 reply; 8+ messages in thread
From: Yogi A. Patel @ 2014-08-21 17:21 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai
Hi -
I have been trying to figure this out - and had a similar question.
When configuring the kernel, there is an option to “enable max number of cpus”. When I enable this, the compile fails and said that there was an error in “gatekeeper with set_num_cpus”.
Has anyone else experienced a similar error?
Yogi
On Aug 17, 2014, at 2:30 AM, Philippe Gerum <rpm@xenomai.org> wrote:
> On 08/16/2014 10:59 PM, Yogi A. Patel wrote:
>> Will this approach work with Xenomai 3.x, too?
>>
>
> Yes.
>
>> Yogi
>>
>> On Aug 12, 2014, at 3:20 PM, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
>>
>>> On 08/12/2014 08:56 PM, Yogi A. Patel wrote:
>>>> Hi -
>>>>
>>>> I am interested in using Xenomai with multiple cores. When I run “cat
>>>> /proc/cpuinfo | grep “model name” I see that there are two CPUs
>>>> listed.
>>>>
>>>> My system using data acquisition from a NI DAQ (using ANALOGY
>>>> driver), processes it with some model, and then provides some output
>>>> through the NI DAQ.
>>>>
>>>> I would like to make the system faster (both real-time and
>>>> computation) by off loading the acquisition and data processing parts
>>>> to one CPU and then letting the user interactions and the GUI
>>>> (Qt-based) processed by the other CPU.
>>>>
>>>> Is this possible? If so, any examples on how to do this?
>>>
>>> Xenomai never migrates a thread running in primary mode, so the job of
>>> deciding on which cpu to run a task is left to Linux. So, simply use
>>> sched_setaffinity to decide on which cpu to run a thread.
>>>
>>> --
>>> Gilles.
>>
>> _______________________________________________
>> Xenomai mailing list
>> Xenomai@xenomai.org
>> http://www.xenomai.org/mailman/listinfo/xenomai
>>
>
>
> --
> Philippe.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Xenomai] Parallel Computing?
2014-08-21 17:21 ` Yogi A. Patel
@ 2014-08-21 17:47 ` Gilles Chanteperdrix
0 siblings, 0 replies; 8+ messages in thread
From: Gilles Chanteperdrix @ 2014-08-21 17:47 UTC (permalink / raw)
To: Yogi A. Patel, Philippe Gerum; +Cc: xenomai
On 08/21/2014 07:21 PM, Yogi A. Patel wrote:
> Hi -
>
> I have been trying to figure this out - and had a similar question.
>
> When configuring the kernel, there is an option to “enable max number
> of cpus”. When I enable this, the compile fails and said that there
> was an error in “gatekeeper with set_num_cpus”.
>
> Has anyone else experienced a similar error?
Your post is to vague for us you answer. Please paste here the exact
error message.
Also, please stop top-posting.
--
Gilles.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-08-21 17:47 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-12 18:56 [Xenomai] Parallel Computing? Yogi A. Patel
2014-08-12 19:20 ` Gilles Chanteperdrix
2014-08-16 20:59 ` Yogi A. Patel
2014-08-16 21:34 ` Gilles Chanteperdrix
2014-08-16 21:37 ` Yogi A. Patel
2014-08-17 6:30 ` Philippe Gerum
2014-08-21 17:21 ` Yogi A. Patel
2014-08-21 17:47 ` Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.