[f2py] Array size in fortran / DLL load error

Torppa Johanna johanna.torppa at gtk.fi
Tue Dec 15 10:19:47 EET 2009


No, it should not be even close to it. Not even with double precision, when one element takes 8 bytes.

Bw, Johanna 

-----Original Message-----
From: f2py-users-bounces at cens.ioc.ee [mailto:f2py-users-bounces at cens.ioc.ee] On Behalf Of David Gregory
Sent: 14. joulukuuta 2009 13:44
To: For users of the f2py program
Subject: Re: [f2py] Array size in fortran / DLL load error

A rather simple suggestion,  but you're not trying to allocate more
than 2 Gb of RAM on a 32 bit Windows machine are you?

On Dec 14, 2009, at 3:14 AM, Torppa Johanna <johanna.torppa at gtk.fi>
wrote:

>
> I think I have asked this before, but the problem still exists, so
> I'll try again.
> When I export the .pyd file created with f2py to Python, I get the
> error message: "ImportError: DLL load failed: invalid access to
> memory location" when trying to run the Python code. The error is
> traced to the line of the Python code where the "export" command is.
>
> The reason seems to be too much array elemets defined in the fortran
> codes since, when I decrease the number of array elements, the
> programs work fine.
> But I need to have large arrays, so there must be some other way to
> solve this problem. Anyone having large arrays, could you tell how
> large do you have and how much elements in all, approximately.
>
> I've got approximately 2,000,000 elements in all, and the largest
> array has 640,000 elements (800,800).
>
> Bw, Johanna Torppa
> _______________________________________________
> f2py-users mailing list
> f2py-users at cens.ioc.ee
> http://cens.ioc.ee/mailman/listinfo/f2py-users

_______________________________________________
f2py-users mailing list
f2py-users at cens.ioc.ee
http://cens.ioc.ee/mailman/listinfo/f2py-users



More information about the f2py-users mailing list