Eu estou em um agrupamento universitário, não é pra mim. Estou tentando fazer o Keras funcionar, seja com o tensorflow ou o theano. O Tensorflow falha porque o sistema tem apenas CUDA 7.5. Ele tem um chipset Intel, mas está me dando problemas com o math.h.
Edit: Depois de algum hacking, decidi compilar o Python 3.5 a partir do código-fonte. E eis que:
gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
In file included from ./Include/pyport.h:328:0,
from ./Include/Python.h:50,
from ./Programs/python.c:3:
/cm/shared/apps/intel/compilers_and_libraries/2016.2.181/compiler/include/math.h:29:3: error: #error "This Intel <math.h> is for use with only the Intel compilers!"
# error "This Intel <math.h> is for use with only the Intel compilers!"
^
make: *** [Programs/python.o] Error 1
O mesmo problema com math.h!
Portanto, parece que este é o problema subjacente ao bug com a instalação do Theano.
VV --- Este foi o meu post original --- VV
Theano, apresenta este erro em import theano
:
traceback completo de pastebin aqui
[despejo da totalidade do lazylinker_c.c]
seguido por
Problem occurred during compilation with the command line below:
/gpfs/software/gcc-4.9.2/bin/g++ -shared -g -march=haswell -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mbmi2 -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mf16c -mfsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mxsave -mxsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=15360 -mtune=generic -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -fPIC -I/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/numpy/core/include -I/gpfs/home/USERNAME/anaconda3/include/python3.5m -I/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/theano/gof -fvisibility=hidden -o /gpfs/home/USERNAME/.theano/compiledir_Linux-2.6-el6.x86_64-x86_64-with-centos-6.6-Final-x86_64-3.5.2-64/lazylinker_ext/lazylinker_ext.so /gpfs/home/USERNAME/.theano/compiledir_Linux-2.6-el6.x86_64-x86_64-with-centos-6.6-Final-x86_64-3.5.2-64/lazylinker_ext/mod.cpp -L/gpfs/home/USERNAME/anaconda3/lib -lpython3.5m
In file included from /gpfs/home/USERNAME/anaconda3/include/python3.5m/pyport.h:13:0,
from /gpfs/home/USERNAME/anaconda3/include/python3.5m/Python.h:50,
from /gpfs/home/USERNAME/.theano/compiledir_Linux-2.6-el6.x86_64-x86_64-with-centos-6.6-Final-x86_64-3.5.2-64/lazylinker_ext/mod.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2016.2.181/compiler/include/stdint.h:79:10: warning: undefining "__STDC_LIMIT_MACROS_DEFINED_BY_CLANG"
# undef __STDC_LIMIT_MACROS_DEFINED_BY_CLANG
^
/cm/shared/apps/intel/compilers_and_libraries/2016.2.181/compiler/include/stdint.h:83:10: warning: undefining "__STDC_CONSTANT_MACROS_DEFINED_BY_CLANG"
# undef __STDC_CONSTANT_MACROS_DEFINED_BY_CLANG
^
In file included from /gpfs/home/USERNAME/anaconda3/include/python3.5m/pyport.h:328:0,
from /gpfs/home/USERNAME/anaconda3/include/python3.5m/Python.h:50,
from /gpfs/home/USERNAME/.theano/compiledir_Linux-2.6-el6.x86_64-x86_64-with-centos-6.6-Final-x86_64-3.5.2-64/lazylinker_ext/mod.cpp:1:
/cm/shared/apps/intel/compilers_and_libraries/2016.2.181/compiler/include/math.h:29:3: error: #error "This Intel <math.h> is for use with only the Intel compilers!"
# error "This Intel <math.h> is for use with only the Intel compilers!"
^
Traceback (most recent call last):
File "/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/theano/gof/lazylinker_c.py", line 74, in <module>
raise ImportError()
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/theano/gof/lazylinker_c.py", line 91, in <module>
raise ImportError()
ImportError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/theano/__init__.py", line 63, in <module>
from theano.compile import (
File "/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/theano/compile/__init__.py", line 9, in <module>
from theano.compile.function_module import *
File "/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/theano/compile/function_module.py", line 22, in <module>
import theano.compile.mode
File "/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/theano/compile/mode.py", line 12, in <module>
import theano.gof.vm
File "/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/theano/gof/vm.py", line 638, in <module>
from . import lazylinker_c
File "/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/theano/gof/lazylinker_c.py", line 126, in <module>
preargs=args)
File "/gpfs/home/USERNAME/anaconda3/lib/python3.5/site-packages/theano/gof/cmodule.py", line 2204, in compile_str
(status, compile_stderr.replace('\n', '. ')))
Exception: Compilation failed (return status=1): In file included from /gpfs/home/USERNAME/anaconda3/include/python3.5m/pyport.h:13:0,. from /gpfs/home/USERNAME/anaconda3/include/python3.5m/Python.h:50,. from /gpfs/home/USERNAME/.theano/compiledir_Linux-2.6-el6.x86_64-x86_64-with-centos-6.6-Final-x86_64-3.5.2-64/lazylinker_ext/mod.cpp:1:. /cm/shared/apps/intel/compilers_and_libraries/2016.2.181/compiler/include/stdint.h:79:10: warning: undefining "__STDC_LIMIT_MACROS_DEFINED_BY_CLANG". # undef __STDC_LIMIT_MACROS_DEFINED_BY_CLANG. ^. /cm/shared/apps/intel/compilers_and_libraries/2016.2.181/compiler/include/stdint.h:83:10: warning: undefining "__STDC_CONSTANT_MACROS_DEFINED_BY_CLANG". # undef __STDC_CONSTANT_MACROS_DEFINED_BY_CLANG. ^. In file included from /gpfs/home/USERNAME/anaconda3/include/python3.5m/pyport.h:328:0,. from /gpfs/home/USERNAME/anaconda3/include/python3.5m/Python.h:50,. from /gpfs/home/USERNAME/.theano/compiledir_Linux-2.6-el6.x86_64-x86_64-with-centos-6.6-Final-x86_64-3.5.2-64/lazylinker_ext/mod.cpp:1:. /cm/shared/apps/intel/compilers_and_libraries/2016.2.181/compiler/include/math.h:29:3: error: #error "This Intel <math.h> is for use with only the Intel compilers!". # error "This Intel <math.h> is for use with only the Intel compilers!". ^.
O Theano foi instalado com conda install theano
.
Não sei bem o que é goofing, mas suspeito que a falta de python-dev
possa estar em jogo.
Informações do sistema:
conda 4.3.13
Python 3.5.2 | Continuum Analytics, Inc. | (padrão, 2 de julho de 2016, 17:53:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] no linux
Digite "help", "copyright", "credits" ou "license" para mais informações.
lsb_release -a
:
Versão LSB:: base-4.0-amd64: base-4.0-noarch: core-4.0-amd64: núcleo-4.0-noarch: graphics-4.0-amd64: graphics-4.0-noarch: impressão-4.0-amd64: impressão -4.0-noarch
ID do Distribuidor: CentOS
Descrição: Lançamento do CentOS 6.6 (Final)
Liberação: 6.6
Codename: Final
uname -r
: 2.6.32-504.16.2.el6.x86_64
Editar: lista de coisas que tentei:
- Upgrade para 0,9:
deeplearning.net/software/theano/install.html#bleeding-edge-install-instructions
(Restrição de reputação de link estúpido!) - mesmo erro
- Adicionado ~ / anaconda3 a
LD_LIBRARY_PATH
Minha intuição é que não é encontrar algo que precise vincular, mas não consigo identificar o que ou como consertar.