Search code examples
pythonjupyter-notebookruntime-errorgoogle-colaboratory

How to solve Mismatch between hwloc headers and library, using v1 headers with v2 library on Collab?


I've been using Gromacs on google Colab for more than a year. I've install the Gromacs using https://colab.research.google.com/github/pb3lab/ibm3202/blob/master/tutorials/lab07_MDsims.ipynb this method, it worked pretty smoothly but last night when I ran the cell it, it showed some wired error that I wasn't used to see enter image description here

Then I tried to find the solution online I came across this code

!sudo  ln  -s /usr/lib/x86_64-linux-gnu/libhwloc.so /usr/lib/x86_64-linux-gnu/libhwloc.so.5

Then it worked but when I wanted to run the last cell which it's the actuall MD simulation it needs computation power and gpu I got another error.

Assertion failed: Condition: (hwloc_get_api_version() < 0x20000) Mismatch between hwloc headers and library, using v1 headers with v2 library

and I really don't know how to solve this, and I really need it to work. It would be amazing if you could help me.


Solution

  • I installed the package like this an it worked, thank you guys.

    !wget https://download.open-mpi.org/release/hwloc/v1.11/hwloc-1.11.13.tar.gz
    
    !tar xzf hwloc-1.11.13.tar.gz
    !cd /content/hwloc-1.11.13
    ! /content/hwloc-1.11.13/configure
    !make
    !sudo make install