Skip to content
Snippets Groups Projects
Commit 46361dc1 authored by nfontrod's avatar nfontrod
Browse files

src/find_interaction_cluster/install_hipMCL.py: display logging message when...

src/find_interaction_cluster/install_hipMCL.py: display logging message when tring to download and install hipmcl
parent c31e354d
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,8 @@ Description: Download and install hipMCL ...@@ -9,6 +9,8 @@ Description: Download and install hipMCL
import subprocess as sp import subprocess as sp
from pathlib import Path from pathlib import Path
from .config import ConfigGraph from .config import ConfigGraph
import logging
from ..logging_conf import logging_def
def download_hipmcl(outfile: Path): def download_hipmcl(outfile: Path):
...@@ -37,9 +39,13 @@ def compilation(hip_folder: Path): ...@@ -37,9 +39,13 @@ def compilation(hip_folder: Path):
sp.check_call(cmd, shell=True, stderr=sp.STDOUT) sp.check_call(cmd, shell=True, stderr=sp.STDOUT)
def install_hipmcl(): def install_hipmcl(logging_level: str = "DISABLE"):
""" """
INstall hipMCL. 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) download_hipmcl(ConfigGraph.hip_zip)
compilation(ConfigGraph.get_hip_folder()) compilation(ConfigGraph.get_hip_folder())
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment