<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello Gabriele,<br>
<br>
It is possible that the feature is not enabled on the Arm platform. I see some special handling for X86_64 for this feature.<br>
<br>
<a href="https://github.com/flang-compiler/flang/blob/cb42a171b6462b2f3acd3e1841a56a1ae08291ef/tools/flang2/flang2exe/llassem.cpp#L1129">https://github.com/flang-compiler/flang/blob/cb42a171b6462b2f3acd3e1841a56a1ae08291ef/tools/flang2/flang2exe/llassem.cpp#L1129</a><br>
<br>
--Kiran</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Jost, Gabriele (ARC-TNC)[Supersmith] <gabriele.jost@nasa.gov><br>
<b>Sent:</b> 23 April 2020 19:49<br>
<b>To:</b> Kiran Chandramohan <Kiran.Chandramohan@arm.com><br>
<b>Cc:</b> flang-dev@lists.llvm.org <flang-dev@lists.llvm.org><br>
<b>Subject:</b> Re: [EXTERNAL] Re: arm + denormals</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_xmsonormal, li.x_xmsonormal, div.x_xmsonormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_xxmsonormal, li.x_xxmsonormal, div.x_xxmsonormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle23
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal">Many thanks. I will give this a try. Yes, indeed, it is for the arm platform.</p>
<p class="x_MsoNormal"> </p>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; color:black"> </span></p>
</div>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; color:black">Gabriele Jost</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; color:black"> </span></p>
</div>
<div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; color:black">************************************************************************</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; color:black">Gabriele Jost       NASA Ames Research Center</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; color:black">Email: Gabriele.Jost@nasa.gov      Mail Stop 258-6</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; color:black">Work Phone: (650) 604-0468         Bldg. 258, Rm. 232-4</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; color:black">Scientific & HPC Application           P.O. Box 1</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; color:black">Development/Optimization            Moffett Field, CA 94035-0001</span></p>
</div>
</div>
</div>
</div>
<p class="x_MsoNormal"><span style="font-size:10.5pt; color:black">************************************************************************</span></p>
<p class="x_MsoNormal"> </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b><span style="font-size:12.0pt; color:black">From: </span>
</b><span style="font-size:12.0pt; color:black">Kiran Chandramohan <Kiran.Chandramohan@arm.com><br>
<b>Date: </b>Thursday, April 23, 2020 at 11:37 AM<br>
<b>To: </b>"Jost, Gabriele (ARC-TNC)[Supersmith]" <gabriele.jost@nasa.gov><br>
<b>Cc: </b>"flang-dev@lists.llvm.org" <flang-dev@lists.llvm.org><br>
<b>Subject: </b>Re: [EXTERNAL] Re: arm + denormals</span></p>
</div>
<div>
<p class="x_MsoNormal"> </p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Ahh.<br>
<br>
What about Mflushz? <br>
Also, Is this question specifically for the Arm platform?<br>
<br>
--Kiran</span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Jost, Gabriele (ARC-TNC)[Supersmith] <gabriele.jost@nasa.gov><br>
<b>Sent:</b> 23 April 2020 19:14<br>
<b>To:</b> Kiran Chandramohan <Kiran.Chandramohan@arm.com><br>
<b>Subject:</b> Re: [EXTERNAL] Re: arm + denormals</span> </p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_xmsonormal">Thanks for the reply, Kiran. So, the message comes from the code itself, not from the compiler. There are denormals, but if the compiler could flush those to 0, the code would not detect them, I think. The denormals don’t impact the
 results, just the timings, because the code checks for them.</p>
