From 33c48a70ce66b0cca8a024034a82cdf946d8c527 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Mon, 29 Jul 2024 04:49:00 +0000 Subject: [PATCH] MAINT: Cleanup some flags and add GFORT condition --- driver/others/meson.build | 5 ++--- interface/meson.build | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/driver/others/meson.build b/driver/others/meson.build index 954bdf708..127c12a25 100644 --- a/driver/others/meson.build +++ b/driver/others/meson.build @@ -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' }, diff --git a/interface/meson.build b/interface/meson.build index adea3f44a..983c5276a 100644 --- a/interface/meson.build +++ b/interface/meson.build @@ -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)