mersenneforum.org  

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

Reply
 
Thread Tools
Old 2019-11-11, 17:30   #12
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

F5216 Posts
Default

Quote:
Originally Posted by bsquared View Post
Are colab sessions single threaded? If not it would be helpful to run multithreaded.
There are two threads. I thought I was running two:
Code:
    yafuini.write("threads=2\n")
should provide two threads. It used to anyway. I'll check again in a bit.
EdH is offline   Reply With Quote
Old 2019-11-11, 17:44   #13
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

67608 Posts
Default

Quote:
Originally Posted by EdH View Post
There are two threads. I thought I was running two:
Code:
    yafuini.write("threads=2\n")
should provide two threads. It used to anyway. I'll check again in a bit.
Ah, I missed that line. Thanks.
bsquared is offline   Reply With Quote
Old 2021-07-26, 12:59   #14
Harvey563
 
Harvey563's Avatar
 
Apr 2004

11·17 Posts
Default Warnings in runtime log

I am getting the following warning in the runtime log:

Jul 26, 2021, 5:43:30 AM WARNING sh: 1: /content/ecm: Permission denied

Is this a problem?

"!chmod -R 777 /content/ecm" doesn't help.

Thanks.
Harvey563 is offline   Reply With Quote
Old 2021-07-26, 17:27   #15
Harvey563
 
Harvey563's Avatar
 
Apr 2004

11·17 Posts
Default

I'm not seeing an errors in results, just wondering.
Harvey563 is offline   Reply With Quote
Old 2021-07-27, 13:21   #16
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·37·53 Posts
Default

I might be misunderstanding something (probably), but I'm not finding a runtime log or an error message. However, the third candidate in my test run failed and I'm not sure why. That composite is made up of a bunch of p3s and p4s and YAFU factored it in the Colab session when I ran it outside of the script.

sample run of script:
Code:
Installing system packages. . . 
Retrieving GMP-ECM. . . 
Compiling GMP-ECM. . .
Finished installing GMP-ECM. . . 
Retrieving YAFU. . . 
Compiling YAFU. . . 
Finished compiling YAFU. . . 
Starting the factoring of 3 composites. . .  

Composite 1: 8869475002717536050312782604253426183326192888885941092918900891116352039782449522669 <85> 
Factors (6:59): 3211610951880144183669785219693807857*2761690359015982301564877430778307467378692976317  

Composite 2: 1128164293201891394597728447518614695546967713433260789629082173322486406149926324143 <85> 
Factors (6:02): 29751725740768035469240132235509074973407496022009533350217*37919289221465108716321079  

Composite 3: 3895909508598394792966931237542439743139398349882487979187550567767896277846662661167 <85> Factors (0:00):   

Completed all 3 composites!
factor log of third candidate run in isolation:
Code:
fac: factoring 3895909508598394792966931237542439743139398349882487979187550567767896277846662661167 
fac: using pretesting plan: normal 
fac: no tune info: using qs/gnfs crossover of 95 digits 
fac: no tune info: using qs/snfs crossover of 75 digits 
div: primes less than 10000 
Total factoring time = 0.0034 seconds 
 
 
***factors found*** 
 
P3 = 911 
P3 = 941 
P3 = 953 
P3 = 967 
P3 = 971 
P3 = 977 
P3 = 983 
P3 = 991 
P4 = 1009 
P4 = 1019 
P4 = 1031 
P4 = 1033 
P4 = 1039 
P4 = 1049 
P4 = 1061 
P4 = 1063 
P4 = 1087 
P4 = 1091 
P4 = 1093 
P4 = 1097 
P4 = 1103 
P4 = 1109 
P4 = 1117 
P4 = 1129 
P4 = 1151 
P4 = 1153 
P4 = 1163 
P4 = 1171 
1
EdH is offline   Reply With Quote
Old 2021-07-27, 15:56   #17
chris2be8
 
