tutorials_example_trainer的構建在發佈模式(-c opt)下正常工作,但在調試模式下失敗(-c dbg)。tutorials_example_trainer在調試模式下失敗(-c dbg)
有沒有人遇到過這個?這似乎是一個錯誤。
命令我運行:
bazel build -c dbg --config=cuda //tensorflow/cc:tutorials_example_trainer --verbose_failures
的生成失敗,消息如下:
/usr/include/c++/4.8/mutex(125) (col. 5): error: calling a host function("std::mutex_base::__mutex_base [subobject]") from a __device function("std::mutex::mutex") is not allowed
<一些警告>
1 error detected in the compilation of "/tmp/tmpxft_00005e78_00000000-10_cwise_op_gpu_log.cu.compute_52.cpp1.ii". ERROR: /home/uriv/git/tensorflow/tensorflow/tensorflow/core/BUILD:248:1: output 'tensorflow/core/_objs/gpu_kernels/tensorflow/core/kernels/cwise_op_gpu_log.cu.pic.o' was not created. ERROR: /home/uriv/git/tensorflow/tensorflow/tensorflow/core/BUILD:248:1: not all outputs were created.
感謝。