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

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

[Octave-bug-tracker] [bug #58795] ode15i and ode15s fail for Windows 32b


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #58795] ode15i and ode15s fail for Windows 32bit
Date: Thu, 30 Jul 2020 10:36:11 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #30, bug #58795 (project octave):

On my Debian system, I see


typedef int32_t sunindextype;


in the file /usr/include/sundials/sundials_types.h.

I assume this is needed to match the use of 32-bit integers for indexing and
integer work arrays in the system BLAS library.

In Octave on 64-bit systems using the default int64_t for 64-bit indexing, we
can still use 32-bit BLAS (and other) libraries if we are careful to avoid
calling those library functions when the array sizes are too large.  I don't
know whether we are already doing it, but we may need to do the same for
Sundials.

On 32-bit systems, I don't expect it to be possible to use 64-bit indexing, so
all indexing and dimension variables should be limited to 32-bits.

If Sundials and/or some of the libraries it uses are configured by default to
use 64-bit indexing, then that's probably a mistake if they also need to call
32-bit BLAS functions.

If I remember correctly, SuiteSparse can be configured to use 64-bit indexing
and use a BLAS library that has 32-bit indexing because it is careful when
calling BLAS functions, same as Octave tries to do.



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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