Re: Windows array allocation problem
- From: "James Van Buskirk" <not_valid@xxxxxxxxxxx>
- Date: Sat, 29 Sep 2007 09:09:28 -0600
"Steve Lionel" <steve.lionel@xxxxxxxxx> wrote in message
news:1191077111.204423.325440@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Sep 29, 10:20 am, "James Van Buskirk" <not_va...@xxxxxxxxxxx>
wrote:
Windows does this just to torture you. If you can switch to x64, the
problems may abate temporarily:
Do keep in mind that Windows still has a 2 GB limit for static code
and data. This means that you cannot simply declare a large array in
common or as a local array on an x64 system. Dynamic allocation is the
only way to exceed the 2 GB boundary.
Issues like this are why I was a bit qualified in my assessment of
my suggested fix. Am I correct in assuming that ifort is smart enough to
use 64-bit arithmetic when computing array offsets, even when all the
bounds fit in 32 bits and all the indices are given as 32-bit values?
What happens when a bound gets over 32 bits (I guess that's > 2**31-1,
right?) I suppose the bound given in the ALLOCATE statment has to
be a 64-bit variable of constant. Does this mean that any subsequent
array reference has to have a 64-bit index or array subscript triplet?
Can an automatic array go over the top? Can an array expression do
this? Can an elemental procedure reference do this? What happens
when an assumed shape array gets passed a big actual argument? I
suppose that loops that use 32-bit indices would have problems, but
what about loopless array syntax? What kind of problems have users
reported when trying to get big arrays working in a large, old program?
Do you have a Dr. Fortran article that covers these issues?
--
write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
6.0134700243160014d-154/),(/'x'/)); end
.
- Follow-Ups:
- Re: Windows array allocation problem
- From: Steve Lionel
- Re: Windows array allocation problem
- From: Richard Maine
- Re: Windows array allocation problem
- References:
- Windows array allocation problem
- From: Roy Lewallen
- Re: Windows array allocation problem
- From: James Van Buskirk
- Re: Windows array allocation problem
- From: Steve Lionel
- Windows array allocation problem
- Prev by Date: Re: Windows array allocation problem
- Next by Date: Re: Windows array allocation problem
- Previous by thread: Re: Windows array allocation problem
- Next by thread: Re: Windows array allocation problem
- Index(es):
Relevant Pages
|