Remove TEST_TMPI_ATOMICS_ONLY
authorRoland Schulz <roland@utk.edu>
Thu, 29 Nov 2012 01:59:29 +0000 (20:59 -0500)
committerRoland Schulz <roland@utk.edu>
Wed, 5 Dec 2012 18:14:15 +0000 (13:14 -0500)
Not needed anymore since aaf38d0b8683c510a5

Change-Id: Icce5578e7b1bd64a5dcfef1e2e38358ce5d9707c

cmake/ThreadMPI.cmake

index 8ec88a3cc955aee98948b62763e239c668070cd2..d001cea19c5aadfb7aa92ed9762a11c2e7701179 100644 (file)
@@ -49,12 +49,7 @@ MACRO(TEST_TMPI_ATOMICS VARIABLE)
             message(STATUS "Atomics found")
             set(${VARIABLE} TRUE CACHE INTERNAL "Whether atomic operations for thread-MPI were found")
         else (TEST_ATOMICS)
-            if (TEST_TMPI_ATOMICS_ONLY)
-                message(WARNING "Atomic operations not found for this CPU+compiler combination. Atomic operations should work on all but the most obscure CPU+compiler combinations; if your system is not obscure -- like, for example, x86 with gcc --  please contact the developers.")
-            else (TEST_TMPI_ATOMICS_ONLY)
-                message(WARNING "Atomic operations not found for this
-            CPU+compiler combination. Thread support will be unbearably slow: disable threads. Atomic operations should work on all but the most obscure CPU+compiler combinations; if your system is not obscure -- like, for example, x86 with gcc --  please contact the developers.")
-            endif (TEST_TMPI_ATOMICS_ONLY)
+            message(WARNING "Atomic operations not found for this CPU+compiler combination. Thread support will be unbearably slow: disable threads. Atomic operations should work on all but the most obscure CPU+compiler combinations; if your system is not obscure -- like, for example, x86 with gcc --  please contact the developers.")
             set(${VARIABLE} FALSE CACHE INTERNAL "Whether atomic operations for thread-MPI were found")
         endif(TEST_ATOMICS)
     endif(NOT DEFINED TMPI_ATOMICS)
@@ -104,8 +99,6 @@ ENDMACRO(TMPI_GET_SOURCE_LIST)
 
 test_tmpi_atomics(TMPI_ATOMICS)
 
-# do we want to only the atomics of tMPI (with GPU + MPI)
-if(NOT TEST_TMPI_ATOMICS_ONLY)
 include(FindThreads)
 if (CMAKE_USE_PTHREADS_INIT)
     check_include_files(pthread.h    HAVE_PTHREAD_H)
@@ -193,5 +186,3 @@ check_include_files(sys/time.h      HAVE_SYS_TIME_H)
 check_function_exists(sysconf       HAVE_SYSCONF)
 # this runs on windows
 #check_include_files(windows.h         HAVE_WINDOWS_H)
-
-endif(NOT TEST_TMPI_ATOMICS_ONLY)