mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software > Mlucas

Reply
 
Thread Tools
Old 2017-11-18, 18:36   #12
BrainStone
 
BrainStone's Avatar
 
Nov 2017
Karlsruhe, Germany

31 Posts
Default

Quote:
Originally Posted by ewmayer View Post
Did your above unthreaded build attempt use the modified has_asimd() I posted? If it did and you got no errors in the compilation of util.c, that means you can go back to your original -DUSE_THREAD build (assuming you did that in a separate obj-file directory, and the resulting .o files are still around) and simply do an incremental recompile of util.c, and that should allow you link an executable. If you did your latest build in the same obj-file directory, I suggest you create a 2nd dir strictly for threaded-build obj-files, cd to that, then first make sure compilation of util.c works, then retry the all-sourcefiles compile.
Yes, I used the modified version in the unthreaded build. The threaded build succeeded and works (ran the test command and got the right output)

Will run a self test now.

Thanks for your help



Out of interest; is the source for this available on GitHub or some other open source platform?

Last fiddled with by BrainStone on 2017-11-18 at 18:49
BrainStone is offline   Reply With Quote
Old 2017-11-18, 22:30   #13
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
Rep├║blica de California

2×13×443 Posts
Default

Quote:
Originally Posted by BrainStone View Post
Yes, I used the modified version in the unthreaded build. The threaded build succeeded and works (ran the test command and got the right output)

Will run a self test now.

Thanks for your help
Glad to hear it, and happy to do it - I think I fixed the issues that caused your unthreaded build to fail, will bundle up the modified files and post here for you to try in a few hours.

Quote:
Out of interest; is the source for this available on GitHub or some other open source platform?
No, the mersenneforum.org-linked is the only official ftp site for the code. I briefly flirted with Souceforge some years back, but as with George and his Prime95 client, this has always been pretty much a 1-man show, though I've had plenty of folks send me suggestions and their own local code mods to include in my upcoming releases. You are welcome to do the same.
ewmayer is offline   Reply With Quote
Old 2017-11-18, 23:38   #14
BrainStone
 
BrainStone's Avatar
 
Nov 2017
Karlsruhe, Germany

31 Posts
Default

Quote:
Originally Posted by ewmayer View Post
No, the mersenneforum.org-linked is the only official ftp site for the code. I briefly flirted with Souceforge some years back, but as with George and his Prime95 client, this has always been pretty much a 1-man show, though I've had plenty of folks send me suggestions and their own local code mods to include in my upcoming releases. You are welcome to do the same.
Well GitHub is a great platform. And git (or some other scm) should be used to develop software anyways :P
BrainStone is offline   Reply With Quote
Old 2017-11-19, 00:59   #15
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
Rep├║blica de California

2·13·443 Posts
Default

Quote:
Originally Posted by ewmayer View Post
I think I fixed the issues that caused your unthreaded build to fail, will bundle up the modified files and post here for you to try in a few hours.
AFAICT, 2 files need patches to fix the errors in your unthreaded build - I think it's a good thing for my builders and power-users to get their hands a little dirty, as it were, so the first of these is via simple edit to your local sourcefile. :) In radix144_ditN_cy_dif1.c, swap the following two lines, 180 and 181 (i.e. move the 'double' decl. outside the #if-block):
Code:
	double wt_re,wt_im, wi_re,wi_im;	// Fermat-mod/LOACC weights stuff, used in both scalar and SIMD mode
  #endif
And here is the patched radix52_ditN_cy_dif1.c - if incremental-rebuild of both files (gcc -c -O3 [path-to-src-dir]/radix52_ditN_cy_dif1.c, followed by ^52^144) succeeds, try linking, and then you'll simply have to wait for your threaded-build's self-tests to finish before running same using the unthreaded build:
Attached Files
File Type: bz2 radix52_ditN_cy_dif1.c.bz2 (18.0 KB, 87 views)

Last fiddled with by ewmayer on 2017-11-19 at 01:00
ewmayer is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
ARM builds and SIMD-assembler prospects ewmayer Mlucas 183 2019-02-25 08:17
GMP-ECM with --enable-openmp flag set in configure = bad results? GP2 GMP-ECM 3 2016-10-16 10:21
Work flag richs YAFU 11 2016-01-30 14:27
C and the scarry flag Mr. P-1 Programming 77 2015-02-23 00:04
SIMD string->int fivemack Software 7 2009-03-23 18:15

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

Wed Sep 30 16:08:02 UTC 2020 up 20 days, 13:19, 0 users, load averages: 2.15, 1.98, 1.87

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