File: README.Debian

package info (click to toggle)
libpsm2 11.2.185-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,544 kB
  • sloc: ansic: 36,650; makefile: 659; sh: 216; asm: 59
file content (60 lines) | stat: -rw-r--r-- 2,385 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
libpsm2 for Debian
-----------------

1) PSM Compatibility Library

When libpsm2-2-compat is installed, the post-installation script triggers
/dev/hfi1_[0-9] if those devices exist. This causes udev to symlink
/dev/ipath to the hfi1 device. This is not performed if /dev/ipath
already exists. Similar actions are taken by the post-remove script to
remove /dev/ipath if it is a symlink.

libpsm2-2-compat installs /usr/lib/libpsm2-2/libpsm_infinipath.so.1, which
is a compatibility library that allows an application compiled with PSM
support to use a PSM2 device via libpsm2-2. Use of this compatibility library
is managed via update-alternatives.

To view the current alternatives selection of libpsm_infinipath.so.1, invoke:

  $ update-alternatives --display libpsm_infinipath.so.1

To change the alternatives selection to libpsm2-2-compat, invoke:

  $ sudo update-alternatives --set libpsm_infinipath.so.1 \
        /usr/lib/libpsm2-2/libpsm_infinipath.so.1

To change the alternatives selection to libpsm-infinipath1, invoke:

  $ sudo update-alternatives --set libpsm_infinipath.so.1 \
        /usr/lib/libpsm1/libpsm_infinipath.so.1.16

Please note that the compatibility library should not be selected during
a build's link stage. Instead, the shared library from libpsm-infinipath1
should be the selected alternative.

As such, the compatibility library is excluded from libpsm2 dh_makeshlibs. A
package that depends upon libpsm-infinipath1-dev will FTBFS if the
compatibility library is selected at build time. This is by design.

2) Predictable RDMA Interface Names

If the host's operating system implements predictable RDMA interface names,
libpsm2 will fail to initialize. This is due to a change in the sysfs path
for hfi devices. Instead of /sys/class/infiniband/hfi1_0, the path will be
something like /sys/class/infiniband/opap129s0.

To correct this problem, edit /lib/udev/rules.d/60-rdma-persistent-naming.rules
and change :
    ACTION=="add", SUBSYSTEM=="infiniband", PROGRAM="rdma_rename %k NAME_FALLBACK"
To:
    ACTION=="add", SUBSYSTEM=="infiniband", PROGRAM="rdma_rename %k NAME_KERNEL"

After rebooting the host and loading the hfi1 kernel module, the path
/sys/class/infiniband/hfi1_0 should be present.

See https://github.com/intel/opa-psm2/issues/43 .


Brian T. Smith

 -- Brian T. Smith <bsmith@systemfabricworks.com> Tue, 10 Sep 2019 10:01:09 -0500