[SciPy-user] f2py and ifort flags...
fred
fredmfp at gmail.com
Fri May 25 03:58:13 EDT 2007
Pearu Peterson a écrit :
> fred wrote:
>
>> Ok, so how intel.py could guess that I want to add some args such as
>> -limf -Wl,--rpath -Wl,/usr/local/share/intel/fc/9.1.045/lib ?
>> I don't know.
>> In others words, how can I set these args that f2py can understand and
>> take in account ?
>>
>
> At the moment this is not possible via f2py command line.
>
>
Ok, so we agree ;-)
Thanks to have clarified this point.
>> For the fix, I got one.
>> But I guess you won't like it: I have hardcoded it, so it fits only my
>> own needs.
>> This look like this, line 61 of intel.py:
>>
>> opt.append('-limf -Wl,--rpath -Wl,/usr/local/share/intel/fc/9.1.045/lib')
>>
>> I think a real fix should be to set some f2py option like
>> --f90ldflags='...'
>> but this is only my 2 cents...
>>
>
> Yes, I agree. Could you file a numpy issue ticket for this feature and
> sign it to me?
>
No problem.
>
>> Others few notes:
>>
>> - intel.py does not take in account Core 2 Duo CPU, for whose you need to
>> set the '-xT' option.
>>
>
> This flag should be added via cpu.is_Core2() check to .get_arch_flags()
> methods.
>
>
>> - -xM option does not exist anymore in recent ifort release; thus it
>> conflicts
>> with other options, such as -xP, -xT, etc...
>>
>
> Do you know which version of the compiler dropped -xM option? Then
> we can disable it by checking the value of self.get_version().
>
No, but I can ask some people at intel, if there is none here...
Cheers,
--
http://scipy.org/FredericPetit
More information about the SciPy-User
mailing list