mersenneforum.org  

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

Reply
 
Thread Tools
Old 2022-12-07, 06:42   #23
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

33×11×19 Posts
Default

Quote:
Originally Posted by Stargate38 View Post
Anyone know a solution? I'm doing this in WSL, under Windows 10. I plan on using fastECPP instead of Primo from now on.
Give up on windows and move your technical work to linux permanently. :)
VBCurtis is offline   Reply With Quote
Old 2022-12-07, 18:58   #24
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2×3×877 Posts
Default

Here are some timing comparisons for a single machine with 4 cores and 8 threads running ecpp and Primo:
Code:
Candidate size: 300 decimal digits (mm:ss):
ecpp single core: 00:04
ecpp-mpi 4 cores: 00:24
primo 8 cores: 00:03.65
Candidate size: 1000 decimal digits (mm:ss):
ecpp single core: 01:34
ecpp-mpi 4 cores: 01:42
primo 8 threads: 00:47.57
Candidate size: 2000 decimal digits (mm:ss):
ecpp single core: 21:29
ecpp-mpi 4 cores: 11:42
primo 8 threads: 13:13
Candidate size: 3000 decimal digits (mm:ss):
ecpp single core: 129:08
ecpp-mpi 4 cores: 45:44
primo 8 threads: 75:20
Conclusion: Primo clearly runs faster than fastECPP until well over 1000 decimal digits. By 2000 decimal digits, fastECPP with MPI becomes faster.
EdH is offline   Reply With Quote
Old 2022-12-07, 22:45   #25
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·3·877 Posts
Default

Quote:
Originally Posted by Stargate38 View Post
I was able to compile mpfrcx successfully, but when I try to compile cm, I get the following on the "make check" step:

Code:
../config/test-driver: line 112: 10398 Segmentation fault      (core dumped) "$@" >> "$log_file" 2>&1
FAIL: tecpp
============================================================================
Testsuite summary for cm 0.4.1dev
============================================================================
# TOTAL: 3
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to andreas.enge@inria.fr
============================================================================
make[3]: *** [Makefile:682: test-suite.log] Error 1
make[3]: Leaving directory '/root/Math/cm-0.4.1dev-41c4bce/cm-0.4.1dev/tests'
make[2]: *** [Makefile:790: check-TESTS] Error 2
make[2]: Leaving directory '/root/Math/cm-0.4.1dev-41c4bce/cm-0.4.1dev/tests'
make[1]: *** [Makefile:877: check-am] Error 2
make[1]: Leaving directory '/root/Math/cm-0.4.1dev-41c4bce/cm-0.4.1dev/tests'
make: *** [Makefile:407: check-recursive] Error 1
I've attached the log file in question. Anyone know a solution? I'm doing this in WSL, under Windows 10. I plan on using fastECPP instead of Primo from now on.
I just experienced the exact same error when trying to install the cm dev version on a Debian system that I had already been running the other version on. I needed to use make uninstall from the root user and make clean as the non-root user. I then removed the directory and started again from the tar file. All went well with that try.

This had nothing to do with WSL. This was a pure Debian system.
EdH is offline   Reply With Quote
Old 2022-12-09, 16:36   #26
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·3·877 Posts
Default

For anyone interested, I have added a BASH script to the first post, that can process factordb PRPs automatically using fastECPP.

ETA: I added a random value to be added to the candidate download. This should help avoid collisions between multiple workers in the same range of the db. The "srand" value can be considered the range for the PRPs, beginning at the start value.

Last fiddled with by EdH on 2022-12-09 at 17:31
EdH is offline   Reply With Quote
Old 2022-12-13, 19:25   #27
frank1285
 
"Frank"
Mar 2020
The Netherlands

5 Posts
Default

I have the same issue as discussed earlier:
Quote:
mv -f .deps/ecpp.Tpo .deps/ecpp.Plo
/bin/bash ../libtool --tag=CC --mode=link gcc -std=c99 -g -O2 -version-info 0:0:0 -o libcm.la -rpath /usr/local/lib get_version.lo timer.lo file.lo nt.lo qdev.lo modular.lo modpol.lo mpzx.lo classgroup.lo modclass.lo curve.lo param.lo class.lo jmodp.lo pari.lo ecpp.lo -lpari -lmpfrcx -lmpc -lmpfr -lgmp -lz -lm
libtool: link: gcc -shared -fPIC -DPIC .libs/get_version.o .libs/timer.o .libs/file.o .libs/nt.o .libs/qdev.o .libs/modular.o .libs/modpol.o .libs/mpzx.o .libs/classgroup.o .libs/modclass.o .libs/curve.o .libs/param.o .libs/class.o .libs/jmodp.o .libs/pari.o .libs/ecpp.o -lpari -lmpfrcx -lmpc -lmpfr -lgmp -lz -lm -g -O2 -Wl,-soname -Wl,libcm.so.0 -o .libs/libcm.so.0.0.0
/usr/bin/ld: pari_mainstack: TLS definition in /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpari.so section .tbss mismatches non-TLS reference in .libs/pari.o
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libpari.so: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:458: recipe for target 'libcm.la' failed
make[2]: *** [libcm.la] Error 1
make[2]: Leaving directory '/home/frank/cm-0.4.1dev/lib'
Makefile:407: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/frank/cm-0.4.1dev'
Makefile:339: recipe for target 'all' failed
make: *** [all] Error 2
However I can't resolve it with make uninstall, make clean, removal of directory and start from tar file again as the suggestion below named. I installed Pari 2.15.1 which seemed to help an earlier post with similar issues, see 1 and 2. I tried it both on a Ubuntu 18.04 and a Ubuntu 22.10 machine. Same result, same error.
Quote:
Originally Posted by EdH View Post
I just experienced the exact same error when trying to install the cm dev version on a Debian system that I had already been running the other version on. I needed to use make uninstall from the root user and make clean as the non-root user. I then removed the directory and started again from the tar file. All went well with that try.

