@@ -329,6 +329,9 @@ def groupby(index, seq):
329
329
"GxB_cuda_malloc" ,
330
330
"GxB_cuda_free" ,
331
331
}
332
+ IGNORE_ENUMS = {
333
+ "memory_order" ,
334
+ }
332
335
333
336
334
337
class VisitEnumTypedef (c_generator .CGenerator ):
@@ -368,7 +371,7 @@ def get_groups(ast):
368
371
groups ["GB methods" ] = sorted (vals , key = sort_key )
369
372
370
373
missing_methods = {x for x in lines if "extern GrB_Info " in x } - seen
371
- assert not missing_methods
374
+ assert not missing_methods , ", " . join ( sorted ( missing_methods ))
372
375
373
376
vals = {x for x in lines if "extern GrB" in x } - seen
374
377
seen .update (vals )
@@ -387,7 +390,7 @@ def get_groups(ast):
387
390
groups ["GrB const" ] = sorted (vals , key = sort_key )
388
391
389
392
missing_const = {x for x in lines if "extern const" in x } - seen
390
- assert not missing_const
393
+ assert not missing_const , ", " . join ( sorted ( missing_const ))
391
394
392
395
vals = {x for x in lines if "typedef" in x and "GxB" in x and "(" not in x } - seen
393
396
seen .update (vals )
@@ -398,7 +401,7 @@ def get_groups(ast):
398
401
groups ["GrB typedef" ] = sorted (vals , key = sort_key )
399
402
400
403
missing_typedefs = {x for x in lines if "typedef" in x and "GB" in x and "(" not in x } - seen
401
- assert not missing_typedefs
404
+ assert not missing_typedefs , ", " . join ( sorted ( missing_typedefs ))
402
405
assert all (x .endswith (";" ) for x in seen ) # sanity check
403
406
404
407
g = VisitEnumTypedef ()
@@ -416,14 +419,15 @@ def get_groups(ast):
416
419
groups ["GxB typedef enums" ] = sorted (vals , key = lambda x : sort_key (x .rsplit ("}" , 1 )[- 1 ]))
417
420
418
421
missing_enums = set (enums ) - set (groups ["GrB typedef enums" ]) - set (groups ["GxB typedef enums" ])
419
- 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 ))
420
424
421
425
vals = {x for x in lines if "typedef" in x and "GxB" in x } - seen
422
426
seen .update (vals )
423
427
groups ["GxB typedef funcs" ] = sorted (vals , key = sort_key )
424
428
425
429
vals = {x for x in lines if "typedef" in x and "GrB" in x } - seen
426
- assert not vals
430
+ assert not vals , ", " . join ( sorted ( vals ))
427
431
groups ["not seen" ] = sorted (set (lines ) - seen , key = sort_key )
428
432
for group in groups ["not seen" ]:
429
433
assert "extern" not in group , group
0 commit comments