[f2py] f2py can't find ifort
Ryan Sobash
rsobash at gmail.com
Thu Jul 17 19:13:26 EEST 2008
On Thu, Jul 17, 2008 at 2:00 AM, Pearu Peterson
<pearu.peterson at gmail.com> wrote:
> On Thu, Jul 17, 2008 at 1:02 AM, Ryan Sobash <rsobash at gmail.com> wrote:
>> Although the output indicates f2py found my ifort executable, it fails
>> by saying it can't find a Fortran compiler. It works fine with
>> gfortran, but I want it to use ifort (the code runs 5x faster compiled
>> with ifort).
>>
>> It's probably something simple...I'm a f2py novice. Below is the
>> output when I run f2py... Thanks!
>>
> ...
>> warning: build_ext: f77_compiler=intel is not available.
>
> What is exactly the f2py command line that you are using?
>
> Pearu
I was able to have f2py use the ifort compiler with the following command:
f2py --f77exec=/opt/intel/fc/10.1.013/bin/ifort -m modulename -c filename.f
Although, when I import the module I get an ImportError:
ImportError: ./probs.so: undefined symbol: for_write_seq_lis
I assume I need to manually link in some libraries?
Thanks!
Ryan
More information about the f2py-users
mailing list