@@ -799,7 +799,7 @@ def main():
799
799
800
800
# final files used by cffi (with and without complex numbers)
801
801
final_h = os .path .join (thisdir , "suitesparse_graphblas.h" )
802
- final_arm64_h = os .path .join (thisdir , "suitesparse_graphblas_arm64.h" )
802
+ # final_arm64_h = os.path.join(thisdir, "suitesparse_graphblas_arm64.h")
803
803
final_no_complex_h = os .path .join (thisdir , "suitesparse_graphblas_no_complex.h" )
804
804
source_c = os .path .join (thisdir , "source.c" )
805
805
@@ -827,30 +827,31 @@ def main():
827
827
with open (final_h , "w" ) as f :
828
828
f .write ("\n " .join (text ) + "\n " )
829
829
830
- # Create final header file (arm64)
831
- # Replace all variadic arguments (...) with "char *"
832
- print (f"Step 4: parse header file to create { final_arm64_h } " )
833
- orig_text = text
834
- patt = re .compile (r"^(extern GrB_Info .*\(.*)(\.\.\.)(\);)$" )
835
- text = [patt .sub (r"\1char *\3" , line ) for line in orig_text ]
836
- with open (final_arm64_h , "w" ) as f :
837
- f .write ("\n " .join (text ) + "\n " )
830
+ # NOTE:suitesparse_graphblas.h and suitesparse_graphblas_arm64.h are the same now
831
+ # # Create final header file (arm64)
832
+ # # Replace all variadic arguments (...) with "char *"
833
+ # print(f"Step 4: parse header file to create {final_arm64_h}")
834
+ # orig_text = text
835
+ # patt = re.compile(r"^(extern GrB_Info .*\(.*)(\.\.\.)(\);)$")
836
+ # text = [patt.sub(r"\1char *\3", line) for line in orig_text]
837
+ # with open(final_arm64_h, "w") as f:
838
+ # f.write("\n".join(text) + "\n")
838
839
839
840
# Create final header file (no complex)
840
- print (f"Step 5 : parse header file to create { final_no_complex_h } " )
841
+ print (f"Step 4 : parse header file to create { final_no_complex_h } " )
841
842
groups_no_complex = parse_header (processed_h , skip_complex = True )
842
843
text = create_header_text (groups_no_complex )
843
844
with open (final_no_complex_h , "w" ) as f :
844
845
f .write ("\n " .join (text ) + "\n " )
845
846
846
847
# Create source
847
- print (f"Step 6 : create { source_c } " )
848
+ print (f"Step 5 : create { source_c } " )
848
849
text = create_source_text (groups )
849
850
with open (source_c , "w" ) as f :
850
851
f .write ("\n " .join (text ) + "\n " )
851
852
852
853
# Check defines
853
- print ("Step 7 : check #define definitions" )
854
+ print ("Step 6 : check #define definitions" )
854
855
with open (graphblas_h ) as f :
855
856
text = f .read ()
856
857
define_lines = re .compile (r".*?#define\s+\w+\s+" )
0 commit comments