Added thread affinity API to thread_mpi.
authorSander Pronk <pronk@cbr.su.se>
Fri, 12 Oct 2012 16:29:54 +0000 (18:29 +0200)
committerSander Pronk <pronk@cbr.su.se>
Mon, 15 Oct 2012 07:47:59 +0000 (09:47 +0200)
commite5da9dddb860436111cc7b5dc57f4fb4060cd3e4
treea2e2802306cf538776fb5d7b63880e460c336ad3
parent046b9d4b3095e1a3ac7602c8b0c853a236b3f2d1
Added thread affinity API to thread_mpi.

thread_mpi can now set thread affinity on Linux and Windows. Currently
that is limited to setting the affinity of any thread (including those
not started with thread_mpi) to any single core. The OS's core numbering
is maintained.

Change-Id: If0b7aa443f7da206b320a2bde5bd771a441fb2cb
include/thread_mpi/threads.h
include/thread_mpi/tmpi.h
src/gmxlib/thread_mpi/pthreads.c
src/gmxlib/thread_mpi/pthreads.h
src/gmxlib/thread_mpi/tmpi_init.c
src/gmxlib/thread_mpi/winthreads.c
src/gmxlib/thread_mpi/winthreads.h
src/kernel/runner.c