There is much that can be said about computer architecture. However, in the context of parallel programming we are mostly concerned with the following:
crumb trail: > architecture > Tools for discovery
An easy way for discovering the structure of your parallel machine is to use tools that are written especially for this purpose.
crumb trail: > architecture > Tools for discovery > Intel cpuinfo
The Intel compiler suite comes with a tool cpuinfo that reports on the structure of the node you are running on. It reports on the number of package s, that is: sockets, cores, and threads.
crumb trail: > architecture > Tools for discovery > hwloc
The open source package hwloc does similar reporting to cpuinfo, but it has been ported to many platforms. Additionally, it can generate ascii and pdf graphic renderings of the architecture.