PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

0: ALLOCATE: xxxx bytes requested; not enough memory

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
mariospapa10



Joined: 29 Jun 2010
Posts: 5

PostPosted: Thu Sep 30, 2010 2:22 am    Post subject: 0: ALLOCATE: xxxx bytes requested; not enough memory Reply with quote

When I use Start Debug option to run my code I have no problems. But when I switch to Start without Debugging I get this error "0: ALLOCATE: xxxx bytes requested; not enough memory".

I searched through the forum and I found this threat:
Code:
http://www.pgroup.com/userforum/viewtopic.php?t=2101


I put -Mlarge_arrays option in Fortran's Command Line but when I built my solution it says: "pgfortran-Info-The -Mlarge_arrays switch only applies to 64-bit compilers"

How i can overcome this in 32bit systems?

I'm using PGI Visual Fortran 2010 v10.9 (32bit compiler)
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6072
Location: The Portland Group Inc.

PostPosted: Thu Sep 30, 2010 10:20 am    Post subject: Reply with quote

Hi mariospapa10,

In bguler's case, I believe he was trying to allocate a single array greater than 2GB which simply is allowed in 32-bits. Are you also trying to allocate this large of an array?

Other possible reasons are:

1) Your system ran simply out of memory. This is unlikely but possible.
2) A bogus value is being used for the allocation size. This more likely the cause.

What is the size of the allocation? Is this the expected size?

- Mat
Back to top
View user's profile
mariospapa10



Joined: 29 Jun 2010
Posts: 5

PostPosted: Fri Oct 01, 2010 7:19 am    Post subject: Reply with quote

mkcolg wrote:
Hi mariospapa10,

In bguler's case, I believe he was trying to allocate a single array greater than 2GB which simply is allowed in 32-bits. Are you also trying to allocate this large of an array?

Other possible reasons are:

1) Your system ran simply out of memory. This is unlikely but possible.
2) A bogus value is being used for the allocation size. This more likely the cause.

What is the size of the allocation? Is this the expected size?

- Mat



The size of the allocation is about 10 MBytes!!!
No, the size mentioned on the error message is bigger than 10 Mbytes!!!
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6072
Location: The Portland Group Inc.

PostPosted: Fri Oct 01, 2010 2:03 pm    Post subject: Reply with quote

Hi mariospapa10,

Sorry, I'm not sure then. Can you post and example or send one to PGI Customer Support (trs@pgroup.com)?

Thanks,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group