From 730ddda0ae5be8f1e60b9dcee5d6abb0dedd2769 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Fri, 24 May 2024 14:33:32 -0400 Subject: [PATCH 1/2] [python] Include guidance for older CPU architectures --- apis/python/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apis/python/README.md b/apis/python/README.md index 6892e0a10d..a4830e05a8 100644 --- a/apis/python/README.md +++ b/apis/python/README.md @@ -26,6 +26,8 @@ To update to the latest version: $ python -m pip install --upgrade tiledbsoma ``` +In case of `illegal instruction` errors when running on older architectures --- e.g. Opteron, non-AVX2 --- the issue is that the pre-compiled binaries available at Conda or PyPI aren't targeted for all processor variants over time. You can install from source, as shown below. + ## From source * This requires [`tiledb`](https://github.com/TileDB-Inc/TileDB-Py) (see [./setup.cfg](setup.cfg) for version), in addition to other dependencies in [setup.cfg](./setup.cfg). From 7f08fae360362c24815e0dcede73428954f25961 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Fri, 24 May 2024 15:46:11 -0400 Subject: [PATCH 2/2] code-review feedback --- apis/python/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apis/python/README.md b/apis/python/README.md index a4830e05a8..704ed54fd5 100644 --- a/apis/python/README.md +++ b/apis/python/README.md @@ -28,6 +28,14 @@ $ python -m pip install --upgrade tiledbsoma In case of `illegal instruction` errors when running on older architectures --- e.g. Opteron, non-AVX2 --- the issue is that the pre-compiled binaries available at Conda or PyPI aren't targeted for all processor variants over time. You can install from source, as shown below. +To see if this is the issue, on Linux: + +``` +grep avx2 /proc/cpuinfo +``` + +If this comes up empty for your system, you'll definitely need to build from source to run TileDB-SOMA on that system. + ## From source * This requires [`tiledb`](https://github.com/TileDB-Inc/TileDB-Py) (see [./setup.cfg](setup.cfg) for version), in addition to other dependencies in [setup.cfg](./setup.cfg).