Install libopensm-dev by entering the following commands in the terminal:
sudo apt update sudo apt install libopensm-dev
Header files for compiling against libopensm
OpenSM provides an implementation of an InfiniBand Subnet Manager (SM) and Administrator (SA). One Subnet Manager is required to run on each InfiniBand subnet in order to initialize the InfiniBand hardware. . This package contains the header files for compiling applications against libopensm.