<p class="x_xmsonormal"> </p>
<div>
<div>
<p class="x_xmsonormal"><span style="font-size:10.5pt; color:black"> </span></p>
</div>
<div>
<div>
<p class="x_xmsonormal"><span style="font-size:10.5pt; color:black">Gabriele Jost</span></p>
</div>
<div>
<p class="x_xmsonormal"><span style="font-size:10.5pt; color:black"> </span></p>
</div>
<div>
<div>
<p class="x_xmsonormal"><span style="font-size:10.5pt; color:black">************************************************************************</span></p>
</div>
<div>
<p class="x_xmsonormal"><span style="font-size:10.5pt; color:black">Gabriele Jost       NASA Ames Research Center</span></p>
</div>
<div>
<p class="x_xmsonormal"><span style="font-size:10.5pt; color:black">Email: Gabriele.Jost@nasa.gov      Mail Stop 258-6</span></p>
</div>
<div>
<p class="x_xmsonormal"><span style="font-size:10.5pt; color:black">Work Phone: (650) 604-0468         Bldg. 258, Rm. 232-4</span></p>
</div>
<div>
<p class="x_xmsonormal"><span style="font-size:10.5pt; color:black">Scientific & HPC Application           P.O. Box 1</span></p>
</div>
<div>
<p class="x_xmsonormal"><span style="font-size:10.5pt; color:black">Development/Optimization            Moffett Field, CA 94035-0001</span></p>
</div>
</div>
</div>
</div>
<p class="x_xmsonormal"><span style="font-size:10.5pt; color:black">************************************************************************</span></p>
<p class="x_xmsonormal"> </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_xmsonormal"><b><span style="font-size:12.0pt; color:black">From: </span>
</b><span style="font-size:12.0pt; color:black">Kiran Chandramohan <Kiran.Chandramohan@arm.com><br>
<b>Date: </b>Thursday, April 23, 2020 at 11:07 AM<br>
<b>To: </b>"flang-dev@lists.llvm.org" <flang-dev@lists.llvm.org>, "Jost, Gabriele (ARC-TNC)[Supersmith]" <gabriele.jost@nasa.gov><br>
<b>Subject: </b>[EXTERNAL] Re: arm + denormals</span></p>
</div>
<div>
<p class="x_xmsonormal"> </p>
</div>
<div>
<p class="x_xmsonormal"><span style="font-size:12.0pt; color:black">Hello Gabriele,<br>
<br>
Does setting the environment variable NO_STOP_MESSAGE help?</span><br>
<span style="font-size:12.0pt; color:black">export NO_STOP_MESSAGE=1<br>
<br>
--Kiran</span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_x_divRplyFwdMsg">
<p class="x_xmsonormal"><b><span style="color:black">From:</span></b><span style="color:black"> flang-dev <flang-dev-bounces@lists.llvm.org> on behalf of Jost, Gabriele (ARC-TNC)[Supersmith] via flang-dev <flang-dev@lists.llvm.org><br>
<b>Sent:</b> 18 April 2020 22:56<br>
<b>To:</b> flang-dev@lists.llvm.org <flang-dev@lists.llvm.org><br>
<b>Subject:</b> [flang-dev] arm + denormals</span> </p>
<div>
<p class="x_xmsonormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_xxmsonormal"><span style="font-size:11.0pt">Hello,</span></p>
<p class="x_xxmsonormal"><span style="font-size:11.0pt">I am running into the problem that flang checks to see if they are denormals. If it thinks they are denormals, it prints out a warning. That slows down the runtime a lot.</span></p>
<p class="x_xxmsonormal"><span style="font-size:11.0pt">Other folks have compiled the same code with ifort using -ftz, probably because they are not concerned about underflows. Is there something similar available for flang, to avoid the checking/printing warnings?</span></p>
<p class="x_xxmsonormal"><span style="font-size:11.0pt">Thanks and greetings,</span></p>
<p class="x_xxmsonormal"><span style="font-size:11.0pt"> </span></p>
<div>
<p class="x_xxmsonormal"><span style="font-size:10.5pt; color:black"> </span></p>
</div>
<div>
<div>
<p class="x_xxmsonormal"><span style="font-size:10.5pt; color:black">Gabriele Jost</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:10.5pt; color:black"> </span></p>
</div>
<div>
<div>
<p class="x_xxmsonormal"><span style="font-size:10.5pt; color:black">************************************************************************</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:10.5pt; color:black">Gabriele Jost       NASA Ames Research Center</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:10.5pt; color:black">Email: Gabriele.Jost@nasa.gov      Mail Stop 258-6</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:10.5pt; color:black">Work Phone: (650) 604-0468         Bldg. 258, Rm. 232-4</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:10.5pt; color:black">Scientific & HPC Application           P.O. Box 1</span></p>
</div>
<div>
<p class="x_xxmsonormal"><span style="font-size:10.5pt; color:black">Development/Optimization            Moffett Field, CA 94035-0001</span></p>
</div>
</div>
</div>
<p class="x_xxmsonormal"><span style="font-size:10.5pt; color:black">************************************************************************</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>