I just ran my program again with different values for X10_NTHREADS and there were always 8 threads more than the worker-threads. So at least it seems to be deterministic, but I'm still wondering what these extra threads are good for.
I'm running my program with c++-backend and Sockets-runtime and X10RT_CPUMAP does not work as desired. All worker-threads are bound to the same CPU whose index stands in the first line of the map-file. All this does not happen with a special testcase, but with all x10-programs I tested. --Christopher -------- Original-Nachricht -------- > Datum: Mon, 27 Feb 2012 09:18:08 -0500 > Von: Benjamin W Herta <bhe...@us.ibm.com> > An: Mailing list for users of the X10 programming language > <x10-users@lists.sourceforge.net> > Betreff: Re: [X10-users] More threads than specified in X10_NTHREADS. > X10RT_CPUMAP is supported for all x10rt implementations under the c++ > backend, including sockets, standalone, mpi, and pami. > > > - Ben > > > |------------> > | From: | > |------------> > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |Olivier Tardieu/Watson/IBM@IBMUS > > | > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | To: | > |------------> > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |Mailing list for users of the X10 programming language > <x10-users@lists.sourceforge.net>, > > | > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | Date: | > |------------> > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |02/27/2012 09:10 > > | > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |------------> > | Subject: | > |------------> > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > |Re: [X10-users] More threads than specified in X10_NTHREADS. > > | > > >--------------------------------------------------------------------------------------------------------------------------------------------------| > > > > > > Hi, > > We support thread affinity via the X10RT_CPUMAP env variable. > But I think the setting is only supported for x10rt pami. > Moreover this only gives control over X10_NTHREADS. > Any other thread dynamically added by the runtime is free to roam. > Therefore X10RT_CPUMAP is only intended to be used in combination > with X10_STATIC_THREADS=true for those programs which execute > to completion with X10_STATIC_THREADS set. > > One has to set X10RT_CPUMAP=map where > map is the name of a file. > This file must have at least X10_NTHREADS lines. > Line p should contain the integer index of the hardware thread that > logical > thread p should be bound to. > > Usually, > $cat map > 0 > 1 > 2 > 3 > 4 > 5 > ... > > I suppose we could look into adding the same support to other x10rt > implementations. > > Olivier > > > "Christopher Frieler" <chris-frie...@gmx.net> wrote on 02/27/2012 03:39:48 > AM: > > > From: "Christopher Frieler" <chris-frie...@gmx.net> > > To: Mailing list for users of the X10 programming language <x10- > > us...@lists.sourceforge.net>, X10-users@lists.sourceforge.net, > > Date: 02/27/2012 03:40 AM > > Subject: Re: [X10-users] More threads than specified in X10_NTHREADS. > > > > In addition: is it possible to launch the x10-environment first, pin > > each workerthread to a CPU and then start my application? > > > > -------- Original-Nachricht -------- > > > Datum: Sun, 26 Feb 2012 15:23:05 +0100 > > > Von: "Christopher Frieler" <chris-frie...@gmx.net> > > > An: X10-users@lists.sourceforge.net > > > Betreff: [X10-users] More threads than specified in X10_NTHREADS. > > > > > Hi, > > > > > > I’m running my x10-program with the environment-variable > X10_NTHREADS > > > set to different values and X10_STATIC_THREADS set to “true”, but > > > everytime I get many more threads than the worker-threads. Further > > the number of > > > actual threads is neither higher than the number of worker-threads by > a > > > constant offset, nor does it grow linearly with the number of > > worker-threads. > > > During the calculations only as many threads as specified in > X10_NTHREADS > > > are up to 100% busy. > > > I could imagine a few more threads for scheduling and > garbage-collection, > > > but what are all the other threads doing? Can anyoneone tell me? I’m > > > using native C++-backend. > > > > > > Thanks in advance, > > > Christopher > > > > -- > > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir > > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de > > > > > ------------------------------------------------------------------------------ > > > Try before you buy = See our experts in action! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-dev2 > > _______________________________________________ > > X10-users mailing list > > X10-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/x10-users > ------------------------------------------------------------------------------ > > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > X10-users mailing list > X10-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/x10-users > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > X10-users mailing list > X10-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/x10-users -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users