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 12:32:57 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

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

It appears to me that sundials can call BLAS or Lapack functions and it uses
sunindextype for the integer dimensions and work arrays that it passes.  So
that type should match what is used by the BLAS and Lapack libraries on the
system (i.e., it should follow the ENABLE_FORTRAN_INT64 option for
mxe-octave.

I also found the following lines in
sundials-5.3.0/src/sunlinsol/klu/sunlinsol_klu.c:


#if defined(SUNDIALS_INT64_T)
#define KLU_INDEXTYPE long int
#else
#define KLU_INDEXTYPE int
#endif


That looks wrong for Windows, but shouldn't be a problem for w32 systems, only
for 64-bit systems when using 64-bit fortran integers?

For those systems (the mxe-octave w64-64 builds), the buildbot log file for
sundials shows warning like this:


/scratch/buildbot/workers/jwe-debian-x86_64-3/w64-64-on-debian/src/tmp-sundials-ida/sundials-5.3.0/src/sunlinsol/klu/sunlinsol_klu.c:
In function 'SUNLinSolSetup_KLU':
/scratch/buildbot/workers/jwe-debian-x86_64-3/w64-64-on-debian/src/tmp-sundials-ida/sundials-5.3.0/src/sunlinsol/klu/sunlinsol_klu.c:281:35:
warning: passing argument 2 of 'klu_l_analyze' from incompatible pointer type
[-Wincompatible-pointer-types]
  281 |                                   (KLU_INDEXTYPE*)
SUNSparseMatrix_IndexPointers(A),
      |                                  
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                   |
      |                                   long int *
In file included from
/scratch/buildbot/workers/jwe-debian-x86_64-3/w64-64-on-debian/src/tmp-sundials-ida/sundials-5.3.0/include/sunlinsol/sunlinsol_klu.h:34,
                 from
/scratch/buildbot/workers/jwe-debian-x86_64-3/w64-64-on-debian/src/tmp-sundials-ida/sundials-5.3.0/src/sunlinsol/klu/sunlinsol_klu.c:22:
/scratch/buildbot/workers/jwe-debian-x86_64-3/w64-64-on-debian/src/usr/x86_64-w64-mingw32/include/suitesparse/klu.h:253:17:
note: expected 'long long int *' but argument is of type 'long int *'
  253 | klu_l_symbolic *klu_l_analyze (SuiteSparse_long, SuiteSparse_long *,
      |                 ^~~~~~~~~~~~~



    _______________________________________________________

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]