MAINT: Add a bit on generating additional defines

This commit is contained in:
Rohit Goswami 2024-03-10 19:28:36 +00:00 committed by Mateusz Sokół
parent 6818dd821e
commit 69dd74dedf
2 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,8 @@
_kinds = [] _kinds = []
real_kinds = ['s', 'd', 'q'] real_kinds = ['s', 'd']
if get_option('exprecision')
real_kinds += 'q'
endif
complex_kinds = ['c', 'z', 'x'] complex_kinds = ['c', 'z', 'x']
extended_kinds = ['dx', 'bf16'] extended_kinds = ['dx', 'bf16']
_rules = { _rules = {
@ -32,6 +35,10 @@ blas3_roots = [
'gemmt' 'gemmt'
] ]
# addl_srcs = {
# 'symm': '-DHEMM'
# }
# Generated # Generated
# TODO: Generated the imax and max via use_abs use_min # TODO: Generated the imax and max via use_abs use_min
configurations = [] configurations = []
@ -41,6 +48,10 @@ blas_roots += blas3_roots
_kinds += real_kinds _kinds += real_kinds
foreach blasi : blas_roots foreach blasi : blas_roots
sfiles = blasi + '.c' sfiles = blasi + '.c'
# defs = []
# if blasi in addl_srcs
# defs += addl_srcs[blasi]
# endif
foreach tkind : real_kinds foreach tkind : real_kinds
name = tkind + blasi name = tkind + blasi
defs = [] defs = []

View File

@ -32,8 +32,9 @@ option('realkind', type : 'string', value : 'd',
option('use_xblas', type : 'boolean', value : false, option('use_xblas', type : 'boolean', value : false,
description : 'Build extended precision (needs XBLAS)') description : 'Build extended precision (needs XBLAS)')
# From interface/Makefile # From / for interface/Makefile
option('build_bfloat16', type: 'boolean', value: false, description: 'Build bfloat16') option('build_bfloat16', type: 'boolean', value: false, description: 'Build bfloat16')
option('exprecision', type: 'boolean', value: false, description: 'Build the q suffixes')
# Meson only # Meson only
# This is the equivalent of producing all precisions via make all inside lapack-netlib/blas/src # This is the equivalent of producing all precisions via make all inside lapack-netlib/blas/src