tutorials_example_trainer的构建在发布模式(-c opt)中运行良好,但在调试模式(-c dbg)中失败。
有人遇到这个了吗?好像是个虫子。
我运行的命令:
bazel build -c dbg --config=cuda //tensorflow/cc:tutorials_example_trainer --verbose_failures生成失败的消息如下:
/usr/include/c++/4.8/mutex(125)5):错误:不允许从function("std::mutex_base::__mutex_base函数(“std::mutex::mutex”)调用主机 subobject")。
<某些warnings>
1 "/tmp/tmpxft_00005e78_00000000-10_cwise_op_gpu_log.cu.compute_52.cpp1.ii".编译中检测到的错误错误:没有创建/home/uriv/git/tensorflow/tensorflow/tensorflow/core/BUILD:248:1:输出'tensorflow/core/_objs/gpu_kernels/tensorflow/core/kernels/cwise_op_gpu_log.cu.pic.o‘。错误: /home/uriv/git/tensorflow/tensorflow/tensorflow/core/BUILD:248:1:没有创建所有的输出。
谢谢。
发布于 2015-12-03 18:46:32
您可以通过编辑来解决问题。
tensorflow/third_party/eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceType.h
并注释掉以下2行代码:
static tensorflow::mutex m_devicePropInitMutex(tensorflow::LINKER_INITIALIZED);
和
tensorflow::mutex_lock l(m_devicePropInitMutex);
我将在短期内向tensorflow存储库推进一个适当的修复。
https://stackoverflow.com/questions/34047152
复制相似问题