[f2py] Getting Intel v10 and f2py to work on Mac OS X (10.4.10)
Louis Wicker
Louis.Wicker at noaa.gov
Fri Jun 22 19:13:21 EEST 2007
All:
This is an FYI, plus a question:
I have gotten the v10 compiler to work on the Mac - with some caveats.
First you need to change you intel.py file in ..../numpy/distutils/
fcompiler
to have the following lines...
# 'linker_so' : [fc_exe,"-shared"],
'linker_so' : [fc_exe,"-m32","-O0","-bundle"],
This creates to 32bit code which is what is needed on the Mac to work
(for now, hopefully) - 64 bit stuff wont load because of the default
python build.
(# is the old line...)
def get_flags_opt(self):
# return ['-m32','-O3','-unroll']
return ['-O3','-unroll']
I still cannot get the version check to work. Pearu - I am sorry,
apparently my mind cannot get past the regex parsing. If I try it
and try to match something,
I get
Couldn't match compiler version for 'Intel(R) Fortran Compiler for
applications running on Intel(R) 64, Version 10.0 Build 20070426
Package ID: m_fc_p_10.0.016\nCopyright (C) 1985-2007 Intel
Corporation. All rights reserved.\n\n Intel Fortran 10.0-1023'
what should the "type" be in the intel_version_match()
Also, probably because of me messing with 32 bit part, I have to add
in the -lpython2.5 library again...e.g., I have use a cmd like
f2py -c test.f90 -m test --fcompiler=intel -L/Library/Frameworks/
Python.framework/Versions/Current/lib/python2.5/config -lpython2.5
any ideas there?
Thanks!
Lou Wicker
------------------------------------------------------------------------
----
| Dr. Louis J. Wicker
| NSSL/WRDD
| National Weather Center
| 120 David L. Boren Boulevard, Norman, OK 73072-7323
|
| E-mail: Louis.Wicker at noaa.gov
| HTTP: www.nssl.noaa.gov/~lwicker
| Phone: (405) 325-6340
| Fax: (405) 325-6780
|
| "Programming is not just creating strings of instructions
| for a computer to execute. It's also 'literary' in that you
| are trying to communicate a program structure to
| other humans reading the code." - Paul Rubin
|
|"Real efficiency comes from elegant solutions, not optimized programs.
| Optimization is always just a few correctness-preserving
transformations
| away." - Jonathan Sobel
------------------------------------------------------------------------
----
|
| "The contents of this message are mine personally and
| do not reflect any position of the Government or NOAA."
|
------------------------------------------------------------------------
----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cens.ioc.ee/pipermail/f2py-users/attachments/20070622/ee369d76/attachment.htm
More information about the f2py-users
mailing list