Repository navigation
Expand file tree
/
Copy pathmeson.options
More file actions
50 lines (50 loc) · 3.74 KB
/
Copy pathmeson.options
File metadata and controls
50 lines (50 loc) · 3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# we use this to build pre-compiled wheels on github CI
# copying anaconda openblas into SCS wheels for ease of
# installation
option('link_blas_statically', type: 'boolean',
value: false, description: 'copy BLAS compiled object into SCS module(s)')
option('link_mkl', type: 'boolean',
value: false, description: 'link to mkl-rt library')
option('link_cudss', type: 'boolean',
value: false, description: 'link to cuDSS library')
option('use_openmp', type: 'boolean',
value: false, description: 'Compile SCS with OpenMP parallelization enabled. This can make SCS faster, but requires a compiler with openMP support, the user must control how many threads OpenMP uses')
option('use_parallel_psd', type: 'boolean',
value: false, description: 'Project the PSD blocks of a problem in parallel with OpenMP (USE_PARALLEL_PSD in SCS). Requires use_openmp and use_lapack. Only faster when BLAS runs on one thread inside the threads of SCS, so read the SCS documentation on BLAS and LAPACK before enabling it')
option('sdist_mode', type: 'boolean', value: false,
description: 'Set to true if building an sdist')
option('use_lapack', type: 'boolean',
value: true, description: 'use LAPACK')
option('use_singleprec', type: 'boolean',
value: false, description: 'use single precision floating point')
option('use_extraverbose', type: 'boolean',
value: false, description: 'Enable extra verbose SCS (for debugging).')
option('use_gpu', type: 'boolean',
value: false, description: 'setup the GPU variant')
option('int32', type: 'boolean',
value: false, description: 'Use 32-bit integers (required for GPU).')
option('gpu_atrans', type: 'boolean',
value: false, description: 'transpose matrices for the GPU')
option('use_blas64', type: 'boolean',
value: false, description: 'Use 64-bit convention for BLAS')
option('native_arch', type: 'boolean',
value: false, description: 'Compile with -march=native for the current CPU. Improves performance but produces non-portable binaries. Enable when building from source for local use.')
option('use_spectral_cones', type: 'boolean',
value: false, description: 'Build with spectral cone support (logdet, nuclear norm, ell1, sum-of-largest). Requires LAPACK.')
option('mkl_static_prefix', type: 'string', value: '',
description: 'Prefix holding Intel MKL static archives (<prefix>/lib/libmkl_*.a, e.g. from the mkl-static PyPI wheel). Builds _scs_mkl with MKL linked statically and hidden while every other extension uses the platform BLAS: the x86-64 Linux wheel configuration.')
# The threading layer of the static MKL in _scs_mkl (only with mkl_static_prefix).
# 'sequential' (the default, and the wheel) runs MKL Pardiso and the LAPACK
# calls of the PSD projection on one thread and adds no OpenMP runtime to the
# module. 'gnu_thread' links libmkl_gnu_thread.a and GCC's libgomp, so MKL
# Pardiso (reordering, factorization, and the solve that runs every iteration)
# and MKL's BLAS and LAPACK use MKL_NUM_THREADS / OMP_NUM_THREADS threads. With
# use_openmp, SCS's own OpenMP code is on the same libgomp, so MKL called inside
# a parallel region of SCS (use_parallel_psd) runs on one thread instead of
# starting threads of its own. Tradeoff: faster on large linear systems and
# large PSD blocks, possibly slower on small problems (a parallel solve every
# iteration costs thread start-up), and the module needs libgomp at run time,
# so a wheel would have to vendor it. Requires GCC.
option('mkl_static_threading', type: 'combo', choices: ['sequential', 'gnu_thread'],
value: 'sequential',
description: 'Threading layer of the static MKL (mkl_static_prefix): sequential (default) or gnu_thread (MKL threads on GCC\'s libgomp, shared with SCS\'s OpenMP). Requires GCC.')