Skip to content

Commit 8597fae

Browse files
require GraphBLAS 10.2 or later for Louvain
1 parent 23effd1 commit 8597fae

File tree

8 files changed

+27
-22
lines changed

8 files changed

+27
-22
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# if there are multiple items in this list, only use should
2020
# deployit=true for just one of them.
2121
- {grb_version: 9.0.0, deployit: false}
22-
- {grb_version: 10.1.0, deployit: true}
22+
- {grb_version: 10.2.0, deployit: true}
2323

2424
steps:
2525

@@ -69,7 +69,7 @@ jobs:
6969
matrix:
7070
config:
7171
- {grb_version: 9.0.0}
72-
- {grb_version: 10.1.0}
72+
- {grb_version: 10.2.0}
7373

7474
steps:
7575

@@ -99,5 +99,5 @@ jobs:
9999
cd build
100100
cmake ..
101101
JOBS=2 make
102-
ctest .
102+
ctest . --rerun-failed --output-on-failure
103103

experimental/algorithm/LAGr_Modularity2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ int LAGr_Modularity2(
7575
GrB_Matrix S,
7676
char *msg)
7777
{
78-
#if LG_SUITESPARSE_GRAPHBLAS_V10
78+
#if LG_SUITESPARSE_GRAPHBLAS_V10_2
7979
LG_CLEAR_MSG;
8080
char MATRIX_TYPE[LAGRAPH_MSG_LEN];
8181

82-
GrB_set(GrB_GLOBAL, false, GxB_BURBLE);
82+
// GrB_set(GrB_GLOBAL, false, GxB_BURBLE);
8383

8484
GrB_Index n;
8585
GrB_Matrix k = NULL;
@@ -133,4 +133,4 @@ int LAGr_Modularity2(
133133
#else
134134
return (GrB_NOT_IMPLEMENTED);
135135
#endif
136-
}
136+
}

