[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem building 2.9.4 on x86_64
From: |
Orion Poplawski |
Subject: |
Re: Problem building 2.9.4 on x86_64 |
Date: |
Wed, 30 Nov 2005 16:57:54 -0600 |
User-agent: |
Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) |
Tim Davis wrote:
> You cannot typecast the long * down to int *.
> You need to call cholmod_l_row_subtree instead, when compiling
> with -m64. The 4th argument of that function is long *, not int *.
>
> Likewise for all other CHOLMOD routines. You need cholmod_l_*
> when compiling in 64-bit mode with 64-bit integers.
>
Thanks! Attached patch did the trick for me.
--
Orion Poplawski
System Administrator 303-415-9701 x222
Colorado Research Associates/NWRA FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301 http://www.co-ra.com
--- octave-2.9.4/src/DLD-FUNCTIONS/spchol.cc.orig 2005-11-11
10:44:05.000000000 -0700
+++ octave-2.9.4/src/DLD-FUNCTIONS/spchol.cc 2005-11-30 15:41:35.000000000
-0700
@@ -609,7 +609,11 @@
for (octave_idx_type k = 0 ; k < n ; k++)
{
// get the kth row of L and store in the columns of L
+#ifdef IDX_TYPE_LONG
+ cholmod_l_row_subtree (A1, A2, k, Parent, R, cm) ;
+#else
cholmod_row_subtree (A1, A2, k, Parent, R, cm) ;
+#endif
for (octave_idx_type p = 0 ; p < Rp [1] ; p++)
L.xridx (W [Ri [p]]++) = k ;