bugGNU Octave - Bugs: bug #36783, Large sparse matrix fails in thee...

 
 

bug #36783: Large sparse matrix fails in thee 64-bit build

Submitted by:  Hsaing-Fu Yu (Rofu) <rofu>
Submitted on:  Wed 04 Jul 2012 04:33:58 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: RofuOpen/Closed: Closed
Release: 3.6.2Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 04 Jul 2012 05:06:27 PM UTC, comment #4:

Thanks for the report and quick fix, both of you.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Wed 04 Jul 2012 05:02:20 PM UTC, comment #3:

I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/e2ac6e2c588a

John W. Eaton <jwe>
Project Administrator
Wed 04 Jul 2012 04:50:44 PM UTC, comment #2:

Yes, I was using mex interface.

Here is the sample "test.c" I used in a 64-bit with enough memory.

When I executed test.mex, i got the
error: test: failed to allocate 525161728 bytes of memory

It seems that it's a overflow problem. After I modified mex.cpp and re-compiled octave again, it works.

Hsaing-Fu Yu (Rofu) <rofu>
Wed 04 Jul 2012 04:41:59 PM UTC, comment #1:

You seem to be using the mex interface, so can you please describe a bit more what fails and how?

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Wed 04 Jul 2012 04:33:58 PM UTC, original submission:

Followed the instruction in
http://www.gnu.org/software/octave/doc/interpreter/Compiling-Octave-with-64_002dbit-Indexing.html,
allocating a sparse matrix with more than 2G nnz elements fails.

After traced the code, I found a bug on the line 1517 in mex.cc.
Types for m, n, nzmax_arg should be "mwSize" rather than "int."

Here is the diff result:

Hsaing-Fu Yu (Rofu) <rofu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by rofu (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 04 Jul 2012 05:15:52 PM UTCjordighStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 04 Jul 2012 05:06:27 PM UTCjordighStatusFixed=>None
      Open/ClosedClosed=>Open
    Wed 04 Jul 2012 05:02:20 PM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1