Skip to content

Commit 49e9771

Browse files
tupuipearu
andauthored
MAINT: more information in message when raising when no runtime (#425)
* MAINT: more information in message when raising when no runtime * MAINT: update mapping unsupported features * Update rbc/omniscidb.py Co-authored-by: Pearu Peterson <[email protected]> Co-authored-by: Pearu Peterson <[email protected]>
1 parent 02ca2d3 commit 49e9771

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

rbc/irtools.py

+14
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@ def _get_host_cpu_features(self):
108108
'amx-tile', 'amx-bf16', 'serialize', 'amx-int8',
109109
'avx512vp2intersect', 'cx8', 'enqcmd', 'avx512bf16'],
110110
(11, 10): ['tsxldtrk', 'amx-tile', 'amx-bf16', 'serialize', 'amx-int8'],
111+
(9, 11): ['sse2', 'cx16', 'sahf', 'tbm', 'avx512ifma', 'sha',
112+
'gfni', 'fma4', 'vpclmulqdq', 'prfchw', 'bmi2', 'cldemote',
113+
'fsgsbase', 'ptwrite', 'xsavec', 'popcnt', 'mpx',
114+
'avx512bitalg', 'movdiri', 'xsaves', 'avx512er',
115+
'avx512vnni', 'avx512vpopcntdq', 'pconfig', 'clwb',
116+
'avx512f', 'clzero', 'pku', 'mmx', 'lwp', 'rdpid', 'xop',
117+
'rdseed', 'waitpkg', 'movdir64b', 'sse4a', 'avx512bw',
118+
'clflushopt', 'xsave', 'avx512vbmi2', '64bit', 'avx512vl',
119+
'invpcid', 'avx512cd', 'avx', 'vaes', 'cx8', 'fma', 'rtm',
120+
'bmi', 'enqcmd', 'rdrnd', 'mwaitx', 'sse4.1', 'sse4.2', 'avx2',
121+
'fxsr', 'wbnoinvd', 'sse', 'lzcnt', 'pclmul', 'prefetchwt1',
122+
'f16c', 'ssse3', 'sgx', 'shstk', 'cmov', 'avx512vbmi',
123+
'avx512bf16', 'movbe', 'xsaveopt', 'avx512dq', 'adx',
124+
'avx512pf', 'sse3'],
111125
(9, 8): ['cx8', 'enqcmd', 'avx512bf16'],
112126
}.get((server_llvm_version[0], client_llvm_version[0]), [])
113127
for f in remove_features:

rbc/omniscidb.py

+7
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,13 @@ def thrift_call(self, name, *args, **kwargs):
370370
m = re.match(r'Could not bind *', msg.error_msg)
371371
if m:
372372
raise OmnisciServerError(msg.error_msg)
373+
m = re.match(r'Runtime extension functions registration is disabled.',
374+
msg.error_msg)
375+
if m:
376+
msg = (f"{msg.error_msg} Please use server options --enable-runtime-udf"
377+
" and/or --enable-table-functions")
378+
raise OmnisciServerError(msg)
379+
373380
# TODO: catch more known server failures here.
374381
raise
375382

0 commit comments

Comments
 (0)