mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > GMP-ECM

Reply
 
Thread Tools
Old 2016-01-14, 18:50   #1
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

10010011112 Posts
Question GMP-ECM for Android

Has anybody yet tried to cross compile a version for Android@ARM?

(Please don't start now a discussion about processing power, battery drain and user interface.)

I never tried to compile gmp-ecm. Is there a link how to compile it and which preconditions I need, especially which other libraries are needed?

My background for the question is that I have thousands of Android clients available which might run some curves.

yoyo
yoyo is offline   Reply With Quote
Old 2016-01-14, 19:18   #2
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

2·7·227 Posts
Default

Just to give you a quick answer before experts can better address your situation.

First you need the GMP arithmetic library here.
I believe it supports ARM processors but I don’t know anything about this family of CPUs. Once GMP is configured, compiled and installed you can move on to ECM.

You can get ECM here. Similarly you can configure, compile and make this product which links to GMP. The final product is known as GMP-ECM.

Some people use a different math library (MPIR) but I’m not familiar with it.
RichD is offline   Reply With Quote
Old 2016-01-14, 20:46   #3
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

32·11·103 Posts
Default

Quote:
Originally Posted by yoyo View Post
Has anybody yet tried to cross compile a version for Android@ARM?

(Please don't start now a discussion about processing power, battery drain and user interface.)

I never tried to compile gmp-ecm. Is there a link how to compile it and which preconditions I need, especially which other libraries are needed?

My background for the question is that I have thousands of Android clients available which might run some curves.

yoyo
The simple answer is that I don't know.

Rather more productively, perhaps you could ask questiosn of the relevant dev teams. First ask on gmp-devel@gmplib.org about the availability or otherwise of GMP on ARM Android (note that Android runs on x86 too). Then ask on ecm-discuss@lists.gforge.inria.fr about GMP-ECM on ARM Android.

Needless to say, some initial research via search engines would be highly advisable.

Paul
xilman is online now   Reply With Quote
Old 2016-01-14, 21:55   #4
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

2×587 Posts
Default

I've ran BOINC on my smartphone in the past (HTC One M7 with Snapdragon 600) on Enigma@home. From what I remember it was terribly slow compared to a quad core computer CPU.

Do Smartphones/ ARM devices have enough free RAM for the stage2 of ECM?
VictordeHolland is offline   Reply With Quote
Old 2016-01-15, 00:13   #5
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

118716 Posts
Default

If the curves are small enough, sure. My Nexus 5 (late 2013 production) has 1GB memory and often 600+ MB free. There's plenty of useful curves that can be run in half a GB.
VBCurtis is offline   Reply With Quote
Old 2016-01-19, 18:35   #6
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

575110 Posts
Default

I have run ecm on a raspberry pi. The big problem when I last tried it was compiling and running programs on an android device. Looks like you need the android NDK. I would be interested if you could get it compiled.

Last fiddled with by henryzz on 2016-01-19 at 18:47
henryzz is offline   Reply With Quote
Old 2016-01-19, 20:04   #7
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

59110 Posts
Default

I cross compiled already other stuff with android NDK. My concerns are only which other libs I need and how to convince configure to cross configure it and do not a configure for the host where I compile it.
yoyo is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Android app recommendations Uncwilly Lounge 11 2020-10-07 12:40
GIMPS client on Android? user115 Information & Answers 14 2017-06-16 03:55
Mlucas (or Prime95) for Android yurigomes Mlucas 13 2016-11-25 11:13
handwriting on Android questions jasong jasong 2 2013-02-21 00:04
Android henryzz Lounge 7 2011-01-19 18:21

All times are UTC. The time now is 14:06.

Sun Nov 29 14:06:22 UTC 2020 up 80 days, 11:17, 4 users, load averages: 1.19, 1.36, 1.26

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.