From 69dd74dedf8799a42b0c9250d81dd8cf67573239 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Sun, 10 Mar 2024 19:28:36 +0000 Subject: [PATCH] MAINT: Add a bit on generating additional defines --- interface/meson.build | 13 ++++++++++++- meson_options.txt | 3 ++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/interface/meson.build b/interface/meson.build index 5094f4c7d..7c457afd2 100644 --- a/interface/meson.build +++ b/interface/meson.build @@ -1,5 +1,8 @@ _kinds = [] -real_kinds = ['s', 'd', 'q'] +real_kinds = ['s', 'd'] +if get_option('exprecision') + real_kinds += 'q' +endif complex_kinds = ['c', 'z', 'x'] extended_kinds = ['dx', 'bf16'] _rules = { @@ -32,6 +35,10 @@ blas3_roots = [ 'gemmt' ] +# addl_srcs = { +# 'symm': '-DHEMM' +# } + # Generated # TODO: Generated the imax and max via use_abs use_min configurations = [] @@ -41,6 +48,10 @@ blas_roots += blas3_roots _kinds += real_kinds foreach blasi : blas_roots sfiles = blasi + '.c' + # defs = [] + # if blasi in addl_srcs + # defs += addl_srcs[blasi] + # endif foreach tkind : real_kinds name = tkind + blasi defs = [] diff --git a/meson_options.txt b/meson_options.txt index 1276a0371..adbeb4bd1 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -32,8 +32,9 @@ option('realkind', type : 'string', value : 'd', option('use_xblas', type : 'boolean', value : false, description : 'Build extended precision (needs XBLAS)') -# From interface/Makefile +# From / for interface/Makefile option('build_bfloat16', type: 'boolean', value: false, description: 'Build bfloat16') +option('exprecision', type: 'boolean', value: false, description: 'Build the q suffixes') # Meson only # This is the equivalent of producing all precisions via make all inside lapack-netlib/blas/src