MAINT: Cleanup some flags and add GFORT condition

This commit is contained in:
Rohit Goswami 2024-07-29 04:49:00 +00:00 committed by Mateusz Sokół
parent 9f616c5991
commit 33c48a70ce
2 changed files with 5 additions and 3 deletions

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' },

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)