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

ALARM portability routine

mferry
Beginner
787 Views
Hi,
The ALARM() portatbility routine works fine under windows but cannot be found in any library under linux (V9.1.037 or V10.1.013). Does any workaround exist?
Thanks,
M. Ferry
0 Kudos
4 Replies
Kevin_D_Intel
Employee
787 Views

The link will succeed on Linux if one compiles with -nus, however, doing so might lead to other issues but worse is the alarm does not function. I do not see a convenient work around right now.

I will investigate the functionality and name decoration further and post again with updated information.

0 Kudos
mferry
Beginner
787 Views
By removing the underscore decoration it could be that the link is made on the alarm function of libc which doesn't have the PROC argument. By the way I've found a reference to a previous similar fix (Feruary12,2003):

Q170420 Portability function ALARM() is not defined in any of the Linux Intel libraries

Thanks,
M. Ferry
0 Kudos
Kevin_D_Intel
Employee
787 Views

Thank you for the earlier issue reference. I too found that and verified we indeed fixed this in an earlier Intel Compiler 7.1 Linux update. I do not know when the functionality was re-lost. It may have happened during the CVF/Intel Fortran merge in the 8.x release timeframe.

You are right about the libc usage with -nus. After closer inspection, the issue with our current 10.1 release is same as Q170420; the alarm function is not included in our Portability library on Linux.

I will keep you updated.

0 Kudos
Kevin_D_Intel
Employee
787 Views

This issue was fixed in the initial 11.0 Release for both Linux and Mac OS X. (Packages: l_cprof_p_11.0.069 - Linux; m_cprof_p_11.0.054 - Mac OS X)

(Internal ref. DPD200045545)
0 Kudos
Reply