MAINT: Refactor and rename

This commit is contained in:
Rohit Goswami 2024-03-17 16:11:12 +00:00 committed by Mateusz Sokół
parent 552f81045d
commit 75ea24cdea
1 changed files with 10 additions and 14 deletions

View File

@ -14,9 +14,6 @@ _rules = {
'bf19': ['BFLOAT16'], 'bf19': ['BFLOAT16'],
} }
sblas_extobs = []
_defs = []
blas_roots = [] blas_roots = []
blas1_roots = [ blas1_roots = [
# These don't exist as roots. # These don't exist as roots.
@ -42,21 +39,20 @@ blas3_roots = [
# Generated # Generated
# NOTE: Remember to check sourcesets as a simpler mechanism # NOTE: Remember to check sourcesets as a simpler mechanism
# TODO: Generated the imax and max via use_abs use_min # TODO: Generated the imax and max via use_abs use_min
configurations = [] interface_confs = []
blas_roots += blas1_roots blas_roots += blas1_roots
blas_roots += blas2_roots blas_roots += blas2_roots
blas_roots += blas3_roots blas_roots += blas3_roots
_kinds += real_kinds _kinds += real_kinds
foreach blasi : blas_roots foreach root : blas_roots
sfiles = blasi + '.c' fname = root + '.c'
# defs = []
# if blasi in addl_srcs
# defs += addl_srcs[blasi]
# endif
foreach tkind : real_kinds
name = tkind + blasi
defs = [] defs = []
configurations += {'defs': defs, 'name': name, 'src': sfiles} # if root in addl_srcs
# defs += addl_srcs[root]
# endif
foreach prec : real_kinds
name = prec + fname
interface_confs += {'defs': defs, 'name': name, 'src': fname}
endforeach endforeach
endforeach endforeach
@ -68,7 +64,7 @@ endforeach
# endif # endif
_static_libs = [] _static_libs = []
foreach conf: configurations foreach conf: interface_confs
_static_libs += static_library( _static_libs += static_library(
conf['name'], conf['name'],
conf['src'], conf['src'],