mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Blogorrhea > EdH

Reply
 
Thread Tools
Old 2021-09-24, 14:16   #23
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2×29×71 Posts
Default

OK, this may take a little bit, but let's do some stepping. It was late when I threw out my question last night, but I expect (hope) to be more available today.
Quote:
Originally Posted by Plutie View Post
Code:
ggnfs_cmd = bash /home/uwu/Math/aliqueit/cado.sh
Here it is. I renamed the script from alitest.sh to cado.sh.
That's fine. I should use something different, but I just went ahead and left it as what it was when I built it.

Let's move to the errors list and break it down with some closer examination:

Quote:
Originally Posted by Plutie View Post
I'm having trouble running CADO as a replacement for ggnfs. It doesn't seem to be finding the directory with the number to factor.
The number is provided by Aliqueit in test.n in the ggnfs_... directory. Then test.n is read by the cado.sh script as described below.
Code:
mkdir: cannot create directory ‘ggnfs_67216810256844675480477157025988578680922317601701866734537817412464452765665954902870790052675237179’: File exists
This is probably fine. The first time you ran it, Aliqueit made this directory and there is nothing coded to remove it. The important file in this directory ATM is test.n. Make sure it exists and holds the composite after the "n: " prefix.
Code:
cannot open input file 'worktodo.ini'
I don't understand where this is coming from. This is the default input for Msieve if no name is provided with its call. cado.sh shouldn't be doing anything with Msieve and Aliqueit should only be relying on cado.sh. cado.sh is clearly being called or you wouldn't have the following error.
Code:
cat: ggnfs_67216810256844675480477157025988578680922317601701866734537817412464452765665954902870790052675237179/test.n: No such file or directory
This is important and we should focus here first. The composite has to be harvested from this file for the rest to work.
Code:
rm: cannot remove '/tmp/alicado': No such file or directory
This wouldn't exist if there were no previous runs. It is normal if CADO-NFS never ran.

Where to work:

Let's verify that Aliqueit is properly supplying the needed composite in test.n.
- First manually remove the ggnfs_<composite> directory.
- In the cado.sh script add the following red lines:
Code:
comp=${comp:3}
echo "filename is $1"
echo "comp is $comp"
sleeping. . .
sleep 300
#remove work from prior number so we can use the same names
Run Aliqueit and see if it displays the composite correctly. If it does, let it continue. If it doesn't, check for the test.n file and whether it contains "n: <composite>" with nothing extra.
EdH is offline   Reply With Quote
Old 2021-09-24, 14:24   #24
Plutie
 
"Evan"
Dec 2020
Montreal

10010002 Posts
Default

Code:
filename: ggnfs_67216810256844675480477157025988578680922317601701866734537817412464452765665954902870790052675237179/test
comp: [blank]
test.n contains the correct composite.

The real confusing part is that this file exists.

Code:
cat: ggnfs_67216810256844675480477157025988578680922317601701866734537817412464452765665954902870790052675237179/test.n: No such file or directory

Last fiddled with by Plutie on 2021-09-24 at 14:31
Plutie is offline   Reply With Quote
Old 2021-09-24, 14:33   #25
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2×29×71 Posts
Default

Quote:
Originally Posted by Plutie View Post
Code:
filename: ggnfs_67216810256844675480477157025988578680922317601701866734537817412464452765665954902870790052675237179/test
comp: [blank]
test.n contains the correct composite.
The filename should include the ".n" extension. Is that a c/p problem or is it really truncated?
EdH is offline   Reply With Quote
Old 2021-09-24, 14:34   #26
Plutie
 
"Evan"
Dec 2020
Montreal

7210 Posts
Default

Quote:
Originally Posted by EdH View Post
The filename should include the ".n" extension. Is that a c/p problem or is it really truncated?
It is truncated.
Plutie is offline   Reply With Quote
Old 2021-09-24, 14:40   #27
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

411810 Posts
Default

Quote:
Originally Posted by Plutie View Post
It is truncated.
I forgot earlier that Aliqueit only sends "test," not "test.n" and the ".n" is added in the call in line 2 of cado.sh, "comp=$(cat $1.n)." Let me step back a moment and think on this...
EdH is offline   Reply With Quote
Old 2021-09-24, 14:49   #28
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

100268 Posts
Default

This just a wild shot, but the code blocks are constantly messing with me by adding extra characters.

If you used copy/paste to create cado.sh, try manually removing and retyping the two "comp=" lines.
EdH is offline   Reply With Quote
Old 2021-09-24, 14:52   #29
Plutie
 
"Evan"
Dec 2020
Montreal

7210 Posts
Default

Quote:
Originally Posted by EdH View Post
This just a wild shot, but the code blocks are constantly messing with me by adding extra characters.

If you used copy/paste to create cado.sh, try manually removing and retyping the two "comp=" lines.
As funny as that would be if it fixed it, unfortunately that didn't work. Same error occurs.
Plutie is offline   Reply With Quote
Old 2021-09-24, 14:58   #30
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

100268 Posts
Default

How about, if you provide an absolute path in line 2:
Code:
comp=$(cat $HOME/Math/aliqueit/${1}.n)
And does that same absolute path work on the command line?
EdH is offline   Reply With Quote
Old 2021-09-24, 15:02   #31
Plutie
 
"Evan"
Dec 2020
Montreal

23×32 Posts
Default

That fixed it! Thank you so much for the help :D
Plutie is offline   Reply With Quote
Old 2021-09-24, 15:05   #32
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2×29×71 Posts
Default

Quote:
Originally Posted by Plutie View Post
That fixed it! Thank you so much for the help :D
Excellent! Glad I could help. Let me know if anything else hangs up.
EdH is offline   Reply With Quote
Old 2021-09-24, 15:12   #33
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

100268 Posts
Default

Quote:
Originally Posted by EdH View Post
Excellent! Glad I could help. Let me know if anything else hangs up.
I'm concerned that if you needed an absolute path for the composite, that you will need absolute paths elsewhere. You might be on the lookout for that and modify other relative paths as needed.
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How I Install CADO-NFS onto my Ubuntu Machines EdH EdH 3 2019-06-24 03:42
How I Install GMP-ECM onto my Ubuntu Machines EdH EdH 12 2019-04-16 09:28
How I Install and Run ecmpi Across Several Ubuntu Machines EdH EdH 0 2019-04-04 22:33
How I Install ggnfs onto my Ubuntu Machines EdH EdH 0 2018-02-22 03:31
How I Install GMP onto my Ubuntu Machines EdH EdH 0 2018-02-21 23:48

All times are UTC. The time now is 22:06.


Tue Dec 7 22:06:16 UTC 2021 up 137 days, 16:35, 1 user, load averages: 2.17, 1.90, 1.62

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.