Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29231 Discussions

etime? and ifort problem (but not with ifc 7.1)

vincentboucher
Beginner
1,303 Views
Hello

Ifort (8) seems to have a problem when using etime (Vaxlib). This problem didn't occur with ifc version 7.1.

the following error message is

ifort -openmp -O2 -Vaxlib -W0 -WB -fpp2 -c cmbmain.f90
fortcom: Severe: cmbmain.f90, line 158: **Internal compiler error:
segmentation violation signal raised** Please report this error along with
the circumstances in which it occurred in a Software Problem Report. Note:
File and line given may not be explicit cause of this error.
actual=etime(tarray)
................^
compilation aborted for cmbmain.f90 (code 3)
make: *** [cmbmain.o] Error 3

the source code is available at http://camb.info/

Thanks,

Vincent

Message Edited by vincentboucher@hotmail.com on 06-24-2004 07:59 AM

0 Kudos
6 Replies
TimP
Honored Contributor III
1,303 Views

Since you appear to be writing an application intended to run on several platforms, it might make sense to avoid a non-portable function like etime(), when there is a standard alternative, cpu_time(). 10 years ago, of course, etime() would have been a reasonable choice, provided you documented it as system dependent.

It's difficult to follow your source, but you have declared etime() as external. To some compilers, that means "don't look for this in our library." In the Intel compiler documentation, you will see that the preferred way to declare such functions is with

USE IFLPORT

That doesn't exclude the possibility that the compiler may have a bug, particularly in the way library functions are called from internal subroutines. I am trying this out on a beta compiler, and may have a report to file. I would suggest you consider doing the same; there are enough versions of ifort that it would be difficult to guess which one you are using.

0 Kudos
Steven_L_Intel1
Employee
1,303 Views
Which ifort? What does ifort -V display?
I can't find any reports of such a problem - if you are using a current version (8.0.046 or later) and still have the problem, please send an example to Intel Premier Support.
0 Kudos
vincentboucher
Beginner
1,303 Views
"ifort -V" give:

Intel Fortran Compiler for 32-bit applications, Version 8.0 Build 20031016Z Package ID: installpackageid
Copyright (C) 1985-2003 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY


I can't fix the problem with IFLPORT and cpu_time.

Vincent
0 Kudos
vincentboucher
Beginner
1,303 Views
I'm using a debian, the kernel release is 2.4.22-1-386
0 Kudos
Steven_L_Intel1
Employee
1,303 Views
Interesting. Looks as if the compiler isn't installed properly. But I see it is an old one - the initial 8.0 release. If your license allows it, you should download a newer one from Intel Premier Support.
0 Kudos
TimP
Honored Contributor III
1,303 Views

I filed premier issue Q253924 against the 8.1 beta Windows compiler, with respect to this application.

0 Kudos
Reply