If the external dependencies get passed to f2py as already compiled object files though, the linking works fine and the python library gets build without problems.This is a pretty simple makefile and the only real change needed is to change f77 pfg77 to f77 ifort.
Im not sure that ifort will like the -O4 option (O3 is the highest level in documentation for ifort), so you might change that just to make sure you get optimization. There are two other issues not related to the makefile that could be causing you problems. The intel compilers run on the command line require that you run a script to setup the intel environment. Make sure you are running that script before making the project. On linux this is source optintelbincompilervars.sh intel64 for the 64 bit environment and default installation path. Intel Fortran Compiler Ifort. Code Or FindYou may need to tighten up your code or find compiler arguments to relax the compiler, where applicable. To provide any specific help beyond these generalities, the actual errors produced by the compiler or by make need to be provided. Got a question that you cant ask on public Stack Overflow Learn more about sharing private information with Stack Overflow for Teams. ![]() My Fortran compiler is the latest Intel Fortran compiler 64 (version 14.0.0.103 Build 20130728). I have been experiencing a number of issues when executing f2py -c -m PyModule FortranModule.f90 --fcompilerintelvem. The last one, which I cant seem to sort out is that it looks like the sequence of flags f2pydistutils passes to the compiler does not match what ifort expects. I get a series of warning messages regarding unknown options when ifort is invoked. I suspect this is related to the errors I get from the linker at the end. My guess is that this is because the link flag is missing in the sequence of options. Because of this, the l L options are not passed to the linker and the compiler believes these are addressed to him. I have no idea why the -dll is repeated twice (I had to change that flag from an original -shared). Now, I have tried to look into the f2py and distutils codes but havent figured out how to bodge an additional link in the command output. I havent even been able to locate where this output is generated. If anyone has encountered this problem in the past andor may have some suggestions, I would very much appreciate it. I encountered similar problems with my own code some time ago. If I understand the comments correctly you already used the approach that worked for me, so this is just meant as clarification and summary for all those that struggle with f2py and dependencies.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |