Added support for PGI atomics in thread_mpi.
authorSander Pronk <pronk@cbr.su.se>
Wed, 1 Sep 2010 12:23:53 +0000 (14:23 +0200)
committerSander Pronk <pronk@cbr.su.se>
Wed, 1 Sep 2010 12:23:53 +0000 (14:23 +0200)
include/thread_mpi/atomic.h

index e8930a238b78710042595dbdd340c52f160130c2..e893f52b529c97b31ed0055846ea15f519bc1b13 100644 (file)
@@ -93,7 +93,7 @@ extern "C"
 
 /* first check for gcc/icc platforms. icc on linux+mac will take this path, 
    too */
-#if ( (defined(__GNUC__) || defined(__PATHSCALE__)) && (!defined(__xlc__)) )
+#if ( (defined(__GNUC__) || defined(__PATHSCALE__) || defined(__PGI)) && (!defined(__xlc__)) )
 
 /* now check specifically for several architectures: */
 #if (defined(i386) || defined(__x86_64__))