chris2be8's Avatar
 
Sep 2009

86816 Posts
Default

Quote:
Originally Posted by Harvey563 View Post
I am getting the following warning in the runtime log:

Jul 26, 2021, 5:43:30 AM WARNING sh: 1: /content/ecm: Permission denied

Is this a problem?

"!chmod -R 777 /content/ecm" doesn't help.

Thanks.
Run "!ls -l /content/ecm" to see what /content/ecm really is (I hope that's the right syntax). HTH
chris2be8 is offline   Reply With Quote
Old 2021-07-27, 22:41   #18
Harvey563
 
Harvey563's Avatar
 
Apr 2004

11·17 Posts
Red face

!ls -l / content/ecm results:

total 18512 -rw-r--r-- 1 root root 21167 Jul 27 19:23 acinclude.m4 -rw-r--r-- 1 root root 43125 Jul 27 19:23 aclocal.m4 -rw-r--r-- 1 root root 36281 Jul 27 19:23 addlaws.c -rw-r--r-- 1 root root 2672 Jul 27 19:23 addlaws.h -rwxr-xr-x 1 root root 456488 Jul 27 19:23 aprcl drwxr-xr-x 3 root root 4096 Jul 27 19:23 aprtcle drwxr-xr-x 2 root root 4096 Jul 27 19:23 arm drwxr-xr-x 2 root root 4096 Jul 27 19:23 athlon -rw-r--r-- 1 root root 1758 Jul 27 19:23 AUTHORS drwxr-xr-x 2 root root 4096 Jul 27 19:23 autom4te.cache -rw-r--r-- 1 root root 2149 Jul 27 19:23 auxarith.c -rw-r--r-- 1 root root 8124 Jul 27 19:23 auxi.c -rw-r--r-- 1 root root 7390 Jul 27 19:23 auxlib.c ...

It appears to be source code.

"View runtime log" is the final option under runtime menu in Colaboratory.
Harvey563 is offline   Reply With Quote
Old 2021-07-28, 19:55   #19
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

392210 Posts
Default

Quote:
Originally Posted by Harvey563 View Post
I am getting the following warning in the runtime log:

Jul 26, 2021, 5:43:30 AM WARNING sh: 1: /content/ecm: Permission denied

Is this a problem?

"!chmod -R 777 /content/ecm" doesn't help.

Thanks.
OK, I think I have it fixed. Thanks for pointing it out to me. (I guess I'm going to have to look at all my other Colab threads that use ECM, as well.)

To manually fix, change the line:
Code:
     print(line.rstrip().replace('ecm_path=../gmp-ecm/bin/ecm', 'ecm_path=/content/ecm'))
to
Code:
    print(line.rstrip().replace('ecm_path=../gmp-ecm/bin/ecm', 'ecm_path=/usr/local/bin/ecm'))
Remember to keep the four leading spaces. Also remember that if you've already run the session without the change, you will need to terminate and reconnect the session to clear all the original work.



Last fiddled with by EdH on 2021-07-28 at 19:58
EdH is offline   Reply With Quote
Old 2021-07-29, 22:56   #20
Harvey563
 
Harvey563's Avatar
 
Apr 2004

11×17 Posts
Default

This fixed it. Thanks.
Harvey563 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Colab question David703 GPU to 72 279 2020-12-12 01:26
How I Compile YAFU in a Colaboratory Session EdH EdH 2 2019-10-28 03:10
Someone is reporting orphan factors to FactorDB. GP2 FactorDB 6 2018-07-24 19:45
Cunningham Table Composites in FactorDB Batalov Cunningham Tables 15 2011-07-30 03:43
Factoring of composites with near factors - request for data AntonVrba Factoring 3 2006-02-05 06:30

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


Mon Sep 20 22:23:10 UTC 2021 up 59 days, 16:52, 0 users, load averages: 1.64, 1.79, 1.87

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.