Apgsearch question
-
- Posts: 118
- Joined: May 18th, 2016, 10:07 pm
Apgsearch question
Whenever I try to open Apgsearch (or any other Python script for that matter) on Golly, it says:
"Python library does not have this symbol: Py_Initialize"
I am running a Windows 7 Intel Pentium laptop. Any tips? Thanks.
"Python library does not have this symbol: Py_Initialize"
I am running a Windows 7 Intel Pentium laptop. Any tips? Thanks.
what is sesame oil?
Re: Apgsearch question
Which version are you using?
-
- Posts: 118
- Joined: May 18th, 2016, 10:07 pm
Re: Apgsearch question
Apgsearch 1.1 on the latest version of Golly, 2.7. Python is 2.7.11
what is sesame oil?
Re: Apgsearch question
Is the golly 32 bit or 64 bit?
Help wanted: How can we accurately notate any 1D replicator?
-
- Posts: 118
- Joined: May 18th, 2016, 10:07 pm
Re: Apgsearch question
You need 64 bit Golly if everything else is 64 bit.
Help wanted: How can we accurately notate any 1D replicator?
-
- Posts: 118
- Joined: May 18th, 2016, 10:07 pm
Re: Apgsearch question
Thank you so much! My computer is 64 bit (I checked) and so there's the problem.
what is sesame oil?
Re: Apgsearch question
Glad to be of help. I figured out the exact same problem with own computer like 2 weeks ago...
Help wanted: How can we accurately notate any 1D replicator?
- lk050807
- Posts: 113
- Joined: April 10th, 2023, 4:12 pm
- Location: One hour from a river were salmons leap.
Re: Apgsearch question
It says:
I have golly(4.2) and Python(3.11.5).
Apgseach version. 1.1.Python wrote: $ Python 'apgsearch.py'
Traceback (most recent call last):
File "/Users/sami/Documents/apgsearch.py", line 67, in <module>
import golly as g
ModuleNotFoundError: No module named 'golly'
I have golly(4.2) and Python(3.11.5).
"For the snark is a boojum, you see."
The P3 guy.
Whaz this?
Please support HeartLife
HELP WANTED!
I discovered a new p101 SKOP! Its md5 hash is: b5de045f2a2f5a35160f69afd5ba9572!
Now apgsearching so, not online.
The P3 guy.
Whaz this?
Please support HeartLife
HELP WANTED!
I discovered a new p101 SKOP! Its md5 hash is: b5de045f2a2f5a35160f69afd5ba9572!
Now apgsearching so, not online.
- EvinZL
- Posts: 856
- Joined: November 8th, 2018, 4:15 pm
- Location: A tungsten pool travelling towards the sun
- Contact:
Re: Apgsearch question
Do not run python from the command line or any normal application. It needs to be run from within Golly using File>Run Scriptlk050807 wrote: ↑September 26th, 2023, 3:48 pmIt says:Apgseach version. 1.1.Python wrote: $ Python 'apgsearch.py'
Traceback (most recent call last):
File "/Users/sami/Documents/apgsearch.py", line 67, in <module>
import golly as g
ModuleNotFoundError: No module named 'golly'
I have golly(4.2) and Python(3.11.5).
- lk050807
- Posts: 113
- Joined: April 10th, 2023, 4:12 pm
- Location: One hour from a river were salmons leap.
Re: Apgsearch question
Oh my, now is says: [/img]EvinZL wrote: ↑September 26th, 2023, 7:50 pmDo not run python from the command line or any normal application. It needs to be run from within Golly using File>Run Scriptlk050807 wrote: ↑September 26th, 2023, 3:48 pmIt says:Apgseach version. 1.1.Python wrote: $ Python 'apgsearch.py'
Traceback (most recent call last):
File "/Users/sami/Documents/apgsearch.py", line 67, in <module>
import golly as g
ModuleNotFoundError: No module named 'golly'
I have golly(4.2) and Python(3.11.5).
"For the snark is a boojum, you see."
The P3 guy.
Whaz this?
Please support HeartLife
HELP WANTED!
I discovered a new p101 SKOP! Its md5 hash is: b5de045f2a2f5a35160f69afd5ba9572!
Now apgsearching so, not online.
The P3 guy.
Whaz this?
Please support HeartLife
HELP WANTED!
I discovered a new p101 SKOP! Its md5 hash is: b5de045f2a2f5a35160f69afd5ba9572!
Now apgsearching so, not online.
Re: Apgsearch question
I believe that's an error you'll get trying to run Python 2.x code using Python 3.x.
I don't believe anyone has ever ported that ancientmost version of apgsearch to Python 3.x, so you'd have to install Python 2.x (or port the code) if you wanted to get that working.
-
- Posts: 191
- Joined: June 30th, 2023, 9:17 am
- Location: Suffocating(my coordinates are 3,-64,192929929)
skjdflkcjvldjlsfjslfjslfjswejfwoajefojwoefjwoijfowie
well, I think that you would also need to install golly 3.4(what i'm using for apgsearch which is running rught now). Note that on mac, you will not need to install anything else as python 2.7 is autoinstalleddvgrn wrote: ↑September 28th, 2023, 6:24 pmI believe that's an error you'll get trying to run Python 2.x code using Python 3.x.
I don't believe anyone has ever ported that ancientmost version of apgsearch to Python 3.x, so you'd have to install Python 2.x (or port the code) if you wanted to get that working.
My 10! TH POST!
!)!+!)!
101=101
I QUIT CA
Re: Compiled Apgsearch Runs Too Slow
Both use 4 threads, rule b3s23, and c1 symmetry.
Precompiled Version:
Compiled Version:
Why is compiled apgsearch 4x slower than precompiled apgsearch?
Precompiled Version:
Code: Select all
Using seed k_cWPUxUu5Tq8v
Instruction set ←[1mSSE4.2←[0m detected
Running 10000000 soups per haul:
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
Soup k_cWPUxUu5Tq8v70869 has a final population of ←[1;34m3096←[0m cells.
b3s23/C1: 100000 soups completed (5449.888 soups/second current, 5449.888 overall).
b3s23/C1: 200000 soups completed (3328.673 soups/second current, 4133.000 overall).
Rare oscillator detected: ←[1;31mxp8_gk2gb3z11←[0m
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
Soup k_cWPUxUu5Tq8v287675 lasts an estimated ←[1;34m30064←[0m generations; rerunning...
Linear-growth pattern detected: ←[1;32mSyoup l144_1_16_afb5f3db909e60548f086e22ee3353ack←_cWPUxUu5Tq8v287675[0m
actually lasts ←[1;34m20614←[0m generations.
b3s23/C1: 300000 soups completed (4416.766 soups/second current, 4223.389 overall).
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
b3s23/C1: 400000 soups completed (5061.497 soups/second current, 4405.772 overall).
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
b3s23/C1: 500000 soups completed (4634.135 soups/second current, 4449.626 overall).
b3s23/C1: 600000 soups completed (4214.075 soups/second current, 4408.523 overall).
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
b3s23/C1: 700000 soups completed (4223.508 soups/second current, 4381.106 overall).
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
b3s23/C1: 800000 soups completed (3894.688 soups/second current, 4313.738 overall).
b3s23/C1: 900000 soups completed (5262.604 soups/second current, 4401.925 overall).
Linear-growth pattern detected: ←[1;32myl384_1_59_7aeb1999980c43b4945fb7fcdb023326←[0m
b3s23/C1: 1000000 soups completed (4673.989 soups/second current, 4427.698 overall).
Linear-growth pattern detected: ←[1;32myl384_1_59_7aeb1999980c43b4945fb7fcdb023326←[0m
b3s23/C1: 1100000 soups completed (4507.753 soups/second current, 4434.840 overall).
Linear-growth pattern detected: ←[1;32myl384_1_59_7aeb1999980c43b4945fb7fcdb023326←[0m
b3s23/C1: 1200000 soups completed (4334.070 soups/second current, 4426.248 overall).
b3s23/C1: 1300000 soups completed (4532.886 soups/second current, 4434.272 overall).
b3s23/C1: 1400000 soups completed (4689.992 soups/second current, 4451.595 overall).
b3s23/C1: 1500000 soups completed (3905.335 soups/second current, 4410.468 overall).
b3s23/C1: 1600000 soups completed (4968.203 soups/second current, 4441.619 overall).
b3s23/C1: 1700000 soups completed (4560.587 soups/second current, 4448.433 overall).
b3s23/C1: 1800000 soups completed (5329.070 soups/second current, 4489.640 overall).
Rare oscillator detected: ←[1;31mxp4_37bkic←[0m
b3s23/C1: 1900000 soups completed (5318.017 soups/second current, 4526.752 overall).
b3s23/C1: 2000000 soups completed (4787.667 soups/second current, 4539.120 overall).
b3s23/C1: 2100000 soups completed (5281.783 soups/second current, 4569.708 overall).
b3s23/C1: 2200000 soups completed (4998.750 soups/second current, 4587.606 overall).
b3s23/C1: 2300000 soups completed (4628.772 soups/second current, 4589.371 overall).
b3s23/C1: 2400000 soups completed (4816.956 soups/second current, 4598.415 overall).
Code: Select all
Using seed k_JiQUHpmntS6s
Instruction set SSE4.2 detected
Running 10000000 soups per haul:
b3s23/C1: 18125 soups completed (1812.500 soups/second current, 1812.500 overall).
b3s23/C1: 31667 soups completed (1354.200 soups/second current, 1583.350 overall).
b3s23/C1: 46050 soups completed (1438.300 soups/second current, 1534.949 overall).
b3s23/C1: 58329 soups completed (1205.596 soups/second current, 1451.476 overall).
b3s23/C1: 61495 soups completed (316.600 soups/second current, 1225.317 overall).
b3s23/C1: 69888 soups completed (839.216 soups/second current, 1161.162 overall).
b3s23/C1: 81632 soups completed (1174.283 soups/second current, 1163.031 overall).
b3s23/C1: 92562 soups completed (1093.000 soups/second current, 1154.298 overall).
b3s23/C1: 105466 soups completed (1290.400 soups/second current, 1169.389 overall).
b3s23/C1: 117904 soups completed (1243.303 soups/second current, 1176.757 overall).
b3s23/C1: 129975 soups completed (1207.100 soups/second current, 1179.511 overall).
b3s23/C1: 141023 soups completed (1104.800 soups/second current, 1173.285 overall).
b3s23/C1: 151419 soups completed (1039.600 soups/second current, 1163.017 overall).
b3s23/C1: 160745 soups completed (932.600 soups/second current, 1146.582 overall).
b3s23/C1: 171770 soups completed (1101.179 soups/second current, 1143.555 overall).
b3s23/C1: 184053 soups completed (1228.054 soups/second current, 1148.823 overall).
Rare oscillator detected: xp4_37bkic
b3s23/C1: 192906 soups completed (884.681 soups/second current, 1133.295 overall).
b3s23/C1: 202893 soups completed (998.500 soups/second current, 1125.807 overall).
b3s23/C1: 213437 soups completed (1053.978 soups/second current, 1122.024 overall).
b3s23/C1: 223216 soups completed (975.559 soups/second current, 1114.687 overall).
b3s23/C1: 235587 soups completed (1234.138 soups/second current, 1120.381 overall).
b3s23/C1: 248804 soups completed (1312.773 soups/second current, 1129.167 overall).
b3s23/C1: 260423 soups completed (1161.900 soups/second current, 1130.588 overall).
b3s23/C1: 272044 soups completed (1162.100 soups/second current, 1131.899 overall).
b3s23/C1: 282941 soups completed (1089.373 soups/second current, 1130.195 overall).
b3s23/C1: 293503 soups completed (1055.989 soups/second current, 1127.340 overall).
b3s23/C1: 304603 soups completed (1106.349 soups/second current, 1126.561 overall).
Linear-growth pattern detected: yl144_1_16_afb5f3db909e60548f086e22ee3353ac
b3s23/C1: 314588 soups completed (998.400 soups/second current, 1121.990 overall).
b3s23/C1: 327261 soups completed (1267.173 soups/second current, 1126.986 overall).
b3s23/C1: 338353 soups completed (1108.978 soups/second current, 1126.387 overall).
b3s23/C1: 348593 soups completed (1024.000 soups/second current, 1123.084 overall).
b3s23/C1: 361793 soups completed (1320.000 soups/second current, 1129.230 overall).
b3s23/C1: 371614 soups completed (982.100 soups/second current, 1124.777 overall).
Rare oscillator detected: xp8_gk2gb3z11
b3s23/C1: 381394 soups completed (965.354 soups/second current, 1120.031 overall).
b3s23/C1: 390462 soups completed (904.268 soups/second current, 1113.859 overall).
Linear-growth pattern detected: yl144_1_16_afb5f3db909e60548f086e22ee3353ac
b3s23/C1: 402617 soups completed (1214.286 soups/second current, 1116.644 overall).
b3s23/C1: 414878 soups completed (1222.311 soups/second current, 1119.501 overall).
b3s23/C1: 427330 soups completed (1243.335 soups/second current, 1122.759 overall).
b3s23/C1: 436627 soups completed (929.700 soups/second current, 1117.817 overall).
b3s23/C1: 449662 soups completed (1302.068 soups/second current, 1122.418 overall).
b3s23/C1: 462932 soups completed (1327.000 soups/second current, 1127.400 overall).
b3s23/C1: 476194 soups completed (1326.200 soups/second current, 1132.124 overall).
b3s23/C1: 489419 soups completed (1320.519 soups/second current, 1136.503 overall).
b3s23/C1: 499796 soups completed (1037.700 soups/second current, 1134.260 overall).
b3s23/C1: 512892 soups completed (1309.207 soups/second current, 1138.141 overall).
b3s23/C1: 525978 soups completed (1308.600 soups/second current, 1141.842 overall).
b3s23/C1: 538202 soups completed (1222.400 soups/second current, 1143.553 overall).
b3s23/C1: 551180 soups completed (1297.151 soups/second current, 1146.751 overall).
b3s23/C1: 563148 soups completed (1196.800 soups/second current, 1147.771 overall).
b3s23/C1: 573369 soups completed (1022.100 soups/second current, 1145.258 overall).
b3s23/C1: 585667 soups completed (1229.800 soups/second current, 1146.914 overall).
b3s23/C1: 596555 soups completed (1086.952 soups/second current, 1145.758 overall).
Linear-growth pattern detected: yl384_1_59_7aeb1999980c43b4945fb7fcdb023326
b3s23/C1: 608203 soups completed (1164.800 soups/second current, 1146.117 overall).
b3s23/C1: 619627 soups completed (1142.400 soups/second current, 1146.046 overall).
b3s23/C1: 630380 soups completed (1075.192 soups/second current, 1144.759 overall).
By: C.R. Hilton, currently working on another cool spaceship.
- confocaloid
- Posts: 3117
- Joined: February 8th, 2022, 3:15 pm
Re: Compiled Apgsearch Runs Too Slow
There might be some difference in which compiler is used and/or in parameters. What are messages printed during compilation?
edit: maybe one could attempt running both compiled and precompiled versions using 2 threads or using 1 thread, to see whether the difference changes to "2x slower"/"same speed" correspondingly (i.e. matches the number of threads), or the difference remains ~4x.
Last edited by confocaloid on March 13th, 2024, 8:41 pm, edited 2 times in total.
Re: Compiled Apgsearch Runs Too Slow
Running recompile.sh gives me this:confocaloid wrote: ↑March 13th, 2024, 7:49 pmThere might be some difference in which compiler is used and/or in parameters. What are messages printed during compilation?
Code: Select all
$ ./recompile.sh
sh -c 'rm -f apgluxe *.o */*.o *.op */*.op *.gdca */*.gcda *.profraw *.profdata || true'
echo Clean done
Clean done
grep: warning: stray \ before -
grep: warning: stray \ before -
grep: warning: stray \ before -
grep: warning: stray \ before -
grep: warning: stray \ before -
grep: warning: stray \ before -
Ensuring lifelib is up-to-date...
Rule unspecified; assuming b3s23.
Symmetry unspecified; assuming C1.
Configuring rule b3s23; symmetry C1
Using /usr/bin/python3 to configure lifelib...
Valid symmetry: C1
Success!
g++ -c -Wall -Wextra -pedantic -O3 -pthread -g -march=native -flto --std=c++11 main.cpp -o main.o
g++ -c -Wall -Wextra -pedantic -O3 -pthread -g -march=native -flto --std=c++11 includes/md5.cpp -o includes/md5.o
g++ -c -Wall -Wextra -pedantic -O3 -pthread -g -march=native -flto --std=c++11 includes/happyhttp.cpp -o includes/happyhttp.o
g++ -pthread -flto main.o includes/md5.o includes/happyhttp.o -o apgluxe
lto-wrapper: warning: using serial compilation of 10 LTRANS jobs
true
true oo o
true oo ooo
true o
true oo ooo
true o o
true o o
true o
apgluxe v5.43-ll2.5.8: Rule b3s23 is correctly configured.
apgluxe v5.43-ll2.5.8: Symmetry C1 is correctly configured.
By: C.R. Hilton, currently working on another cool spaceship.
Re: Compiled Apgsearch Runs Too Slow
1 thread precompiled:confocaloid wrote: ↑March 13th, 2024, 7:49 pmedit: maybe one could attempt running both compiled and precompiled versions using 2 threads or using 1 thread, to see whether the difference changes to "2x slower"/"same speed" correspondingly (i.e. matches the number of threads), or the difference remains ~4x.
Code: Select all
Linear-growth pattern detected: ←[1;32myl384_1_59_7aeb1999980c43b4945fb7fcdb023326←[0m
b3s23/C1: 100000 soups completed (1922.522 soups/second current, 1922.522 overall).
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
b3s23/C1: 200000 soups completed (1613.840 soups/second current, 1754.694 overall).
Code: Select all
b3s23/C1: 17712 soups completed (1771.200 soups/second current, 1771.200 overall).
b3s23/C1: 36442 soups completed (1873.000 soups/second current, 1822.100 overall).
b3s23/C1: 55061 soups completed (1861.900 soups/second current, 1835.305 overall).
b3s23/C1: 74141 soups completed (1908.000 soups/second current, 1853.479 overall).
b3s23/C1: 92879 soups completed (1873.800 soups/second current, 1857.506 overall).
b3s23/C1: 112426 soups completed (1953.723 soups/second current, 1873.548 overall).
Code: Select all
b3s23/C1: 100000 soups completed (3290.340 soups/second current, 3290.340 overall).
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
b3s23/C1: 200000 soups completed (3216.365 soups/second current, 3252.879 overall).
Linear-growth pattern detected: ←[1;32myl144_1_16_afb5f3db909e60548f086e22ee3353ac←[0m
Rare oscillator detected: ←[1;31mxp8_gk2gb3z11←[0m
Code: Select all
b3s23/C1: 15109 soups completed (1510.598 soups/second current, 1510.598 overall).
b3s23/C1: 34212 soups completed (1910.300 soups/second current, 1710.343 overall).
b3s23/C1: 50836 soups completed (1662.234 soups/second current, 1694.307 overall).
b3s23/C1: 66723 soups completed (1588.700 soups/second current, 1667.908 overall).
Linear-growth pattern detected: yl384_1_59_7aeb1999980c43b4945fb7fcdb023326
b3s23/C1: 84897 soups completed (1817.400 soups/second current, 1697.804 overall).
b3s23/C1: 102230 soups completed (1733.300 soups/second current, 1703.691 overall).
By: C.R. Hilton, currently working on another cool spaceship.
- confocaloid
- Posts: 3117
- Joined: February 8th, 2022, 3:15 pm
Re: Compiled Apgsearch Runs Too Slow
From comparing speeds, it looks like support for multithreading is either missing or disabled in your compilation environment.
edit: maybe someone else could help with OS-specific details, if the existing tutorials didn't help.
Tutorials/Contributing_to_Catagolue#Soup-searching_using_apgluxe_5.x
https://gitlab.com/apgoucher/apgmera
README.md wrote:If you have a quad-core computer and would prefer not to run four separate instances, then use the -p command to parallelise:This will use C++11 multithreading to parallelise across 4 threads, thus producing and uploading soups approximately four times more quickly. Note that this does not work on Cygwin.Code: Select all
./apgluxe -n 20000000 -k mykey -p 4
Last edited by confocaloid on March 13th, 2024, 10:20 pm, edited 1 time in total.
127:1 B3/S234c User:Confocal/R (isotropic CA, incomplete)
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.
Unlikely events happen.
My silence does not imply agreement, nor indifference. If I disagreed with something in the past, then please do not construe my silence as something that could change that.
Re: Compiled Apgsearch Runs Too Slow
How do I allow more threads to be used?confocaloid wrote: ↑March 13th, 2024, 9:51 pmFrom comparing speeds, it looks like support for multithreading is either missing or disabled in your compilation environment.
Edit: Cygwin does not support multithreads. I have no idea what compiler can though.
Edit 2: I may not be able to make lots of soups. But I was able to run multiple programs at once. The number of soups/second didn't decrease, so I think that helped.
By: C.R. Hilton, currently working on another cool spaceship.
- EvinZL
- Posts: 856
- Joined: November 8th, 2018, 4:15 pm
- Location: A tungsten pool travelling towards the sun
- Contact:
Re: Compiled Apgsearch Runs Too Slow
Try using WSL. Running apgsearch multithreaded on WSL works for me.