Browse Source

MAINT: Add a bit on generating additional defines

pull/4820/head
Rohit Goswami 1 year ago
parent
commit
5915e6b8b6
No known key found for this signature in database GPG Key ID: 9CCCE36402CB49A6
2 changed files with 14 additions and 2 deletions
  1. +12
    -1
      interface/meson.build
  2. +2
    -1
      meson_options.txt

+ 12
- 1
interface/meson.build View File

@@ -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 = []


+ 2
- 1
meson_options.txt View File

@@ -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


Loading…
Cancel
Save