-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
40 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef _OMP_SUPPORT_H | ||
#define _OMP_SUPPORT_H | ||
|
||
#ifdef OMP_MULTITHREADED | ||
#include <omp.h> // omp_set_num_threads, omp_get_thread_num | ||
#else | ||
#define omp_get_thread_num() 0 | ||
#define omp_set_num_threads(x) 0 | ||
#define omp_get_max_threads() 1 | ||
#endif | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
option('blas', type: 'string', value: 'auto', | ||
description: 'Option for BLAS library selection. By default, try to find any in the order given by `blas-order`') | ||
option('lapack', type: 'string', value: 'auto', | ||
description: 'Option for LAPACK library selection. By default, try to find any in the order given by `lapack-order`') | ||
option('allow-noblas', type: 'boolean', value: false, | ||
description: 'If set to true, allow building with (slow!) internal fallback routines') | ||
option('blas-order', type: 'array', | ||
value: ['accelerate', 'openblas', 'mkl', 'flexiblas', 'blis', 'blas']) | ||
option('lapack-order', type: 'array', | ||
value: ['accelerate', 'openblas', 'mkl', 'flexiblas', 'lapack']) | ||
option('blas-symbol-suffix', type: 'string', value: 'auto', | ||
description: 'BLAS and LAPACK symbol suffix to use, if any') | ||
option('use-ilp64', type: 'boolean', value: false, | ||
description: 'Use ILP64 (64-bit integer) BLAS and LAPACK interfaces') | ||
option('use_openmp', type : 'boolean', value : false, description : 'Whether to compile with OpenMP support') | ||
# option('blas', type: 'string', value: 'auto', | ||
# description: 'Option for BLAS library selection. By default, try to find any in the order given by `blas-order`') | ||
# option('lapack', type: 'string', value: 'auto', | ||
# description: 'Option for LAPACK library selection. By default, try to find any in the order given by `lapack-order`') | ||
# option('allow-noblas', type: 'boolean', value: false, | ||
# description: 'If set to true, allow building with (slow!) internal fallback routines') | ||
# option('blas-order', type: 'array', | ||
# value: ['accelerate', 'openblas', 'mkl', 'flexiblas', 'blis', 'blas']) | ||
# option('lapack-order', type: 'array', | ||
# value: ['accelerate', 'openblas', 'mkl', 'flexiblas', 'lapack']) | ||
# option('blas-symbol-suffix', type: 'string', value: 'auto', | ||
# description: 'BLAS and LAPACK symbol suffix to use, if any') | ||
# option('use-ilp64', type: 'boolean', value: false, | ||
# description: 'Use ILP64 (64-bit integer) BLAS and LAPACK interfaces') | ||
# option('use_nanobind', type: 'boolean', value: false, | ||
# description: 'whether to create the bindings with nanobind') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters