Browse Source

MAINT: Cleanup some flags and add GFORT condition

pull/4832/head
Rohit Goswami Mateusz Sokół 2 years ago
parent
commit
33c48a70ce
2 changed files with 5 additions and 3 deletions
  1. +2
    -3
      driver/others/meson.build
  2. +3
    -0
      interface/meson.build

+ 2
- 3
driver/others/meson.build View File

@@ -4,9 +4,8 @@ others_ops = [
{ 'base': 'xerbla', 'source': 'xerbla.c' },
{ 'base': 'openblas_set_num_threads', 'source': 'openblas_set_num_threads.c' },
{ 'base': 'openblas_get_num_threads', 'source': 'openblas_get_num_threads.c', 'addl': [
'-O2', '-DSMALL_MATRIX_OPT', '-DMAX_PARALLEL_NUMBER=1', '-DMAX_STACK_ALLOC=2048', '-Wall', '-DF_OTHERS_GFORT',
'-fPIC', '-DSMP_SERVER', '-DNO_WARMUP', '-DMAX_CPU_NUMBER=12', '-DVERSION="0.3.26.dev"', '-msse3', '-mssse3',
'-msse4.1', '-mavx', '-mavx2'
'-DSMALL_MATRIX_OPT', '-Wall', '-DF_OTHERS_GFORT',
'-DSMP_SERVER', '-DNO_WARMUP', '-DMAX_CPU_NUMBER=12',
]},
{ 'base': 'openblas_get_num_procs', 'source': 'openblas_get_num_procs.c' },
{ 'base': 'openblas_get_parallel', 'source': 'openblas_get_parallel.c' },


+ 3
- 0
interface/meson.build View File

@@ -565,6 +565,9 @@ foreach conf : _blas_roots
endif
# Seed with common args
compiler_args = _cargs + interface_args
if fc_id == 'gcc'
compiler_args += ['-DF_INTERFACE_GFORT']
endif
# Generate the symbol flags
base = conf['base']
if symb_defs.has_key(base)


Loading…
Cancel
Save