Added affinity support check, visibility macros in thread_mpi
authorSander Pronk <pronk@kth.se>
Mon, 26 Nov 2012 17:20:03 +0000 (18:20 +0100)
committerRoland Schulz <roland@utk.edu>
Tue, 27 Nov 2012 01:09:17 +0000 (20:09 -0500)
commit1fe7675a1168e7529c37624313ddd430ad1bb506
tree0eda6211c6be4d78a705aebb1087a9ad5eec1361
parenta30761c6a8f7b3abfbb1a975a341ce1d89939c67
Added affinity support check, visibility macros in thread_mpi

- Fixed a bug where the return value of tMPI_Thread_setaffinity_single()
  is not 0 when there is no error under Windows.
- Added a function tMPI_Thread_setaffinity_support() that returns
  whether the platform supports setting thread affinity
- Added dynamic library visibility support macros

Change-Id: I9f74c5095bccc06b413443dd6a1ac2dd56e0d4b8
15 files changed:
include/thread_mpi/atomic.h
include/thread_mpi/barrier.h
include/thread_mpi/collective.h
include/thread_mpi/event.h
include/thread_mpi/hwinfo.h
include/thread_mpi/list.h
include/thread_mpi/lock.h
include/thread_mpi/mutex.h
include/thread_mpi/numa_malloc.h
include/thread_mpi/system_error.h
include/thread_mpi/threads.h
include/thread_mpi/tmpi.h
include/thread_mpi/visibility.h [new file with mode: 0644]
src/gmxlib/thread_mpi/pthreads.c
src/gmxlib/thread_mpi/winthreads.c