File: fix_armci_locks.patch

package info (click to toggle)
ga 5.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,472 kB
  • sloc: ansic: 192,963; fortran: 53,761; f90: 11,218; cpp: 5,784; makefile: 2,248; sh: 1,945; python: 1,734; perl: 534; csh: 134; asm: 106
file content (20 lines) | stat: -rw-r--r-- 686 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Index: ga/armci/src/include/locks.h
===================================================================
--- ga.orig/armci/src/include/locks.h	2025-02-19 18:00:14.884321458 +0100
+++ ga/armci/src/include/locks.h	2025-02-19 18:00:14.884321458 +0100
@@ -12,8 +12,13 @@
 #   include "spinlock.h"
 #endif
 
-#if !(defined(PMUTEX) || defined(PSPIN) || defined(SPINLOCK))
-#   error cannot run
+#if defined(PTHREADS) && !(defined(PMUTEXES) || defined(SPINLOCK)||defined(QUADRICS))
+# if defined(LINUX) && defined(__sparc__) && defined(GM)
+#    define PMUTEXES
+#    include <pthread.h>
+# else
+     cannot run
+# endif
 #endif
 
 #if (defined(SPINLOCK) || defined(PMUTEX) || defined(PSPIN))