MAINT: Minor refactors to have common precisions

This commit is contained in:
Rohit Goswami 2024-04-13 20:11:37 +00:00 committed by Mateusz Sokół
parent bc966e1209
commit 85db158f02
2 changed files with 10 additions and 0 deletions

View File

@ -322,6 +322,7 @@ base_kops = [
}, },
}, },
}, },
# TODO: Handle the i*amax style
{'base': 'axpby', {'base': 'axpby',
'modes': {'s': {'dir': 'arm', 'kernel': 'axpby.c', 'exts': ['_k']}, 'modes': {'s': {'dir': 'arm', 'kernel': 'axpby.c', 'exts': ['_k']},
'd': {'dir': 'arm', 'kernel': 'axpby.c', 'exts': ['_k']}, 'd': {'dir': 'arm', 'kernel': 'axpby.c', 'exts': ['_k']},

View File

@ -251,6 +251,15 @@ else
endif endif
endif endif
# Common maps
precision_mappings = {
's': {'undef': ['COMPLEX', 'DOUBLE'], 'def': []},
'd': {'undef': ['COMPLEX'], 'def': ['DOUBLE']},
'q': {'undef': ['COMPLEX'], 'def': ['XDOUBLE']},
'c': {'undef': ['DOUBLE'], 'def': ['COMPLEX']},
'z': {'undef': [], 'def': ['COMPLEX', 'DOUBLE']},
'x': {'undef': [], 'def': ['COMPLEX', 'XDOUBLE']},
}
# Ignoring other hostarch checks and conflicts for arch in BSD for now # Ignoring other hostarch checks and conflicts for arch in BSD for now
_inc = include_directories('.') _inc = include_directories('.')