5
votes

I'm trying to run quantization model in Tensorflow using Bazel with my Ubuntu 16.04 system.

I ran the following command:

bazel build tensorflow/tools/quantization:quantize_graph

and here is the error:

ERROR: /tensorflow-master/tensorflow/contrib/verbs/BUILD:136:1: C++ compilation of rule '//tensorflow/contrib/verbs:rdma' failed (Exit 1).

In file included from tensorflow/contrib/verbs/rdma.cc:18:0: ./tensorflow/contrib/verbs/rdma.h:21:30: fatal error: infiniband/verbs.h: No such file or directory

compilation terminated.

Target //tensorflow/tools/quantization:quantize_graph failed to build

How can I solve this problem? Thanks in advance!

2

2 Answers

1
votes

Try installing libibverbs-dev using

sudo apt-get update
sudo apt-get install libibverbs-dev
1
votes

installing libibverbs-dev and librdmacm-dev using

sudo apt-get install libibverbs-dev
sudo apt-get install librdmacm-dev