Browse Source

MAINT: Minor refactors to have common precisions

pull/4820/head
Rohit Goswami 1 year ago
parent
commit
90246ce9d7
No known key found for this signature in database GPG Key ID: 9CCCE36402CB49A6
2 changed files with 10 additions and 0 deletions
  1. +1
    -0
      kernel/meson.build
  2. +9
    -0
      meson.build

+ 1
- 0
kernel/meson.build View File

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


+ 9
- 0
meson.build View File

@@ -251,6 +251,15 @@ else
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
_inc = include_directories('.')


Loading…
Cancel
Save