Issue 1:
Please go to Stack Overflow for help and support:

https://stackoverflow.com/questions/tagged/tensorflow

If you open a GitHub issue, here is our policy:

It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).

The form below must be filled out.

It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):no

OS Platform and Distribution (e.g., Linux Ubuntu 16.04):Linux Ubuntu 16.04

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:

TensorFlow installed from (source or binary): source

TensorFlow version (use command below):1.11 and master

Python version:2.7,3.5,3.6

Bazel version (if compiling from source):0.16

GCC/Compiler version (if compiling from source):4.8

CUDA/cuDNN version:9.0/9.2,7.2

GPU model and memory:various

Exact command to reproduce: compile with verbs

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.

It seems this static member functions (static void tensorflow::RdmaMgr::RegMemVisitors()) try to directly access non-static member (RdmaAdapter rdma_adapter_;)*

ERROR: /tensorflow/tensorflow/contrib/verbs/BUILD:105:1: C++ compilation of rule '//tensorflow/contrib/verbs:rdma_mgr' failed (Exit 1)

In file included from tensorflow/contrib/verbs/rdma_mgr.cc:18:0:

./tensorflow/contrib/verbs/rdma_mgr.h: In static member function 'static void tensorflow::RdmaMgr::RegMemVisitors()':

./tensorflow/contrib/verbs/rdma_mgr.h:50:16: error: invalid use of member 'tensorflow::RdmaMgr::rdma_adapter_' in static member function

RdmaAdapter* rdma_adapter_;

^

tensorflow/contrib/verbs/rdma_mgr.cc:282:40: error: from this location

int32_t bus_id = TryToReadNumaNode(rdma_adapter_->context_->device) + 1;

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

Issue 2:
Please go to Stack Overflow for help and support:

https://stackoverflow.com/questions/tagged/tensorflow

If you open a GitHub issue, here is our policy:

It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).

The form below must be filled out.

It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): NO

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04 and CentOS 7.5

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:

TensorFlow installed from (source or binary): build from source

TensorFlow version (use command below): Master and v1.11-rc2

Python version: 2.7 and 3.5

Bazel version (if compiling from source): 0.16

GCC/Compiler version (if compiling from source): 4.8.5

CUDA/cuDNN version: CUDA 9.1 and 9.2, cuDNN 7.2

GPU model and memory: P100, Titan V

Exact command to reproduce: Enable VERBS in config

Then, bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

In latest master (9/26), used following to compile:

bazel build --config=opt --config=cuda --config=verbs //tensorflow/tools/pip_package:build_pip_package

Same error message as described blow.

You can collect some of this information using our environment capture script:

https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh

You can obtain the TensorFlow version with

python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"

Describe the problem

Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.

Same environment can build 1.10 successfully, but failed on 1.11

It seems this static member functions (static void tensorflow::RdmaMgr::RegMemVisitors()) try to directly access non-static member (RdmaAdapter* rdma_adapter_;)

ERROR: /home/ai/tensorflow/tensorflow/contrib/verbs/BUILD:105:1: C++ compilation of rule '//tensorflow/contrib/verbs:rdma_mgr' failed (Exit 1)

In file included from tensorflow/contrib/verbs/rdma_mgr.cc:18:0:

./tensorflow/contrib/verbs/rdma_mgr.h: In static member function 'static void tensorflow::RdmaMgr::RegMemVisitors()':

./tensorflow/contrib/verbs/rdma_mgr.h:50:16: error: invalid use of member 'tensorflow::RdmaMgr::rdma_adapter_' in static member function

RdmaAdapter* rdma_adapter_;

^

tensorflow/contrib/verbs/rdma_mgr.cc:282:40: error: from this location

int32_t bus_id = TryToReadNumaNode(rdma_adapter_->context_->device) + 1;

Source code / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.