Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: [hwloc-users] hwloc set membind function
From: Gabriele Fatigati (g.fatigati_at_[hidden])
Date: 2011-09-22 06:20:05


Dear hwloc users and developers,

reading the manual about hwloc set membind() function:

Set the default memory binding policy of the current process or thread to
prefer the
NUMA node(s) near the specified cpuset.

What does "nodes near the specified cpuset" means? The node wherethe
specified cpuset lives? Or others node?

What this function does in particular?

I'm calling hwloc_set_membind from two OpenMP threads passing
HWLOC_MEMBIND_BIND policy.

The first thread allocates with a malloc an array. The second thread (bound
on other node) initialize the array.

The free memory on the nodes decrease only on the node where the second
thread is. Is it rigth?

 hwloc_set_membind involves all future allocations?

Thanks in forward.

-- 
Ing. Gabriele Fatigati
HPC specialist
SuperComputing Applications and Innovation Department
Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy
www.cineca.it                    Tel:   +39 051 6171722
g.fatigati [AT] cineca.it