[MacPorts] #17218: octave optimized?
#17218: octave optimized? ----------------------------+----------------------------------------------- Reporter: hans@fugal.net | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Low | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: octave ----------------------------+----------------------------------------------- Octave on my laptop is seeing a much-reduced speedup with sparse matrices when compared to linux on similar hardware. x = rand(1000,1000); y = x; y(y<0.99) = 0; z = sparse(y); tic; x*x; toc tic; x*y; toc tic; x*z; toc I see times on the order of 0.68 for x*x and x*y, and 0.62 for x*z, but on linux my friend (with a macbook pro - I have a macbook) sees on the order of 0.9 for x*x, x*y and 0.15 for x*z. I'm happy general matrix multiplication seems faster with the macports version, but I'd love to see a more substantial speedup for sparse matrices. I don't know if there might be some compile-time options for optimization to this or the sparse matrix library, or if there might be something to explain it away in the architecture, hardware, or OS, but I put it out there FWIW. -- Ticket URL: <http://trac.macports.org/ticket/17218> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17218: octave optimized? -----------------------------+---------------------------------------------- Reporter: hans@fugal.net | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Low | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: octave | -----------------------------+---------------------------------------------- Comment(by mcalhoun@macports.org): When comparing, which version of octave are you using?[[BR]] The reason I ask is the recent upgrade of SuiteSparse (r41628) changed the optimization from -O2 to -O3. -- Ticket URL: <http://trac.macports.org/ticket/17218#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17218: octave optimized? -----------------------------+---------------------------------------------- Reporter: hans@fugal.net | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Low | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: octave | -----------------------------+---------------------------------------------- Comment(by hans@fugal.net): 3.0.3 With 3.0.2, I had horrendous sparse matrix performance (on those same benchmarks, x*z took on the order of 2.5 seconds) -- Ticket URL: <http://trac.macports.org/ticket/17218#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17218: octave optimized? -----------------------------+---------------------------------------------- Reporter: hans@fugal.net | Owner: macports-tickets@lists.macosforge.org Type: enhancement | Status: new Priority: Low | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: octave | -----------------------------+---------------------------------------------- Comment(by mcalhoun@macports.org): Good to know that there was improvement.[[BR]] The compile options are the ones recommended by the SuiteSparse package. It seems to me that a careful analysis of octave performance would be a significant undertaking. -- Ticket URL: <http://trac.macports.org/ticket/17218#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17218: octave optimized? -----------------------------+---------------------------------------------- Reporter: hans@fugal.net | Owner: stechert@macports.org Type: enhancement | Status: new Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: octave | -----------------------------+---------------------------------------------- Changes (by jmr@macports.org): * cc: alakazam@melix.net (added) * owner: macports-tickets@lists.macosforge.org => stechert@macports.org * milestone: Port Bugs => Port Enhancements -- Ticket URL: <http://trac.macports.org/ticket/17218#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17218: octave optimized? -----------------------------+---------------------------------------------- Reporter: hans@fugal.net | Owner: stechert@macports.org Type: enhancement | Status: new Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: octave | -----------------------------+---------------------------------------------- Comment(by hans@fugal.net): Yes, it probably would. If appropriate optimizations are enabled during octave and suitesparse compilation then that's as much as can be expected of a package maintainer. -- Ticket URL: <http://trac.macports.org/ticket/17218#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17218: octave optimized? -----------------------------+---------------------------------------------- Reporter: hans@fugal.net | Owner: stechert@macports.org Type: enhancement | Status: new Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: octave | -----------------------------+---------------------------------------------- Comment(by mcalhoun@macports.org): It turns out that in a couple of SuiteSparse Makefiles, the optimization was set to -O (not -O3).[[BR]] This is fixed in r42051.[[BR]] Perhaps this will fix your problem. -- Ticket URL: <http://trac.macports.org/ticket/17218#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17218: octave optimized? -----------------------------+---------------------------------------------- Reporter: hans@fugal.net | Owner: stechert@macports.org Type: enhancement | Status: new Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: octave | -----------------------------+---------------------------------------------- Comment(by hans@fugal.net): Doesn't seem to affect it much, but thanks. -- Ticket URL: <http://trac.macports.org/ticket/17218#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17218: octave optimized? -----------------------------+---------------------------------------------- Reporter: hans@fugal.net | Owner: stechert@macports.org Type: enhancement | Status: closed Priority: Low | Milestone: Port Enhancements Component: ports | Version: 1.6.0 Resolution: wontfix | Keywords: Port: octave | -----------------------------+---------------------------------------------- Changes (by mcalhoun@macports.org): * status: new => closed * resolution: => wontfix Comment: Unfortunately, I don't think there is much more that will be done on this issue.[[BR]] I will therefore close the ticket. -- Ticket URL: <http://trac.macports.org/ticket/17218#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts