serving icon indicating copy to clipboard operation
serving copied to clipboard

bazel GPU build error with fatal error: external/nccl_archive/src/nccl.h: No such file or directory

Open cheyang opened this issue 9 years ago • 44 comments

We are trying to build Tensorflow Serving 0.5.1 with TensorFlow 1.0.0@07bb8ea

Basing on CUDA 7.5, cuDNN 5. Bazel 0.4.4

cd serving && bazel build -c opt --config=cuda tensorflow_serving/...
ERROR: /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe0160
8c/external/org_tensorflow/tensorflow/contrib/nccl/BUILD:23:1: C++ c
ompilation of rule '@org_tensorflow//tensorflow/contrib/nccl:python/
ops/_nccl_ops.so' failed: crosstool_wrapper_driver_is_not_gcc failed
: error executing command external/local_config_cuda/crosstool/clang
/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTI
FY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-paramete
r ... (remaining 76 argument(s) skipped): com.google.devtools.build.
lib.shell.BadExitStatusException: Process exited with status 1.
In file included from external/org_tensorflow/tensorflow/contrib/ncc
l/kernels/nccl_manager.cc:15:0:
external/org_tensorflow/tensorflow/contrib/nccl/kernels/nccl_manager
.h:23:44: fatal error: external/nccl_archive/src/nccl.h: No such fil
e or directory
 #include "external/nccl_archive/src/nccl.h"
                                            ^
compilation terminated.
INFO: Elapsed time: 147.378s, Critical Path: 107.11s

I'm able to find nccl.h, but it can't be found during bazel build. Any suggestions? Thanks in advanced.

find / -name nccl.h
/root/.cache/bazel/_bazel_root/5071e8dca1385fb776f72b33971bf157/exte
rnal/nccl_archive/src/nccl.h
/root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/exte
rnal/nccl_archive/src/nccl.h

cheyang avatar Feb 19 '17 08:02 cheyang

Same error here.

cuda 8.0 cudnn 5.1 bazel 4.2

