diff --git a/src/find_interaction_cluster/install_hipMCL.py b/src/find_interaction_cluster/install_hipMCL.py index 1043e314f7208d707150867de13f4ed48cfad442..ea788a51a701691ab460887fedd766f6a541b059 100644 --- a/src/find_interaction_cluster/install_hipMCL.py +++ b/src/find_interaction_cluster/install_hipMCL.py @@ -9,6 +9,8 @@ Description: Download and install hipMCL import subprocess as sp from pathlib import Path from .config import ConfigGraph +import logging +from ..logging_conf import logging_def def download_hipmcl(outfile: Path): @@ -37,9 +39,13 @@ def compilation(hip_folder: Path): sp.check_call(cmd, shell=True, stderr=sp.STDOUT) -def install_hipmcl(): +def install_hipmcl(logging_level: str = "DISABLE"): """ INstall hipMCL. """ + logging_def(ConfigGraph.results, __file__, logging_level) + logging.info("Downloading and installing hipmcl. If the installation " + "doesn't work, please try to install libopenmpi-dev on your " + "computer") download_hipmcl(ConfigGraph.hip_zip) - compilation(ConfigGraph.get_hip_folder()) \ No newline at end of file + compilation(ConfigGraph.get_hip_folder())