编译TensorFlow v1.8.0 cuda / include / cublas_v2.h:没有这样的文件或目录

时间:2018-06-11 09:01:36

标签: tensorflow

当我编译TensorFlow v1.8

ERROR: /work/tensorflow/tensorflow/stream_executor/BUILD:52:1: C++ compilation of rule '//tensorflow/stream_executor:cuda_platform' failed (Exit 1)
tensorflow/stream_executor/cuda/cuda_blas.cc:16:36: fatal error: cuda/include/cublas_v2.h: No such file or directory
compilation terminated.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 119.973s, Critical Path: 43.00s
INFO: 3322 processes, local.
FAILED: Build did NOT complete successfully

我发现/usr/local/cuda/include没有此文件。怎么能得到它?

1 个答案:

答案 0 :(得分:0)

运行bazel clean --expunge,然后再次编译似乎已经为我解决了。

使用bazel 0.15.2编译Tensorflow 1.12.3