Browse Source

BLD: Try working on building the interface

With inputs from @eli-schwartz
pull/4820/head
Rohit Goswami 2 years ago
parent
commit
993916bf7d
No known key found for this signature in database GPG Key ID: 9CCCE36402CB49A6
3 changed files with 27 additions and 1 deletions
  1. +20
    -0
      interface/meson.build
  2. +4
    -0
      interface/meson_options.txt
  3. +3
    -1
      meson.build

+ 20
- 0
interface/meson.build 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)

+ 4
- 0
interface/meson_options.txt 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')

+ 3
- 1
meson.build View File

@@ -24,7 +24,9 @@ cc = meson.get_compiler('c')

# Makefile.system
# 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
build_single = get_option('build_single')


Loading…
Cancel
Save