octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #64361] sinc() return NaN on sinc(-1:0.20:1-0.


From: Rik
Subject: [Octave-bug-tracker] [bug #64361] sinc() return NaN on sinc(-1:0.20:1-0.20) expression
Date: Thu, 29 Jun 2023 16:38:36 -0400 (EDT)

Follow-up Comment #28, bug #64361 (project octave):

Just confirming that this is all down to usage of AVX.  As Dmitri noted,
compiler optimization levels which would not invoke auto-vectorization of
loops (-O0, -O1) work.  Using the compilation directive '-mno-avx' also works.
 The only difference between elem()/index() and array_value() is the presence
of a for loop.  This page from Intel states under what conditions AVX can
occur:
https://www.intel.com/content/www/us/en/developer/articles/technical/requirements-for-vectorizable-loops.html.
 The very simple loop in array_value() qualifies.

I will test out jwe's suggestion.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64361>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]