Revision: 55017
http://brlcad.svn.sourceforge.net/brlcad/?rev=55017&view=rev
Author: brlcad
Date: 2013-04-03 05:10:00 +0000 (Wed, 03 Apr 2013)
Log Message:
-----------
only need to set affinity once, but record our cpu number before doing anything
Modified Paths:
--------------
brlcad/trunk/src/libbu/parallel.c
Modified: brlcad/trunk/src/libbu/parallel.c
===================================================================
--- brlcad/trunk/src/libbu/parallel.c 2013-04-02 21:40:06 UTC (rev 55016)
+++ brlcad/trunk/src/libbu/parallel.c 2013-04-03 05:10:00 UTC (rev 55017)
@@ -344,10 +344,12 @@
HIDDEN void
parallel_interface_arg(struct thread_data *user_thread_data)
{
- parallel_set_affinity();
-
+ /* keep track of our parallel ID number */
thread_set_cpu(user_thread_data->cpu_id);
+ /* lock us onto a core corresponding to our parallel ID number */
+ parallel_set_affinity(user_thread_data->cpu_id);
+
if (!user_thread_data->counted) {
bu_semaphore_acquire(BU_SEM_SYSCALL);
parallel_nthreads_started++;
@@ -381,8 +383,6 @@
{
struct thread_data user_thread_data_pi;
- parallel_set_affinity();
-
user_thread_data_pi.user_func = parallel_func;
user_thread_data_pi.user_arg = parallel_arg;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits