use tMPI API for thread affinity setting
authorSzilard Pall <pszilard@cbr.su.se>
Fri, 19 Oct 2012 20:26:47 +0000 (22:26 +0200)
committerSander Pronk <pronk@kth.se>
Wed, 28 Nov 2012 08:51:33 +0000 (09:51 +0100)
commite4b8fd13da395b4927d4023ddb4a049542fba58b
treef2d93860bb2132d42ab69b4c56106b7bda5d4566
parent053bf71a93e33e1e378f8341c58f46a8b762cf93
use tMPI API for thread affinity setting

Also added checks to detect the lack of support for affinities as well
as failed affinity setting.

Additionally, removed the #ifdef that prevented pinning to happen if
mdrun is not compiled with OpenMP,  wihch doesn't make much sense,
If pinning should be turned off at all, it should happen when ntomp > 1,
but this will be sorted out later.

Change-Id: I9b865c4cfebc26e3d57da5da84878aabc9905c57
src/kernel/runner.c