[Numpy-discussion] A memory problem: why does mmap come up in numpy.inner?
Thu Jun 5 07:06:42 CDT 2008
Michael Abshoff wrote:
> Jonathan Wright wrote:
>> ...etc. We needed this for generating the .so library file name for
> Can you elaborate on this a little?
The "we" refered to another project (not numpy) where we needed to
distinguish 32 bit from 64 bit platforms. We have code for picking which
shared library file to use similar to that below. Apologies if I've
confused the issue.
if sys.platform == "linux2":
if platform.architecture() == '32bit':
libfilename = 'libKLT32.so'
if platform.architecture() == '64bit':
libfilename = 'libKLT64.so'
if sys.platform == "win32":
libfilename = 'klt.dll'
_libraries['klt_bin'] = CDLL(
# If you still don't have it you probably have a mac??
More information about the Numpy-discussion