BLD: Try working on building the interface

With inputs from @eli-schwartz
This commit is contained in:
Rohit Goswami 2024-03-03 04:00:20 +00:00 committed by Mateusz Sokół
parent db705390bc
commit 88f37df443
3 changed files with 27 additions and 1 deletions

20
interface/meson.build Normal file
View File

@ -0,0 +1,20 @@
configurations = [
# TODO: Also add defines for DOUBLE for d and the rest
{'defs': [], 'name': 'imax'}, # Original, no defines
{'defs': ['-DUSE_ABS'], 'name': 'iamax'},
{'defs': ['-DUSE_ABS', '-DUSE_MIN'], 'name': 'iamin'},
{'defs': ['-DUSE_MIN'], 'name': 'imin'},
]
_static_libs = []
foreach conf: configurations
_static_libs += static_library(
conf['name'],
'imax.c',
include_directories: _inc,
c_args: conf['defs'],
)
endforeach
_interface = static_library('_interface',
link_whole: _static_libs)

View File

@ -0,0 +1,4 @@
option('no_fblas', type: 'boolean', value: false, description: 'Disable FBLAS')
option('build_bfloat16', type: 'boolean', value: false, description: 'Enable BFloat16 support')
option('exprecision', type: 'boolean', value: false, description: 'Enable extended precision')
option('quad_precision', type: 'boolean', value: false, description: 'Enable quad precision')

View File

@ -24,7 +24,9 @@ cc = meson.get_compiler('c')
# Makefile.system # Makefile.system
# Ignoring all the hostarch checks and conflits for arch in BSD for now # Ignoring all the hostarch checks and conflits for arch in BSD for now
subdir('lapack-netlib') _inc = include_directories('.')
# subdir('lapack-netlib')
subdir('interface')
# System configuration # System configuration
build_single = get_option('build_single') build_single = get_option('build_single')