Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29297 Discussions

size limit of common block or variable in VF

onlineqa
Beginner
1,104 Views
Hi, there,
I'm trying to compile in Compaq Visual Fortran (V6) an old (F77) code which requires quite a lot of memory. It worked fine on Unix machines. And, I always got same errorassociated witha few arrays, "A common block or variable may not exceed 2147483647 bytes". Is there anyway I can set the limit to something larger?
Thank you very much for your kind help!
JZ
0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,104 Views
Um, buy an Itanium system? That's 2GB, which is the limit of process address space in 32-bit Windows. Your UNIX system may have been a 64-bit system.
0 Kudos
onlineqa
Beginner
1,104 Views

Thank you, Steve. Your explain made sense to me. Yes, the Unix are 64-bit machines. Maybe another alternative is to upgrade the code to F90/F95, which can do dynamic allocation.Is there a limit associated with that too?

Thanks.

JZ

0 Kudos
Steven_L_Intel1
Employee
1,104 Views
Same limit. 32-bit Windows does not allow you to address more than 2GB of data. How big do you need it to be? Some Windows variants can be configured to expand that to 3GB, but you'd then have to use dynamic allocation and I couldn't guarantee that it would work.
0 Kudos
onlineqa
Beginner
1,104 Views

I see. That's too bad. The actualsize of the array will vary with the problems we are trying to solve. So, we usually give a definitely big enough size in the code. Guess we will have to find another solver or something.

Thank you very much for your help!

JZ

0 Kudos
Reply