etpid(), set,
> HWLOC_CPUBIND_PROCESS);
> if (err) {
> printf ("Error Cannot find\n"), exit(1);
> }
>
> pu = hwloc_get_pu_obj_by_os_index(topology, hwloc_bitmap_first(set));
> printf ("Hello World, I am %d and pid: %d
> coreid:%d\n",rank,getpi
pid(),hwloc_bitmap_first(set));
>
> hwloc_bitmap_free(set);
> MPI_Finalize();
> fclose(stdout);
> return 0;
> }
> Thank You
> --
> Kranthi
> -- next part --
> HTML attachment scrubbed and removed
>
> -
+1
In addition, you might want to upgrade to Open MPI 1.6.x -- 1.4.x is fairly
ancient. 1.6.x's mpirun also has a --report-bindings option which tells you
where procs are bound. For example:
mpirun --bind-to-core --report-bindings ...etc.
On Feb 15, 2013, at 11:46 AM, Brice Goglin wrote
IntelMPI binds processes by default, while OMPI doesn't. What's your
mpiexec/mpirun command-line?
Brice
Le 15/02/2013 17:34, Kranthi Kumar a écrit :
> Hello Sir
>
> Here below is the code which I wrote using hwloc for getting the
> bindings of the processes.
> I tested this code on SDSC Gordon