ERROR: /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/external/org_tensorflow/tensorflow/contrib/nccl/BUILD:23:1: C++ compilation of rule '@org_tensorflow//tensorflow/contrib/nccl:python/ops/_nccl_ops.so' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter ... (remaining 77 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1. In file included from external/org_tensorflow/tensorflow/contrib/nccl/kernels/nccl_manager.cc:15:0: external/org_tensorflow/tensorflow/contrib/nccl/kernels/nccl_manager.h:23:44: fatal error: external/nccl_archive/src/nccl.h: No such file or directory compilation terminated.

Any solutions?

tvkpz avatar Feb 19 '17 13:02 tvkpz

@ kirilg,can you help take a quick look at this issue? Thank you.

cheyang avatar Feb 23 '17 23:02 cheyang

same here 2017-02-24 1 05 02

kinhunt avatar Feb 24 '17 05:02 kinhunt

To get around it you can comment out the DEP for nccl in: tensorflow/tensorflow/contrib/BUILD

Line 42 iirc

jlertle avatar Feb 24 '17 05:02 jlertle

Thanks, @jlertle

cheyang avatar Feb 25 '17 02:02 cheyang

Thanks @jlertle.

sskgit avatar Feb 25 '17 05:02 sskgit

which line in: tensorflow/tensorflow/contrib/BUILD is the DEP for nccl? i can't find it, thanks.

cosastro avatar Mar 24 '17 07:03 cosastro

65: "//tensorflow/contrib/nccl:nccl_py",

I believe...

perdasilva avatar Mar 24 '17 09:03 perdasilva

It was moved into a Windows check but the referenced path is still having issues resolving during Serving build process on Ubuntu. Bazel stuff.

jlertle avatar Mar 24 '17 13:03 jlertle

I tried a script provided by #318, it works fine

cosastro avatar Mar 27 '17 02:03 cosastro

If you comment it out examples fail, I managed to built it as well but... I get ImportError: cannot import name nccl with a minst example.

Here is the task that fails:

>>>>> # @org_tensorflow//tensorflow/contrib/nccl:python/ops/_nccl_ops.so [action 'Compiling external/org_tensorflow/tensorflow/contrib/nccl/kernels/nccl_manager.cc']
(cd /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/execroot/serving && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
  external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE 
  '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object
   -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -MD 
   -MF bazel-out/local_linux-opt/bin/external/org_tensorflow/tensorflow/contrib/nccl/_objs/python/ops/_nccl_ops.so/external/org_tensorflow/tensorflow/contrib/nccl/kernels/nccl_manager.pic.d
    '-frandom-seed=bazel-out/local_linux-opt/bin/external/org_tensorflow/tensorflow/contrib/nccl/_objs/python/ops/_nccl_ops.so/external/org_tensorflow/tensorflow/contrib/nccl/kernels/nccl_manager.pic.o' -fPIC -DEIGEN_MPL2_ONLY 
  -iquote external/org_tensorflow -iquote bazel-out/local_linux-opt/genfiles/external/org_tensorflow -iquote external/bazel_tools 
  -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -iquote external/nccl_archive 
  -iquote bazel-out/local_linux-opt/genfiles/external/nccl_archive -iquote external/local_config_cuda 
  -iquote bazel-out/local_linux-opt/genfiles/external/local_config_cuda -iquote external/protobuf 
  -iquote bazel-out/local_linux-opt/genfiles/external/protobuf -iquote external/eigen_archive 
  -iquote bazel-out/local_linux-opt/genfiles/external/eigen_archive -iquote external/local_config_sycl
   -iquote bazel-out/local_linux-opt/genfiles/external/local_config_sycl -isystem external/bazel_tools/tools/cpp/gcc3 
   -isystem external/local_config_cuda/cuda -isystem bazel-out/local_linux-opt/genfiles/external/local_config_cuda/cuda
    -isystem external/local_config_cuda/cuda/include -isystem bazel-out/local_linux-opt/genfiles/external/local_config_cuda/cuda/include 
    -isystem external/protobuf/src -isystem bazel-out/local_linux-opt/genfiles/external/protobuf/src -isystem external/eigen_archive 
    -isystem bazel-out/local_linux-opt/genfiles/external/eigen_archive -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare -fno-exceptions '-DGOOGLE_CUDA=1' -msse3 -pthread -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers -c external/org_tensorflow/tensorflow/contrib/nccl/kernels/nccl_manager.cc -o bazel-out/local_linux-opt/bin/external/org_tensorflow/tensorflow/contrib/nccl/_objs/python/ops/_nccl_ops.so/external/org_tensorflow/tensorflow/contrib/nccl/kernels/nccl_manager.pic.o)
ERROR: /root/.cache/bazel/_bazel_root/f8d1071c69ea316497c31e40fe01608c/external/org_tensorflow/tensorflow/contrib/nccl/BUILD:23:1: C++ compilation of rule '@org_tensorflow//tensorflow/contrib/nccl:python/ops/_nccl_ops.so' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter ... (remaining 77 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
In file included from external/org_tensorflow/tensorflow/contrib/nccl/kernels/nccl_manager.cc:15:0:
external/org_tensorflow/tensorflow/contrib/nccl/kernels/nccl_manager.h:23:44: fatal error: external/nccl_archive/src/nccl.h:
 No such file or directory
 #include "external/nccl_archive/src/nccl.h"
                                            ^

I verified that nccl_Archive is fetched and unzipped correctly under .cache dir and from what I see -iquote external/nccl_archive should do the work to include all stuff needed.

skonto avatar Apr 10 '17 13:04 skonto

I solved it by removing the prefix /external/nccl_archive.

skonto avatar Apr 11 '17 11:04 skonto

@skonto removing prefix /external/nccl_archive in files nccl_ops.cc and nccl_manager.h which in folder tensorflow/tensorflow/contrib/nccl/kernels, fix the issue

Lukeisme avatar Apr 14 '17 03:04 Lukeisme

git clone https://github.com/NVIDIA/nccl.git cd nccl/ make CUDA_HOME=/usr/local/cuda

sudo make install sudo mkdir -p /usr/local/include/external/nccl_archive/src sudo ln -s /usr/local/include/nccl.h /usr/local/include/external/nccl_archive/src/nccl.h

perdasilva avatar Jun 02 '17 12:06 perdasilva

I used @perdasilva fix and was able to get it to compile but it fails with the last 10 or so tests. When trying to run the syntaxnet/demo.sh script it looks like it recognizes the GPU (K80) but then dies with a segmentation fault. I did not comment out the nccl_py but instead downloaded the nccl.git above and executed the lines as they were listed - it compiles (fails tests) but compiles. Any idea why I'm getting this segmentation fault?

UPDATE: YOU CAN IGNORE THESE ERRORS, do bazel test ... and then the normal installation as per the guide.

2017-06-29 13:40:28.569661: W external/org_tensorflow/tensorflow/stream_executor/stream.cc:1550] attempting to perform BLAS operation using StreamExecutor without BLAS support
Traceback (most recent call last):
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/__main__/syntaxnet/parser_eval.py", line 161, in <module>
    tf.app.run()
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/__main__/syntaxnet/parser_eval.py", line 157, in main
    Eval(sess)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/__main__/syntaxnet/parser_eval.py", line 130, in Eval
    parser.evaluation['documents'],
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 778, in run
    run_metadata_ptr)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 982, in _run
    feed_dict_string, options, run_metadata)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1032, in _do_run
    target_list, options, run_metadata)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/client/session.py", line 1052, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InternalError: Blas SGEMM launch failed : a.shape=(1, 1040), b.shape=(1040, 64), m=1, n=64, k=1040
	 [[Node: evaluation/while/layer_0/MatMul = MatMul[T=DT_FLOAT, transpose_a=false, transpose_b=false, _device="/job:localhost/replica:0/task:0/gpu:0"](evaluation/while/concat, evaluation/while/layer_0/MatMul/Enter)]]
	 [[Node: evaluation/while/Switch_8/_95 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_156_evaluation/while/Switch_8", tensor_type=DT_STRING, _device="/job:localhost/replica:0/task:0/cpu:0"](^_cloopevaluation/while/feature_4/shape/_61)]]

Caused by op u'evaluation/while/layer_0/MatMul', defined at:
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/__main__/syntaxnet/par
ser_eval.py", line 161, in <module>
    tf.app.run()
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "/home/ubuntu/models/syntaxnet/bazel-
bin/syntaxnet/parser_eval.runfiles/__main__/syntaxnet/parser_eval.py", line 157, in main
    Eval(sess)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/__main__/syntaxnet/parser_eval.py", line 111, in Eval
    evaluation_max_steps=FLAGS.max_steps)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/__main__/syntaxnet/structured_graph_builder.py", line 240, in AddEvaluation
    'features'], n['state'], use_average=self._use_averaging))
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/__main__/syntaxnet/structured_graph_builder.py", line 128, in _BuildSequence
    parallel_iterations=100)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/ops/control_flow_ops.py", line 2623, in while_loop
    result = context.BuildLoop(cond, body, loop_vars, shape_invariants)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/ops/control_flow_ops.py", line 2456, in BuildLoop
    pred, body, original_loop_vars, loop_vars, shape_invariants)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/ops/control_flow_ops.py", line 2406, in _BuildLoop
    body_result = body(*packed_vars_for_body)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/__main__/syntaxnet/structured_graph_builder.py", line 106, in Advance
    return_average=use_average)['logits']
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/__main__/syntaxnet/graph_builder.py", line 353, in _BuildNetwork
    name='layer_%d' % i)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/ops/nn_impl.py", line 263, in relu_layer
    xw_plus_b = nn_ops.bias_add(math_ops.matmul(x, weights), biases)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/ops/math_ops.py", line 1801, in matmul
    a, b, transpose_a=transpose_a, transpose_b=transpose_b, name=name)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/ops/gen_math_ops.py", line 1263, in _mat_mul
    transpose_b=transpose_b, name=name)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
    op_def=op_def)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/framework/ops.py", line 2336, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/home/ubuntu/models/syntaxnet/bazel-bin/syntaxnet/parser_eval.runfiles/org_tensorflow/tensorflow/python/framework/ops.py", line 1228, in __init__
    self._traceback = _extract_stack()