experimental/algorithm/LAGraph_IsolateSets.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ int LAGraph_IsolateSet(
6262
uint64_t seed,
6363
char *msg)
6464
{
65-
#if LG_SUITESPARSE_GRAPHBLAS_V10
65+
#if LG_SUITESPARSE_GRAPHBLAS_V10_2
6666
LG_CLEAR_MSG;
6767

6868
char MATRIX_TYPE[LAGRAPH_MSG_LEN];
69-
GrB_set(GrB_GLOBAL, DEBUG, GxB_BURBLE);
69+
// GrB_set(GrB_GLOBAL, DEBUG, GxB_BURBLE);
7070
GrB_Vector iset = NULL; // independent set (output vector)
7171
GrB_Vector score = NULL;
7272
GrB_Vector scoreA = NULL; // random score for each node
@@ -166,7 +166,7 @@ int LAGraph_IsolateSets(
166166
char *msg // Error message buffer
167167
)
168168
{
169-
#if LG_SUITESPARSE_GRAPHBLAS_V10
169+
#if LG_SUITESPARSE_GRAPHBLAS_V10_2
170170
LG_CLEAR_MSG;
171171
// LG_TRY(LAGraph_CheckGraph(G, msg));
172172
LG_ASSERT(IsolateSets != NULL, GrB_NULL_POINTER);

experimental/algorithm/LAGraph_LouvainIS.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <stdio.h>
2424
#include <time.h>
2525

26-
#if LG_SUITESPARSE_GRAPHBLAS_V10
26+
#if LG_SUITESPARSE_GRAPHBLAS_V10_2
2727

2828
// #define TIMING
2929
#define DEBUG 0
@@ -43,29 +43,29 @@
4343
#define err(x, info)
4444
#endif
4545

46-
typedef struct Theta
46+
typedef struct // Theta
4747
{
4848
double *d;
4949
double m;
5050
uint64_t seed;
5151
} Theta;
5252
#define THETA_DEFN \
53-
"typedef struct Theta" \
53+
"typedef struct /* Theta */" \
5454
"{" \
5555
" double *d;" \
5656
" double m;" \
5757
" uint64_t seed;" \
5858
"} Theta;"
5959

60-
typedef struct argmax_tup
60+
typedef struct // argmax_tup
6161
{
6262
double score; /* change in modularity */
6363
int64_t comm; /* who */
6464
double tb;
6565
} argmax_tup;
6666

6767
#define AM_TUP \
68-
"typedef struct argmax_tup\n" \
68+
"typedef struct /* argmax_tup */ \n" \
6969
"{\n" \
7070
" double score; /* change in modularity */\n" \
7171
" int64_t comm; /* who */\n" \
@@ -292,9 +292,9 @@ int LAGraph_LouvainIS(
292292
LAGraph_Graph G,
293293
char *msg)
294294
{
295-
#if LG_SUITESPARSE_GRAPHBLAS_V10
295+
#if LG_SUITESPARSE_GRAPHBLAS_V10_2
296296
char MATRIX_TYPE[LAGRAPH_MSG_LEN];
297-
GrB_set(GrB_GLOBAL, false, GxB_BURBLE);
297+
// GrB_set(GrB_GLOBAL, false, GxB_BURBLE);
298298

299299
GrB_Descriptor ri = NULL;
300300
GrB_Descriptor rv = NULL;

experimental/algorithm/LAGraph_LouvainSeq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ int LAGraph_LouvainSeq(
155155
uint64_t seed,
156156
char *msg)
157157
{
158-
#if LG_SUITESPARSE_GRAPHBLAS_V10
158+
#if LG_SUITESPARSE_GRAPHBLAS_V10_2
159159
char MATRIX_TYPE[LAGRAPH_MSG_LEN];
160-
GrB_set(GrB_GLOBAL, false, GxB_BURBLE);
160+
// GrB_set(GrB_GLOBAL, false, GxB_BURBLE);
161161

162162

163163
GrB_Vector t_q = NULL, q1 = NULL, t = NULL, v = NULL;

experimental/test/test_IsolateSets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const matrix_info files[] = {
2323
};
2424

2525
void test_IsolateSets(void){
26-
#if LG_SUITESPARSE_GRAPHBLAS_V10
26+
#if LG_SUITESPARSE_GRAPHBLAS_V10_2
2727
LAGraph_Init(msg);
2828
printf("\n");
2929
for(int k = 0;;k++)

experimental/test/test_louvain.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ const matrix_info files[] = {
4040

4141
void test_LouvainSeq(void)
4242
{
43-
#if LG_SUITESPARSE_GRAPHBLAS_V10
43+
#if LG_SUITESPARSE_GRAPHBLAS_V10_2
4444
LAGraph_Init(msg);
45+
// LG_SET_BURBLE (false) ;
4546

4647
for (int k = 0;; k++)
4748
{
@@ -89,8 +90,9 @@ void test_LouvainSeq(void)
8990
}
9091
void test_LouvainIS(void)
9192
{
92-
#if LG_SUITESPARSE_GRAPHBLAS_V10
93+
#if LG_SUITESPARSE_GRAPHBLAS_V10_2
9394
LAGraph_Init(msg);
95+
// LG_SET_BURBLE (true) ;
9496

9597
for (int k = 0;; k++)
9698
{
@@ -120,6 +122,9 @@ void test_LouvainIS(void)
120122

121123
double tsimple = LAGraph_WallClockTime();
122124
OK(LAGraph_LouvainIS(&S,seed, G, msg));
125+
// GrB_Info info = (LAGraph_LouvainIS(&S,seed, G, msg));
126+
// printf ("info %d\nmsg: %s\n", info, msg) ;
127+
// OK (info) ;
123128

124129
// OK(LAGraph_Louvain_res(&S,G,.3,msg));
125130
tsimple = LAGraph_WallClockTime() - tsimple;

experimental/test/test_modularity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const matrix_info files[] = {
2929
{"", "", -1, -1}};
3030
void test_modularity(void)
3131
{
32-
#if LG_SUITESPARSE_GRAPHBLAS_V10
32+
#if LG_SUITESPARSE_GRAPHBLAS_V10_2
3333
LAGraph_Init(msg);
3434
for (int k = 0;; k++)
3535
{

0 commit comments

Comments
 (0)