MAINT: Cleanup some flags and add GFORT condition
This commit is contained in:
parent
9f616c5991
commit
33c48a70ce
|
@ -4,9 +4,8 @@ others_ops = [
|
||||||
{ 'base': 'xerbla', 'source': 'xerbla.c' },
|
{ 'base': 'xerbla', 'source': 'xerbla.c' },
|
||||||
{ 'base': 'openblas_set_num_threads', 'source': 'openblas_set_num_threads.c' },
|
{ 'base': 'openblas_set_num_threads', 'source': 'openblas_set_num_threads.c' },
|
||||||
{ 'base': 'openblas_get_num_threads', 'source': 'openblas_get_num_threads.c', 'addl': [
|
{ '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',
|
'-DSMALL_MATRIX_OPT', '-Wall', '-DF_OTHERS_GFORT',
|
||||||
'-fPIC', '-DSMP_SERVER', '-DNO_WARMUP', '-DMAX_CPU_NUMBER=12', '-DVERSION="0.3.26.dev"', '-msse3', '-mssse3',
|
'-DSMP_SERVER', '-DNO_WARMUP', '-DMAX_CPU_NUMBER=12',
|
||||||
'-msse4.1', '-mavx', '-mavx2'
|
|
||||||
]},
|
]},
|
||||||
{ 'base': 'openblas_get_num_procs', 'source': 'openblas_get_num_procs.c' },
|
{ 'base': 'openblas_get_num_procs', 'source': 'openblas_get_num_procs.c' },
|
||||||
{ 'base': 'openblas_get_parallel', 'source': 'openblas_get_parallel.c' },
|
{ 'base': 'openblas_get_parallel', 'source': 'openblas_get_parallel.c' },
|
||||||
|
|
|
@ -565,6 +565,9 @@ foreach conf : _blas_roots
|
||||||
endif
|
endif
|
||||||
# Seed with common args
|
# Seed with common args
|
||||||
compiler_args = _cargs + interface_args
|
compiler_args = _cargs + interface_args
|
||||||
|
if fc_id == 'gcc'
|
||||||
|
compiler_args += ['-DF_INTERFACE_GFORT']
|
||||||
|
endif
|
||||||
# Generate the symbol flags
|
# Generate the symbol flags
|
||||||
base = conf['base']
|
base = conf['base']
|
||||||
if symb_defs.has_key(base)
|
if symb_defs.has_key(base)
|
||||||
|
|
Loading…
Reference in New Issue