simple test for thread affinity: comes in both OpenMP and MPI+OpenMP flavors