InternalError (see above for traceback): Blas SGEMM launch failed : a.shape=(1, 1040), b.shape=(1040, 64), m=1, n=64, k=1040
	 [[Node: evaluation/while/layer_0/MatMul = MatMul[T=DT_FLOAT, transpose_a=false, transpose_b=false, _device="/job:localhost/replica:0/task:0/gpu:0"](evaluation/while/concat, evaluation/while/layer_0/MatMul/Enter)]]
	 [[Node: evaluation/while/Switch_8/_95 = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_156_evaluation/while/Switch_8", tensor_type=DT_STRING, _device="/job:localhost/replica:0/task:0/cpu:0"](^_cloopevaluation/while/feature_4/shape/_61)]]

INFO:tensorflow:Total processed documents: 0
INFO:tensorflow:Read 0 documents
syntaxnet/demo.sh: line 56:  5721 Segmentation fault      (core dumped) $PARSER_EVAL --input=$INPUT_FORMAT --output=stdout-conll --hidden_layer_sizes=64 --arg_prefix=brain_tagger --graph_builder=structured --task_context=$MODEL_DIR/context.pbtxt --model_path=$MODEL_DIR/tagger-params --slim_model --batch_size=1024 --alsologtostderr
      5722                       (core dumped) | $PARSER_EVAL --input=stdin-conll --output=stdout-conll --hidden_layer_sizes=512,512 --arg_prefix=brain_parser --graph_builder=structured --task_context=$MODEL_DIR/context.pbtxt --model_path=$MODEL_DIR/parser-params --slim_model --batch_size=1024 --alsologtostderr
      5723                       (core dumped) | bazel-bin/syntaxnet/conll2tree --task_context=$MODEL_DIR/context.pbtxt --alsologtostderr

tomodachi21 avatar Jun 29 '17 13:06 tomodachi21

These are the tests that fail:

INFO: Elapsed time: 3887.699s, Critical Path: 336.62s
//syntaxnet:arc_standard_transitions_test                                PASSED in 0.1s
//syntaxnet:binary_segment_state_test                                    PASSED in 0.1s
//syntaxnet:binary_segment_transitions_test                              PASSED in 0.1s
//syntaxnet:char_ngram_string_extractor_test                             PASSED in 0.1s
//syntaxnet:char_properties_test                                         PASSED in 0.1s
//syntaxnet:char_shift_transitions_test                                  PASSED in 0.1s
//syntaxnet:head_transitions_test                                        PASSED in 0.1s
//syntaxnet:label_transitions_test                                       PASSED in 0.1s
//syntaxnet:morphology_label_set_test                                    PASSED in 0.1s
//syntaxnet:once_transitions_test                                        PASSED in 0.1s
//syntaxnet:parser_features_test                                         PASSED in 0.1s
//syntaxnet:segmenter_utils_test                                         PASSED in 0.0s
//syntaxnet:sentence_features_test                                       PASSED in 0.1s
//syntaxnet:shared_store_test                                            PASSED in 0.3s
//syntaxnet:tagger_transitions_test                                      PASSED in 0.1s
//syntaxnet/util:check_test                                              PASSED in 1.7s
//syntaxnet/util:registry_test                                           PASSED in 1.7s
//syntaxnet:whole_sentence_features_test                                 PASSED in 0.1s
//util/utf8:unicodetext_unittest                                         PASSED in 0.1s
//syntaxnet:beam_reader_ops_test                                         FAILED in 19.3s
  /tmp/bazeltemp/_bazel_root/496ef57d77987a9f471821c181b6cf0f/execroot/__main__/bazel-out/local_linux-opt/testlogs/syntaxnet/beam_reader_ops_test/test.log
//syntaxnet:graph_builder_test                                           FAILED in 14.9s
  /tmp/bazeltemp/_bazel_root/496ef57d77987a9f471821c181b6cf0f/execroot/__main__/bazel-out/local_linux-opt/testlogs/syntaxnet/graph_builder_test/test.log
//syntaxnet:lexicon_builder_test                                         FAILED in 3.3s
  /tmp/bazeltemp/_bazel_root/496ef57d77987a9f471821c181b6cf0f/execroot/__main__/bazel-out/local_linux-opt/testlogs/syntaxnet/lexicon_builder_test/test.log
//syntaxnet:parser_trainer_test                                          FAILED in 14.2s
  /tmp/bazeltemp/_bazel_root/496ef57d77987a9f471821c181b6cf0f/execroot/__main__/bazel-out/local_linux-opt/testlogs/syntaxnet/parser_trainer_test/test.log
//syntaxnet:reader_ops_test                                              FAILED in 8.5s
  /tmp/bazeltemp/_bazel_root/496ef57d77987a9f471821c181b6cf0f/execroot/__main__/bazel-out/local_linux-opt/testlogs/syntaxnet/reader_ops_test/test.log
//syntaxnet:text_formats_test                                            FAILED in 5.6s
  /tmp/bazeltemp/_bazel_root/496ef57d77987a9f471821c181b6cf0f/execroot/__main__/bazel-out/local_linux-opt/testlogs/syntaxnet/text_formats_test/test.log

Executed 25 out of 25 tests: 19 tests pass and 6 fail locally.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.

tomodachi21 avatar Jun 29 '17 14:06 tomodachi21

UDPATE: Looks like you can ignore the above updates - the segmentation fault is being caused by the out-of-memory GPU crashing. You can easily fix this by replacing the lines in the models/syntaxnet/syntaxnet/parser_eval.py in the Main() function call to this:

gpu_opt = tf.GPUOptions(allow_growth=True)
with tf.Session(config=tf.ConfigProto(gpu_options=gpu_opt)) as sess:
    Eval(sess)

Thanks to @utkrist https://github.com/tensorflow/models/issues/173

I will post a little step-by-step for those who are looking at this - spent probably 2 days recompiling this (takes about 2-3 hrs each time you compile it... really ridiculous Google has not provided instructions on GPU integration. Now that being said - one more question hopefully someone more advanced can help with. https://github.com/tensorflow/models/issues/173

Even though it runs with the GPU it looks like it may error out or crash after completion?

INFO:tensorflow:Processed 1 documents
INFO:tensorflow:Total processed documents: 1
INFO:tensorflow:num correct tokens: 0
INFO:tensorflow:total tokens: 6
INFO:tensorflow:Seconds elapsed in evaluation: 1.30, eval metric: 0.00%
INFO:tensorflow:Processed 1 documents
INFO:tensorflow:Total processed documents: 1
INFO:tensorflow:num correct tokens: 1
INFO:tensorflow:total tokens: 6
INFO:tensorflow:Seconds elapsed in evaluation: 1.59, eval metric: 16.67%
INFO:tensorflow:Read 1 documents
Input: why are you looking at me
Parse:
looking VBG ROOT
 +-- why WRB advmod
 +-- are VBP aux
 +-- you PRP nsubj
 +-- at IN prep
     +-- me PRP pobj
syntaxnet/demo.sh: line 56: 32245 Segmentation fault      (core dumped) $PARSER_EVAL --input=$INPUT_FORMAT --output=stdout-conll --hidden_layer_sizes=64 --arg_prefix=brain_tagger --graph_builder=structured --task_context=$MODEL_DIR/context.pbtxt --model_path=$MODEL_DIR/tagger-params --slim_model --batch_size=1024 --alsologtostderr
     32246                       (core dumped) | $PARSER_EVAL --input=stdin-conll --output=stdout-conll --hidden_layer_sizes=512,512 --arg_prefix=brain_parser --graph_builder=structured --task_context=$MODEL_DIR/context.pbtxt --model_path=$MODEL_DIR/parser-params --slim_model --batch_size=1024 --alsologtostderr
     32247                       (core dumped) | bazel-bin/syntaxnet/conll2tree --task_context=$MODEL_DIR/context.pbtxt --alsologtostderr

tomodachi21 avatar Jun 29 '17 16:06 tomodachi21

One final question - for anyone who might be an expert user out there. It looks like the annotator is working correctly through the script but I noticed that it takes a long time to actually load the models - not that long to actually evaluate the sentence itself.

Is there a way to keep the model loaded and then pass new lines of text to it. I know that you can pass it a file with multiple lines but I want to keep the thread hanging in the background and be able to pass strings into it. Not sure if this is possible but would really appreciate anyone's guidance on the matter.

Thanks!

tomodachi21 avatar Jun 29 '17 16:06 tomodachi21

I'm still getting crashes because of cuda out of memory errors. Even after using: gpu_opt = tf.GPUOptions(allow_growth=True) I'm compiling with bazel 0.5.4 and my GPU is a NVIDIA1080TI

zerodarkzone avatar Dec 20 '17 22:12 zerodarkzone

@perdasilva I tried to install NCCL 2*, the latest version, but the tensorflow can not locate the NCCL. Have you tried the version 2? Thanks!

xiaoleihuang avatar Apr 16 '18 15:04 xiaoleihuang