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.
29280 Discussions

Excessive cpu consumption by compiler

Chris_Payne
Beginner
462 Views

I'm using the ia32 and intel64 compilers, version 11.1.059, on RHEL 5. Compiler parameters are-traceback-f77rtl -save -vms -align norecords -align dcommons -warn noalign -fpic -extend-source. The following source uses at least 5 cpu minutes to compile. I killed it at that point, so I don't know how long it would run. The combination of a structure member with initialization and the array size cause the problem. Is this a bug in the compiler, or is there something I can do other than changing the code?

program slowcomp
implicit none

structure /x/
character*8 xx/'init'/ !Problem line
end structure

record/x/ xx(100000) !Problem line

write (6,*) 'hw'

end program

0 Kudos
1 Reply
Steven_L_Intel1
Employee
462 Views

It's not a bug, per se, but the current design for data initialization has some cases where it can cause very long compile time, and this is one of them. I suggest replacing this with run-time initialization, like this:

program slowcomp
implicit none

structure /x/
character*8 xx
end structure

record/x/ xx(100000) !Problem line

xx = x('init')

write (6,*) xx(10)

end program

Improving this is on our list.

0 Kudos
Reply