mersenneforum.org  

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

Reply
 
Thread Tools
Old 2017-06-16, 02:35   #1
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
Rep├║blica de California

25·307 Posts
Default Mlucas version 17

http://www.mersenneforum.org/mayer/README.html

Last fiddled with by ewmayer on 2017-07-03 at 00:44 Reason: url updated to reflect ftp-site migration
ewmayer is offline   Reply With Quote
Old 2017-06-16, 12:07   #2
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

112438 Posts
Default

Tried to compile on Odroid-C2 (Version 14.1 worked on Raspberry PI 3 32 bit).

Obviously I did not USE SSE2 or other Intel optimizations, but even using either the
Code:
gcc -c -O3 -DUSE_THREADS ../*.c >& build.log
or the
Code:
gcc -c -O3 ../*.c >& build.log
option, I had errors (see attachments).

I assumed the version was targeted to Intel/AMD platforms, and I know that optimization for ARM processors is next on your to-do list, so I'm not complaining .
I had some spare time and decided to give the code a try on my platform, that's all.

From a quick look I see that on line 783 of platform.h you ask
Code:
/* ARMv8 64 bit processors support native 64 bit types */
#elif(defined(__aarch64__))
but a quick grep can't locate where the symbol should be defined (this line didn't appear on version 14.1, as the condition was driven by ARM_EABI). I guess it's a placeholder for a next version.

Anyway I also tried to compile the source on my Intel G2030 following the readme, with no success (see attached build_Intel-log).

Again,
Code:
../platform.h:1462:3: error: #else after #else
I feel sorry and inapt for this job as it looks it's something related to myself and my computers, and not to the code.

Luigi
Attached Files
File Type: gz system.txt.tar.gz (848 Bytes, 139 views)
File Type: gz build.log.tar.gz (6.3 KB, 134 views)
File Type: zip build_Intel.log.zip (4.1 KB, 137 views)

Last fiddled with by ET_ on 2017-06-16 at 12:08
ET_ is offline   Reply With Quote
Old 2017-06-17, 02:49   #3
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
Rep├║blica de California

25·307 Posts
Default

Hi, Luigi:

Thanks for the build attempts. On the Odroid, try this to dump the compiler/platform predefines:

gcc -dM -E - < /dev/null

I will look into the platform.h preprocessor-logic issue over the weekend - too tired today.

I started this thread in hopes we can get a small group of folks doing builds and bug reports, in hopes y'all can help each other out even if I'm not available.

[Later] OK, a bit of dinner and I had energy to look at the following error
Quote:
Originally Posted by ET_ View Post
Code:
../platform.h:1462:3: error: #else after #else
I feel sorry and inapt for this job as it looks it's something related to myself and my computers, and not to the code.
The platform.h bug is all on me - That was the last piece of code I fiddled with before cutting the release, and somehow I forgot to copy it from my src/dev-directory to the release-dir. New tarballs uploaded, but you can grab just that single file, attached below.
Attached Files
File Type: bz2 platform.h.bz2 (11.1 KB, 157 views)

Last fiddled with by ewmayer on 2017-06-17 at 04:31
ewmayer is offline   Reply With Quote
Old 2017-06-17, 11:18   #4
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

13×367 Posts
Default

Thank you Ernst.

The new platform.h worked like a charm on my Intel platform.

Unfortunately, the odroid platform still has some glitches.

I'm a noob, but it looks like the imul_macro0.h header still lacks the correct detection for the long multiplication and squaring macros on the aarm64.

I attached the log of the builds with and without USE_THREADS.

Finally, the command

gcc -dM -E - < /dev/null

gives me the following message:

gcc: fatal error: no input files
compilation terminated

HTH.

Luigi
Attached Files
File Type: gz build.log.tar.gz (5.2 KB, 137 views)
File Type: gz build_with_threads.log.tar.gz (5.4 KB, 142 views)
ET_ is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mlucas version 17.1 ewmayer Mlucas 96 2019-10-16 12:55
Mlucas and mprime on the same box daxmick Software 5 2018-01-05 09:48
Mlucas on ubuntu Damian Mlucas 17 2017-11-13 18:12
MLucas on IBM Mainframe Lorenzo Mlucas 52 2016-03-13 08:45
mlucas on sun delta_t Mlucas 14 2007-10-04 05:45

All times are UTC. The time now is 05:28.

Wed Nov 25 05:28:27 UTC 2020 up 76 days, 2:39, 4 users, load averages: 2.18, 1.82, 1.80

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.