diff options
author | Robert Underwood <robertu94@users.noreply.github.com> | 2021-01-07 15:58:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 14:58:33 -0600 |
commit | 2f19346c9af459770aa879d2ee0b9dfde6ddbaff (patch) | |
tree | b8df257ecb861c0dd5d6854c0328a470cd8dd270 /var | |
parent | b6e32a265b74881bedc872143361d629c67935c8 (diff) | |
download | spack-2f19346c9af459770aa879d2ee0b9dfde6ddbaff.tar.gz spack-2f19346c9af459770aa879d2ee0b9dfde6ddbaff.tar.bz2 spack-2f19346c9af459770aa879d2ee0b9dfde6ddbaff.tar.xz spack-2f19346c9af459770aa879d2ee0b9dfde6ddbaff.zip |
py-scikit-learn: do parallel builds of C extension (#20733)
Enabled parallel builds of the C-extension upto the parallelism allowed
by spack.
https://scikit-learn.org/stable/developers/advanced_installation.html#parallel-builds
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-scikit-learn/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-scikit-learn/package.py b/var/spack/repos/builtin/packages/py-scikit-learn/package.py index a580f35a54..b1fb4bfe9f 100644 --- a/var/spack/repos/builtin/packages/py-scikit-learn/package.py +++ b/var/spack/repos/builtin/packages/py-scikit-learn/package.py @@ -62,6 +62,9 @@ class PyScikitLearn(PythonPackage): conflicts('~openmp', when='@:999', msg='Only master supports ~openmp') def setup_build_environment(self, env): + # enable parallel builds of the sklearn backend + env.append_flags("SKLEARN_BUILD_PARALLEL", str(make_jobs)) + # https://scikit-learn.org/stable/developers/advanced_installation.html#building-from-source if self.spec.satisfies('~openmp'): env.set('SKLEARN_NO_OPENMP', 'True') |