我的ifort和icc、mkl来自intel2019u1,系统自带的python2的numpy太老没有f2py,更新numpy之后f2py可用。
按照https://gitlab.com/jxzou/mokit/-/blob/master/README_zh.md的说明进行编译:
cd mokit/src/
make all
报错如下:
build_src: building npy-pkg config files
running build_ext
Found executable /opt/intel2019u1/compilers_and_libraries_2019.1.144/linux/bin/intel64/icc
Could not locate executable ecc 【这句报错有影响吗?没查到ecc】
customize IntelEM64TCCompiler
C compiler: icc -m64 -fPIC -fp-model strict -O3 -fomit-frame-pointer -qopenmp
creating /tmp/tmp9TvcbJ/tmp
creating /tmp/tmp9TvcbJ/tmp/tmp9TvcbJ
compile options: '-MMD -MF /tmp/tmp9TvcbJ/file.c.d -c'
icc: /tmp/tmp9TvcbJ/file.c
customize IntelEM64TCCompiler using build_ext
customize IntelEM64TFCompiler
Found executable /opt/intel2019u1/compilers_and_libraries_2019.1.144/linux/bin/intel64/ifort
customize IntelEM64TFCompiler using build_ext
building 'auto_pair' extension
compiling C sources
C compiler: icc -m64 -fPIC -fp-model strict -O3 -fomit-frame-pointer -qopenmp