Skip to content

Commit 99c26c7

Browse files
authored
Merge pull request #2981 from mabel-dev/0.26.5
0.26.5
2 parents 36de52c + a7515a7 commit 99c26c7

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

dev/build_counter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class VersionStatus(Enum):
2525

2626
__major_version__ = 0
2727
__minor_version__ = 26
28-
__revision_version__ = 4
28+
__revision_version__ = 5
2929
__author__ = "@joocer"
3030
__status__ = VersionStatus.RELEASE
3131

opteryx/__version__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# THIS FILE IS AUTOMATICALLY UPDATED DURING THE BUILD PROCESS
22
# DO NOT EDIT THIS FILE DIRECTLY
33

4-
__build__ = 1980
4+
__build__ = 1981
55
__author__ = "@joocer"
6-
__version__ = "0.26.4"
6+
__version__ = "0.26.5"
77

88
# Store the version here so:
99
# 1) we don't load dependencies by storing it in __init__.py

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "opteryx"
3-
version = "0.26.4"
3+
version = "0.26.5"
44
description = "Query your data, where it lives"
55
requires-python = '>=3.11'
66
readme = {file = "README.md", content-type = "text/markdown"}

setup.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,15 @@ def detect_architecture():
7070
CPP_FLAGS = ["/O2", "/std:c++17"]
7171
C_FLAGS = ["/O2"]
7272
elif is_linux():
73-
CPP_FLAGS.extend(["-march=native", "-fvisibility=default"])
74-
C_FLAGS.extend(["-march=native", "-fvisibility=default"])
73+
# Don't use -march=native as it can cause "Illegal Instruction" errors
74+
# when the binary is run on a different CPU than it was built on.
75+
# The SIMD code has runtime dispatch guards, so we don't need -march=native.
76+
CPP_FLAGS.extend(["-fvisibility=default"])
77+
C_FLAGS.extend(["-fvisibility=default"])
7578

76-
# SIMD-specific flags
79+
# SIMD-specific flags for conditional compilation (guarded by runtime checks)
7780
if arch == "x86_64":
78-
# Add SIMD support
81+
# Enable AVX2 codegen for SIMD sections (runtime dispatch will select appropriate impl)
7982
CPP_FLAGS.extend(["-msse4.2", "-mavx2"])
8083
elif arch == "arm" and not is_mac():
8184
CPP_FLAGS.append("-mfpu=neon")

0 commit comments

Comments
 (0)