spack/var/spack/repos/builtin/packages/scotch/nonthreaded-6.0.4.patch
Mark Olesen 1c73f9d92f ENH: add int64 variant to scotch (as per metis +int64) (#3536)
BUG: provide patch for scotch 6.0.4 if building non-threaded

- corresponds to issue #20179 from the scotch issue trackter
2017-03-27 07:48:14 -05:00

12 lines
599 B
Diff

--- scotch_6.0.4.orig/src/libscotch/common.h 2015-03-01 10:14:02.000000000 +0100
+++ scotch_6.0.4/src/libscotch/common.h 2017-03-27 13:07:18.644221999 +0200
@@ -306,6 +306,8 @@
ThreadLaunchStartFunc stafptr; /*+ Pointer to start routine +*/
ThreadLaunchJoinFunc joifptr; /*+ Pointer to join routine +*/
ThreadBarrier barrdat; /*+ Barrier data structure +*/
+#else
+ int thrdnbr; /* dummy for non-threaded */
#endif /* ((defined COMMON_PTHREAD) || (defined SCOTCH_PTHREAD)) */
} ThreadGroupHeader;