File: AWPM_library_38dd27e.patch

package info (click to toggle)
combblas 2.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 190,488 kB
  • sloc: cpp: 55,918; ansic: 25,134; sh: 3,691; makefile: 548; csh: 66; python: 49; perl: 21
file content (51 lines) | stat: -rw-r--r-- 2,324 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Install BipartiteMatchings headers for SuperLU_DIST.  Removes global variables
and code related to performance measurement that is not useful when used in a
library setting.

Index: combblas/Applications/BipartiteMatchings/ApproxWeightPerfectMatching.h
===================================================================
--- combblas.orig/Applications/BipartiteMatchings/ApproxWeightPerfectMatching.h	2023-08-05 02:55:15.742688846 +0200
+++ combblas/Applications/BipartiteMatchings/ApproxWeightPerfectMatching.h	2023-08-05 02:55:15.738688812 +0200
@@ -389,7 +389,7 @@
 
 
 
-int ThreadBuffLenForBinning(int itemsize, int nbins)
+inline int ThreadBuffLenForBinning(int itemsize, int nbins)
 {
     // 1MB shared cache (per 2 cores) in KNL
 #ifndef L2_CACHE_SIZE
Index: combblas/Applications/BipartiteMatchings/BPMaximalMatching.h
===================================================================
--- combblas.orig/Applications/BipartiteMatchings/BPMaximalMatching.h	2023-08-05 02:55:15.742688846 +0200
+++ combblas/Applications/BipartiteMatchings/BPMaximalMatching.h	2023-08-05 02:55:15.738688812 +0200
@@ -14,7 +14,6 @@
 #define GREEDY 1
 #define KARP_SIPSER 2
 #define DMD 3
-MTRand GlobalMT(123); // for reproducible result
 
 namespace combblas {
 
@@ -24,7 +23,7 @@
 void MaximalMatching(Par_DCSC_Bool & A, Par_DCSC_Bool & AT, FullyDistVec<IT, IT>& mateRow2Col,
             FullyDistVec<IT, IT>& mateCol2Row, FullyDistVec<IT, IT>& degColRecv, int type, bool rand=true)
 {
-
+    static MTRand GlobalMT(123); // for reproducible result
 	typedef VertexTypeML < IT, IT> VertexType;
     
     int nprocs, myrank;
Index: combblas/Applications/BipartiteMatchings/BPMaximumMatching.h
===================================================================
--- combblas.orig/Applications/BipartiteMatchings/BPMaximumMatching.h	2023-08-05 02:55:15.742688846 +0200
+++ combblas/Applications/BipartiteMatchings/BPMaximumMatching.h	2023-08-05 02:55:15.738688812 +0200
@@ -231,7 +231,7 @@
 void maximumMatching(SpParMat < IT, NT, DER > & A, FullyDistVec<IT, IT>& mateRow2Col,
                      FullyDistVec<IT, IT>& mateCol2Row, bool prune=true, bool randMM = false, bool maximizeWeight = false)
 {
-	
+    static MTRand GlobalMT(123); // for reproducible result	
 	typedef VertexTypeMM <IT> VertexType;
 	
     int nthreads=1;