Centos 7中的Theano有错误位/ c ++ config.h:没有这样的文件或目录

时间:2017-03-23 17:10:03

标签: python c++ theano theano-cuda

我收到了错误:

Problem occurred during compilation with the command line below:
/usr/bin/g++ -shared -g -O3 -fno-math-errno -Wno-unused-label -Wno-unused-variable -Wno-write-strings -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -fPIC -I/scratch/user/tools/anaconda2/lib/python2.7/site-packages/numpy/core/include -I/scratch/user/tools/anaconda2/include/python2.7 -I/scratch/user/tools/anaconda2/lib/python2.7/site-packages/theano/gof -L/scratch/user/tools/anaconda2/lib -fvisibility=hidden -o /home/user/.theano/compiledir_Linux-3.10-el7.x86_64-x86_64-with-centos-7.3.1611-Core-x86_64-2.7.13-64/tmpAKnaE0/d16654b784f584f17fdc481825fd2cca.so /home/user/.theano/compiledir_Linux-3.10-el7.x86_64-x86_64-with-centos-7.3.1611-Core-x86_64-2.7.13-64/tmpAKnaE0/mod.cpp -lpython2.7

['nvcc', '-shared', '-O3', '-m64', '-Xcompiler', '-DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,-fPIC,-fvisibility=hidden', '-Xlinker', '-rpath,/home/user/.theano/compiledir_Linux-3.10-el7.x86_64-x86_64-with-centos-7.3.1611-Core-x86_64-2.7.13-64/cuda_ndarray', '-I/scratch/user/tools/anaconda2/lib/python2.7/site-packages/theano/sandbox/cuda', '-I/scratch/user/tools/anaconda2/lib/python2.7/site-packages/numpy/core/include', '-I/scratch/user/tools/anaconda2/include/python2.7', '-I/scratch/user/tools/anaconda2/lib/python2.7/site-packages/theano/gof', '-L/scratch/user/tools/anaconda2/lib', '-o', '/home/user/.theano/compiledir_Linux-3.10-el7.x86_64-x86_64-with-centos-7.3.1611-Core-x86_64-2.7.13-64/cuda_ndarray/cuda_ndarray.so', 'mod.cu', '-lcublas', '-lpython2.7', '-lcudart']

In file included from /home/user/.theano/compiledir_Linux-3.10-el7.x86_64-x86_64-with-centos-7.3.1611-Core-x86_64-2.7.13-64/tmpAKnaE0/mod.cpp:2:0:
/usr/include/c++/4.8.2/iostream:38:28: fatal error: bits/c++config.h: No such file or directory
 #include 
                            ^
compilation terminated.

在使用Cuda 8.0在Centos 7上安装theano Theano(0.9.0)之后。看起来无法找到bits / c ++ config.h。但是,它已在/ usr / include / c ++ / 4.8.5 / i686-redhat-linux / bits /

中编译
atomic_word.h  c++allocator.h  c++io.h      cpu_defines.h  ctype_inline.h   error_constants.h  gthr-default.h  gthr-posix.h   messages_members.h  os_defines.h  stdtr1c++.h
basic_file.h   c++config.h     c++locale.h  ctype_base.h   cxxabi_tweaks.h  extc++.h           gthr.h          gthr-single.h  opt_random.h        stdc++.h      time_members.h

由于

0 个答案:

没有答案