This had nothing to do with WSL. This was a pure Debian system.
Does anyone have an idea on how to solve this? Much appreciated already!
frank1285 is offline   Reply With Quote
Old 2022-12-14, 03:08   #28
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

24×281 Posts
Default

Quote:
Originally Posted by frank1285 View Post
I installed Pari 2.15.1

Does anyone have an idea on how to solve this? Much appreciated already!
Did you run ./Configure and sudo make install for Pari? Maybe a silly question. If so, does this happen cleanly?
Have you exported LD_LiBRARY_PATH to include /usr/local/lib so that the system knows where to find the new Pari for reference to compilation?

Last fiddled with by paulunderwood on 2022-12-14 at 03:16
paulunderwood is offline   Reply With Quote
Old 2022-12-14, 06:01   #29
frank1285
 
"Frank"
Mar 2020
The Netherlands

58 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Did you run ./Configure and sudo make install for Pari? Maybe a silly question. If so, does this happen cleanly?
Have you exported LD_LiBRARY_PATH to include /usr/local/lib so that the system knows where to find the new Pari for reference to compilation?
Thanks for your answer Paul! For Pari I ran ./Configure and sudo make install without any (visible) problems. Everything goes well up to the point of Make of CM-0.4.1dev.

I also added /usr/local/lib to LD_LIBRARY_PATH indeed, so that should be fine as well.

I plan to run it on google cloud platform, maybe that could have something to do with it?
frank1285 is offline   Reply With Quote
Old 2022-12-14, 06:08   #30
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

24·281 Posts
Default

Quote:
Originally Posted by frank1285 View Post
Thanks for your answer Paul! For Pari I ran ./Configure and sudo make install without any (visible) problems. Everything goes well up to the point of Make of CM-0.4.1dev.

I also added /usr/local/lib to LD_LIBRARY_PATH indeed, so that should be fine as well.

I plan to run it on google cloud platform, maybe that could have something to do with it?
Did you export LD_LIBRARY_PATH before compilation of CM?
paulunderwood is offline   Reply With Quote
Old 2022-12-14, 06:50   #31
frank1285
 
"Frank"
Mar 2020
The Netherlands

5 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Did you export LD_LIBRARY_PATH before compilation of CM?
Yes, I did!
frank1285 is offline   Reply With Quote
Old 2022-12-14, 07:17   #32
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

24·281 Posts
Default

Quote:
Originally Posted by frank1285 View Post
Yes, I did!
Weird. The CM compilation error clearly says Pari and TLS is at fault. I have only ever seen this when trying with an old Pari. I am stumped!

I found this https://askubuntu.com/questions/3786...6-64-linux-gnu

You could add -L/usr/local/lib to CM's Makefile at CFLAGS ??

Last fiddled with by paulunderwood on 2022-12-14 at 07:33
paulunderwood is offline   Reply With Quote
Old 2022-12-14, 07:55   #33
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

24×281 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Weird. The CM compilation error clearly says Pari and TLS is at fault. I have only ever seen this when trying with an old Pari. I am stumped!

I found this https://askubuntu.com/questions/3786...6-64-linux-gnu

You could add -L/usr/local/lib to CM's Makefile at CFLAGS ??
Another thing you could try is sudo apt-get remove pari-gp libpari-dev I think those are correct. If neccessary, reinstall Pari that you downloaded and try again to compile CM.
paulunderwood is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How I install YAFU onto my Ubuntu Machines EdH EdH 118 2021-09-29 12: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 msieve onto my Ubuntu Machines EdH EdH 0 2018-02-23 14:43
How I Install GMP onto my Ubuntu Machines EdH EdH 0 2018-02-21 23:48

All times are UTC. The time now is 08:08.


Wed Feb 8 08:08:39 UTC 2023 up 174 days, 5:37, 1 user, load averages: 0.82, 0.82, 0.87

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.

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