Intel C/C ++ compiler for Linux for Pytrhon extension?

Gerhard Häring gerhard at bigfoot.de
Thu Jan 24 15:27:42 EST 2002


Mike Müller wrote in <7049ba55.0201241145.4be1771f at posting.google.com>:
> I am going to port a numerically intensive application from windows to
> Linux (RH). Right know the numeric part is a Python extension compiled
> with MCVC (which in turn calls DF compiled FORTRAN 90 code).
> 
> I plan to use the Intel C/C++ compiler for Linux because it is
> considerably faster than gcc. The CPU is a Pentium 4 for which this
> complier is optimised.
> 
> Is it possible to write Python extension with the Intel C/C++ compiler
> for Linux?

Sorry I can't give you any HOWTO - I didn't make notes and currently
don't have the Intel compiler installed.

But what you plan to do is certainly possible. A few months ago I
successfully recompiled Python (not just the extensions, the Python
core too) with Intel's compiler on Linux.

> [...] Later on, I plan write some code in C++ using templates. Does
> this compiler support this ...

Sure.

> ... and can I use this C++ code in Python extension?

As long as you remember to expose your module initialization function
with DL_EXPORT, everything should be fine.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))



More information about the Python-list mailing list