verbs_exp.h: No such file or directory

my current environment is as below:

ubuntu16.04

MLNX_OFED_LINUX_5.1-2.3.7.1-ubuntu16.04-x86_64

#ibstatus

Infiniband device ‘mlx5_0’ port 1 status:

default gid: fe80:0000:0000:0000:9a03:9bff:fe83:6562

base lid: 0x0

sm lid: 0x0

state: 1: DOWN

phys state: 3: Disabled

rate: 40 Gb/sec (4X QDR)

link_layer: Ethernet

Infiniband device ‘mlx5_1’ port 1 status:

default gid: fe80:0000:0000:0000:9a03:9bff:fe83:6563

base lid: 0x0

sm lid: 0x0

state: 4: ACTIVE

phys state: 5: LinkUp

rate: 100 Gb/sec (4X EDR)

link_layer: Ethernet

but when i complie some code, there is some errors as below:

​pingpong.h:37:34: fatal error: infiniband/verbs_exp.h: No such file or directory

#include <infiniband/verbs_exp.h>

^

compilation terminated.

In file included from pingpong.c:33:0:

pingpong.h:37:34: fatal error: infiniband/verbs_exp.h: No such file or directory

#include <infiniband/verbs_exp.h>

i find there is only no verbs_exp.h in /usr/include/infiniband, how can i resolve it ?

Hello Liu,

Thank you for posting your inquiry to the Mellanox Community.

The ‘_exp’ suffix denotes an experimental library.

Starting with MLNX_OFED v5.1, we removed support for experimental libraries - these are now supported in the 4.9LTS release chain.

In order to successfully compile your code, either:

  1. Modify the code to work with the upstream libraries (/usr/include/infiniband/verbs.h)

  2. Install MLNX_OFED v4.9LTS in order to continue utilizing experimental libs.

Best regards,

Mellanox Technical Support

i also find when i use ​MLNX_OFED_LINUX_4.6-1.0.1.1-ubuntu16.04-x86_64, i can find verbs_exp.h,so where is verbs_exp.h in MLNX_OFED_LINUX_5.1?

Hi Sam,

I am trying to use the CORE-direct and send-with-calc feature using experimental libraries with connectX-4 card. Do we have a concrete document about how to use them? And is vector send-with-calc support now? How are we supposed to use them? My email is leepengqiu@gmail.com.

You can send to my email if you want. Looking forward to your reply!

Best,

Pengqiu Li