[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [task #13986] Determine the number of threads at runtim
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-devel] [task #13986] Determine the number of threads at runtime |
Date: |
Mon, 02 May 2016 12:47:56 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0 |
Update of task #13986 (project gnuastro):
Category: Development => All Gnuastro
Item Group: None => Configuration file
Status: None => Done
Percent Complete: 10% => 100%
_______________________________________________________
Follow-up Comment #2:
This task is done and pushed to master.
However, the _SC_NPROCESSORS_ONLN or get_nprocs() were not used. In the Gnulib
manual it is said that they are not portable. Gnulib has suggested using
Gnulib's own `num_processors' function (in nproc.h) for portability which
operates really nicely. In the utilities I just had to change the config.h
macro name to a call of this function.
Therefore the `--with-numthreads' option to configure is no longer necessary.
If someone wants to configure all the programs to use a fixed number of
threads, they can easily specify it in the system-wide configuration file of
each program (before installation for example).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/task/?13986>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/