[GRASS-dev] [GRASS GIS] #722: r.li.daemon: respect for WORKERS enviro var

#722: r.li.daemon: respect for WORKERS enviro var
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.li, smp | Platform: All
      Cpu: All |
-------------------------+--------------------------------------------------
Hi,

it would be nice if r.li.daemon respected the WORKERS environment variable
for setting the number of threads to launch.

AFAICS most of the code can be borrowed from trunk/lib/gis/worker.c.
(some doxygen comments would help)

I wonder if both the pthreads and r.li.daemon fork() code should use the
same "GRASS_WORKERS" enviro var instead of the more generic "WORKERS"
name? or is that name some pthreads standard?

or for that matter, if r.li.daemon should be adapted to use the grass7
pthreads support instead of doing its own thing?

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/722&gt;
GRASS GIS <http://grass.osgeo.org>

#722: r.li.daemon: respect for WORKERS enviro var
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.0
Component: Raster | Version: svn-trunk
Keywords: r.li, smp | Platform: All
      Cpu: All |
-------------------------+--------------------------------------------------

Comment(by hamish):

done in devbr6 with r56730. Glynn has already rewritten that part of the
code in trunk with r40696.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/722#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#722: r.li.daemon: respect for WORKERS enviro var
-------------------------+--------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.4.4
Component: Raster | Version: svn-develbranch6
Keywords: r.li, smp | Platform: All
      Cpu: All |
-------------------------+--------------------------------------------------
Changes (by hamish):

  * version: svn-trunk => svn-develbranch6
  * milestone: 7.0.0 => 6.4.4

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/722#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#722: r.li.daemon: respect for WORKERS enviro var
--------------------------+-------------------------------------------------
  Reporter: hamish | Owner: grass-dev@…
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 6.4.4
Component: Raster | Version: svn-develbranch6
Resolution: fixed | Keywords: r.li, smp
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

The WORKERS had to be removed in the backport r59304 of the
rewrite of r.li.* in trunk.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/722#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>