Skip to content

Commit bb29cf7

Browse files
authored
Fix heavydb server (built with llvm 14) crash when using numba with llvm 11 (#551)
1 parent 3aa08cb commit bb29cf7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

rbc/irtools.py

+1
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def _get_host_cpu_features(self):
167167
'avx512bf16', 'movbe', 'xsaveopt', 'avx512dq', 'adx',
168168
'avx512pf', 'sse3'],
169169
(9, 8): ['cx8', 'enqcmd', 'avx512bf16'],
170+
(14, 11): ['crc32', 'uintr', 'widekl', 'avxvnni', 'avx512fp16', 'kl', 'hreset'],
170171
}.get((server_llvm_version[0], client_llvm_version[0]), None)
171172
if remove_features is None:
172173
warnings.warn(

rbc/tests/heavydb/test_math.py

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def heavydb():
2121
# TODO: use heavydb_fixture from rbc/tests/__init__.py
2222
config = rbc_heavydb.get_client_config(debug=not True)
2323
m = rbc_heavydb.RemoteHeavyDB(**config)
24+
m.retrieve_targets() # initializes has_cuda
25+
2426
table_name = 'rbc_test_heavydb_math'
2527

2628
m.sql_execute(f'DROP TABLE IF EXISTS {table_name}')

0 commit comments

Comments
 (0)