summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2022-11-23 23:40:23 +0100
committerRalf Gommers <ralf.gommers@gmail.com>2022-11-25 12:37:46 +0100
commit4002a7d421ff10780c28a3643683af7a9754f87f (patch)
treea06d4c10642d1c93d552f80f1e90f393c9953c18 /meson_options.txt
parent632f573f12c641990bfac24cf4df435804340a7f (diff)
downloadnumpy-4002a7d421ff10780c28a3643683af7a9754f87f.tar.gz
BLD: enable building NumPy with Meson
This enables building with NumPy on Linux and macOS. Windows support should be complete to, but is untested as of now and may need a few tweaks. This contains: - A set of `meson.build` files and related code generation script tweaks, header templates, etc. - One CI job on Linux - Basic docs on using Meson to build NumPy (not yet integrated in the html docs, it's too early for that - this is for early adopters right now). The build should be complete, with the major exception of SIMD support. The full test suite passes. See gh-22546 for the tracking issue with detailed notes on the plan for switching NumPy to Meson as its build system. Co-authored-by: Stefan van der Walt <stefanv@berkeley.edu>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
new file mode 100644
index 000000000..f53432def
--- /dev/null
+++ b/meson_options.txt
@@ -0,0 +1,13 @@
+option('blas', type: 'string', value: 'openblas',
+ description: 'option for BLAS library switching')
+option('lapack', type: 'string', value: 'openblas',
+ description: 'option for LAPACK library switching')
+option('disable-svml', type: 'boolean', value: 'false',
+ description: 'Disable building against SVML')
+option('disable-threading', type: 'boolean', value: 'false',
+ description: 'Disable threading support (see `NPY_ALLOW_THREADS` docs)')
+# TODO: flip value to 'false' once we have `npy_cpu_dispatch_config.h` & co.
+option('disable-simd-optimizations', type: 'boolean', value: 'true',
+ description: 'Disable SIMD features beyond the baseline ones')
+option('relaxed-strides-debug', type: 'boolean', value: 'false',
+ description: 'Enable relaxed strides debug mode (see `NPY_RELAXED_STRIDES_DEBUG` docs)')