TomHeaven / tensorflow-osx-build

Off-the-shelf python package of tensorflow with CUDA support for Mac OS.
142 stars 20 forks source link

undeclared inclusion(s) in rule '//tensorflow/core/kernels:nccl_kernels' #9

Closed riverflow closed 5 years ago

riverflow commented 5 years ago

Can you please build your tensorflows with bazel option '--copt=-march=westmere'? I can't build and I can't execute your tensorflows for my Mac Pro 5,1.

In compile process, I got this error many times

ERROR: undeclared inclusion(s) in rule '//tensorflow/core/kernels:nccl_kernels': this rule is missing dependency declarations for the following files included by 'tensorflow/core/kernels/nccl_ops.cc': 'third_party/nccl/nccl.h' tensorflow/core/kernels/nccl_ops.cc:189:15: warning: private field 'reductionop' is not used [-Wunused-private-field] ncclRedOp_t reductionop; ^ 1 warning generated. Target //tensorflow/tools/pip_package:build_pip_package failed to build

When I install your tensorflow version, got 'Illegal instruction: 4' when importing tensorflow

I did ‘git checkout r1.12’ and use python 3.6 (in anaconda)

Sorry for the inconvenience

TomHeaven commented 5 years ago

Try adding a build flag --config=nonccl as follows

bazel build --config=opt --config=nonccl  //tensorflow/tools/pip_package:build_pip_package
TomHeaven commented 5 years ago

Closing due to long time no response. Reopen if needed.