@@ -261,6 +261,7 @@ def groupby(index, seq):
261
261
}
262
262
263
263
DEFINES = {
264
+ "GrB_INDEX_MAX" ,
264
265
"GxB_STDC_VERSION" ,
265
266
"GxB_IMPLEMENTATION_MAJOR" ,
266
267
"GxB_IMPLEMENTATION_MINOR" ,
@@ -290,6 +291,13 @@ def groupby(index, seq):
290
291
"GxB_BEGIN" ,
291
292
"GxB_END" ,
292
293
"GxB_INC" ,
294
+ "GxB_FAST_IMPORT" ,
295
+ "GxB_MAX_NAME_LEN" ,
296
+ "GxB_COMPRESSION_DEFAULT" ,
297
+ "GxB_COMPRESSION_INTEL" ,
298
+ "GxB_COMPRESSION_LZ4" ,
299
+ "GxB_COMPRESSION_LZ4HC" ,
300
+ "GxB_COMPRESSION_NONE" ,
293
301
}
294
302
295
303
CHAR_DEFINES = {
@@ -321,6 +329,9 @@ def groupby(index, seq):
321
329
"GxB_cuda_malloc" ,
322
330
"GxB_cuda_free" ,
323
331
}
332
+ IGNORE_ENUMS = {
333
+ "memory_order" ,
334
+ }
324
335
325
336
326
337
class VisitEnumTypedef (c_generator .CGenerator ):
@@ -360,7 +371,7 @@ def get_groups(ast):
360
371
groups ["GB methods" ] = sorted (vals , key = sort_key )
361
372
362
373
missing_methods = {x for x in lines if "extern GrB_Info " in x } - seen
363
- assert not missing_methods
374
+ assert not missing_methods , ", " . join ( sorted ( missing_methods ))
364
375
365
376
vals = {x for x in lines if "extern GrB" in x } - seen
366
377
seen .update (vals )
@@ -379,7 +390,7 @@ def get_groups(ast):
379
390
groups ["GrB const" ] = sorted (vals , key = sort_key )
380
391
381
392
missing_const = {x for x in lines if "extern const" in x } - seen
382
- assert not missing_const
393
+ assert not missing_const , ", " . join ( sorted ( missing_const ))
383
394
384
395
vals = {x for x in lines if "typedef" in x and "GxB" in x and "(" not in x } - seen
385
396
seen .update (vals )
@@ -390,7 +401,7 @@ def get_groups(ast):
390
401
groups ["GrB typedef" ] = sorted (vals , key = sort_key )
391
402
392
403
missing_typedefs = {x for x in lines if "typedef" in x and "GB" in x and "(" not in x } - seen
393
- assert not missing_typedefs
404
+ assert not missing_typedefs , ", " . join ( sorted ( missing_typedefs ))
394
405
assert all (x .endswith (";" ) for x in seen ) # sanity check
395
406
396
407
g = VisitEnumTypedef ()
@@ -408,14 +419,15 @@ def get_groups(ast):
408
419
groups ["GxB typedef enums" ] = sorted (vals , key = lambda x : sort_key (x .rsplit ("}" , 1 )[- 1 ]))
409
420
410
421
missing_enums = set (enums ) - set (groups ["GrB typedef enums" ]) - set (groups ["GxB typedef enums" ])
411
- assert not missing_enums
422
+ missing_enums = {x for x in missing_enums if not any (y in x for y in IGNORE_ENUMS )}
423
+ assert not missing_enums , ", " .join (sorted (missing_enums ))
412
424
413
425
vals = {x for x in lines if "typedef" in x and "GxB" in x } - seen
414
426
seen .update (vals )
415
427
groups ["GxB typedef funcs" ] = sorted (vals , key = sort_key )
416
428
417
429
vals = {x for x in lines if "typedef" in x and "GrB" in x } - seen
418
- assert not vals
430
+ assert not vals , ", " . join ( sorted ( vals ))
419
431
groups ["not seen" ] = sorted (set (lines ) - seen , key = sort_key )
420
432
for group in groups ["not seen" ]:
421
433
assert "extern" not in group , group
0 commit comments