Re: [hwloc-users] HWLOC_get_membind: problem in getting right(specific) NODESET where data is allocated

2016-04-24 Thread Rezaul Karim Raju
Please find the attached, system Layout. *uname -a* Linux crill-010 3.11.10-21-desktop #1 SMP PREEMPT Mon Jul 21 15:28:46 UTC 2014 (9a9565d) x86_64 x86_64 x86_64 GNU/Linux and below is the code snippet where I am getting error: /* Find Location of a: 3rd QUARTER */ * err =

Re: [hwloc-users] HWLOC_get_membind: problem in getting right(specific) NODESET where data is allocated

2016-04-24 Thread Brice Goglin
Please find out which line is actually causing the segfault. Run your program under gdb. Once it crashes, type "bt full" and report the output here. By the way, what kind of machine are you using? (lstopo + uname -a) Brice Le 24/04/2016 23:46, Rezaul Karim Raju a écrit : > Hi Brice, > > Thank

Re: [hwloc-users] HWLOC_get_membind: problem in getting right(specific) NODESET where data is allocated

2016-04-24 Thread Rezaul Karim Raju
Hi Brice, Thank you very much for your prompt care. I am retrieving as below: nodeset_c = hwloc_bitmap_alloc(); */* Find Location of a: 3rd QUARTER */* err = *hwloc_get_area_membind_nodeset(*topology, *array+ size/2, size/4,* nodeset_c, , HWLOC_MEMBIND_THREAD ); /* print the corresponding

Re: [hwloc-users] HWLOC_get_membind: problem in getting right(specific) NODESET where data is allocated

2016-04-24 Thread Brice Goglin
Hello, What do you mean with " it can not bind the specified memory section (addr, len) to the desired NUMA node"? Did it fail? If so, what does errno contain? If it didn't fail, what did it do instead? thanks Brice Le 24/04/2016 23:02, Rezaul Karim Raju a écrit : > Hi ... > > I was trying to

Re: [hwloc-users] HWLOC_get_membind: problem in getting right(specific) NODESET where data is allocated

2016-04-24 Thread Rezaul Karim Raju
Hi ... I was trying to bind each quarter of an array to 4 different NUMA nodes, and doing as below: *//ALLOCATION * *obj_a = hwloc_get_obj_by_type(topology, HWLOC_OBJ_NODE, 0);* *array =* hwloc_alloc_membind_nodeset( topology, size, obj_a->nodeset, HWLOC_MEMBIND_BIND, 1); *tmp *=