mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2015-09-08, 13:59   #12
R.D. Silverman
 
R.D. Silverman's Avatar
 
"Bob Silverman"
Nov 2003
North of Boston

5×17×89 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
I have a working version of the matrix build code, compiled from the new code. It seems
to work correctly and produces a matrix identical with the old code.

The new CWI code has two versions for LA: gauss.c and lanczos.c

I managed to get a 64-bit version of the former built. But when I run it
it gives the same matrix weight mismatch error that I got before.

I assume that CWI is no longer supporting this, but I'd like to ask someone
there (who is still there?) about this problem.

I could work around the problem, telling the code not to exit, but I don't want to
waste a week running LA code only to find out that I get the wrong answer....

Compiling lanczos.c is still ongoing.
Perhaps gauss.c and buildmatrix.c are not intended to work together.......

Or it could be an array size limitation somewhere......

or......

Last fiddled with by R.D. Silverman on 2015-09-08 at 14:17
R.D. Silverman is offline   Reply With Quote
Old 2015-09-08, 17:03   #13
R.D. Silverman
 
R.D. Silverman's Avatar
 
"Bob Silverman"
Nov 2003
North of Boston

5·17·89 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Perhaps gauss.c and buildmatrix.c are not intended to work together.......

Or it could be an array size limitation somewhere......

or......
I am clearly brain dead. I've been pounding away all day and getting nowhere.

I have scrutinized the code that adds up the column weights while the matrix is being built
and written to disk. I have scrutinized the code in gauss.c that reads the matrix back in.
I'll be damned if I know where the problem is coming from.

The next step is a column by column comparison of the column weights when they are
computed by the matrix build and when they are read by the LA code. This will have to wait.
I have other work to do.
R.D. Silverman is offline   Reply With Quote
Old 2015-09-08, 17:15   #14
firejuggler
 
firejuggler's Avatar
 
"Vincent"
Apr 2010
Over the rainbow

23·5·73 Posts
Default

take the night/day/week off, migth see the problem better in a few days.
firejuggler is offline   Reply With Quote
Old 2015-09-08, 17:44   #15
R.D. Silverman
 
R.D. Silverman's Avatar
 
"Bob Silverman"
Nov 2003
North of Boston

5×17×89 Posts
Default

Quote:
Originally Posted by firejuggler View Post
take the night/day/week off, migth see the problem better in a few days.
Good advice.

But I have a matrix to solve and I am blankety blank frustrated.

Trying to debug someone else's code is a <substitute your favorite expression here>

Last fiddled with by R.D. Silverman on 2015-09-08 at 17:44
R.D. Silverman is offline   Reply With Quote
Old 2015-09-08, 21:15   #16
R.D. Silverman
 
R.D. Silverman's Avatar
 
"Bob Silverman"
Nov 2003
North of Boston

5×17×89 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Good advice.

But I have a matrix to solve and I am blankety blank frustrated.

Trying to debug someone else's code is a <substitute your favorite expression here>
And I just ran into another problem. The LA source calls a function
ConstructTmpName that is nowhere in the distribution.

There is a construct_tmp_name with different arguments.

I found ConstructTmpName in an old (1996) CWI distribution in an
include file with the same name as the file in the new distribution that has
construct_tmp_name

I've been running (up until now) 32 bit post processing code built from the '96 code.

I replaced the new version with the old file and got everything to compile and link.

Miracle!

The LA code, compiled and linked with gcc seems to run fine.
(I will know in a week, when it finishes)

The same code, compiled and linked with Visual Studio fails.

I now have to work on getting the multi-threaded LA code compiled and linked.
And I need to put together 64 bit filter code, although the 32-bit code works OK.
Neither of these tasks is urgent.
R.D. Silverman is offline   Reply With Quote
Old 2015-09-09, 08:26   #17
ldesnogu
 
ldesnogu's Avatar
 
Jan 2008
France

10010101012 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
And I just ran into another problem. The LA source calls a function
ConstructTmpName that is nowhere in the distribution.

There is a construct_tmp_name with different arguments.

I found ConstructTmpName in an old (1996) CWI distribution in an
include file with the same name as the file in the new distribution that has
construct_tmp_name
I *guess* you can safely pick the ConstructTmpName from statistics.c and just remove the second parameter (100) in the call found in gauss.c.
ldesnogu is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling mfaktc on Mac OS X dozba GPU Computing 23 2017-10-03 19:50
compiling GMP-ECM ATH GMP-ECM 69 2017-01-04 12:03
We beat the odds where I work schickel Lounge 4 2013-08-28 03:55
Compiling mprime source code under Ubuntu sol_kanar Software 3 2009-03-26 09:15
Compiling 24.14 CBoland Software 6 2007-08-01 00:11

All times are UTC. The time now is 03:56.


Fri Jul 7 03:56:50 UTC 2023 up 323 days, 1:25, 0 users, load averages: 1.32, 1.15, 1.12

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