<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:-webkit-standard;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xxmsonormal, li.xxmsonormal, div.xxmsonormal
        {mso-style-name:x_xmsonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Many thanks. I will give this a try. Yes, indeed, it is for the arm platform.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black">Gabriele Jost<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">************************************************************************<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Gabriele Jost       NASA Ames Research Center<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Email: Gabriele.Jost@nasa.gov      Mail Stop 258-6<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Work Phone: (650) 604-0468         Bldg. 258, Rm. 232-4<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Scientific & HPC Application           P.O. Box 1<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">Development/Optimization            Moffett Field, CA 94035-0001<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:-webkit-standard;color:black">************************************************************************</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="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<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="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<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="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> <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="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.<o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<div>
<div>
<p class="xmsonormal"><span style="font-size:10.5pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<div>
<p class="xmsonormal"><span style="font-size:10.5pt;color:black">Gabriele Jost</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-size:10.5pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<div>
<p class="xmsonormal"><span style="font-size:10.5pt;color:black">************************************************************************</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-size:10.5pt;color:black">Gabriele Jost       NASA Ames Research Center</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-size:10.5pt;color:black">Email: Gabriele.Jost@nasa.gov      Mail Stop 258-6</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-size:10.5pt;color:black">Work Phone: (650) 604-0468         Bldg. 258, Rm. 232-4</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-size:10.5pt;color:black">Scientific & HPC Application           P.O. Box 1</span><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"><span style="font-size:10.5pt;color:black">Development/Optimization            Moffett Field, CA 94035-0001</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
<p class="xmsonormal"><span style="font-size:10.5pt;color:black">************************************************************************</span><o:p></o:p></p>
<p class="xmsonormal"> <o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="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><o:p></o:p></p>
</div>
<div>
<p class="xmsonormal"> <o:p></o:p></p>
</div>
<div>
<p class="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><o:p></o:p></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="0" width="100%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="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> <o:p></o:p></p>
<div>
<p class="xmsonormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="xxmsonormal"><span style="font-size:11.0pt">Hello,</span><o:p></o:p></p>
<p class="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><o:p></o:p></p>
<p class="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><o:p></o:p></p>
<p class="xxmsonormal"><span style="font-size:11.0pt">Thanks and greetings,</span><o:p></o:p></p>
<p class="xxmsonormal"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
<div>
<p class="xxmsonormal"><span style="font-size:10.5pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<div>
<p class="xxmsonormal"><span style="font-size:10.5pt;color:black">Gabriele Jost</span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:10.5pt;color:black"> </span><o:p></o:p></p>
</div>
<div>
<div>
<p class="xxmsonormal"><span style="font-size:10.5pt;color:black">************************************************************************</span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:10.5pt;color:black">Gabriele Jost       NASA Ames Research Center</span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:10.5pt;color:black">Email: Gabriele.Jost@nasa.gov      Mail Stop 258-6</span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:10.5pt;color:black">Work Phone: (650) 604-0468         Bldg. 258, Rm. 232-4</span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:10.5pt;color:black">Scientific & HPC Application           P.O. Box 1</span><o:p></o:p></p>
</div>
<div>
<p class="xxmsonormal"><span style="font-size:10.5pt;color:black">Development/Optimization            Moffett Field, CA 94035-0001</span><o:p></o:p></p>
</div>
</div>
</div>
<p class="xxmsonormal"><span style="font-size:10.5pt;color:black">************************************************************************</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>