Skip to content

Commit

Permalink
pybamm-team#3646 set parallel jobs for pybamm_install_odes
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Dec 22, 2023
1 parent 3dc8c8c commit 139e34d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pybamm/install_odes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import sys
import logging
import subprocess
from multiprocessing import cpu_count

from pybamm.util import root_dir

Expand All @@ -16,6 +17,8 @@
except ModuleNotFoundError:
NO_WGET = True

# Build in parallel wherever possible
os.environ["CMAKE_BUILD_PARALLEL_LEVEL"] = str(cpu_count())

def download_extract_library(url, directory):
# Download and extract archive at url
Expand Down

0 comments on commit 139e34d

Please sign in to comment.