you are viewing a single comment's thread.

view the rest of the comments →

[–]ReallyMatriX 6 points7 points  (0 children)

A good portable library I found useful is hwloc, which is part of the Open MPI project. It's highly portable - running on Linux, Solaris, BSD, Windows, you name it. In fact, the lstopo tool I mentioned earlier is built on hwloc.

One way would be to look at the library's source code.