mersenneforum.org  

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

Reply
 
Thread Tools
Old 2016-12-07, 16:30   #419
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

59×67 Posts
Default

I am now trying to build GMP-ECM w/ CUDA on my Linux box. A few hundred curves a day in not cutting it for me anymore.

I tried configure with -—enable-gpu and it doesn’t find cuda.h. I then added -—with-cuda=/usr/local/cuda-8.0.

Not sure why I needed to do that because other packages (mfaktc, mmff, msieve) all build/make fine as is.

BTW, I’ve added the following to .bashrc per nvidia documentation.
Code:
export PATH=/usr/local/cuda-8.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH
The output is the following, so I am lost.
Code:
configure: Using cuda.h from /usr/local/cuda-8.0/include
checking cuda.h usability... no
checking cuda.h presence... yes
configure: WARNING: cuda.h: present but cannot be compiled
configure: WARNING: cuda.h:     check for missing prerequisite headers?
configure: WARNING: cuda.h: see the Autoconf documentation
configure: WARNING: cuda.h:     section "Present But Cannot Be Compiled"
configure: WARNING: cuda.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------ ##
configure: WARNING:     ## Report this to ecm-discuss@lists.gforge.inria.fr ##
configure: WARNING:     ## ------------------------------------------------ ##
checking for cuda.h... no
configure: error: required header file missing
I searched lists.gforge.inria.fr but couldn’t find anything meaningful.
I don't recall seeing a pre-built Linux x86_64 for CUDA 8.0 fly by.
RichD is offline   Reply With Quote
Old 2016-12-08, 05:47   #420
jwaltos
 

13×251 Posts
Default

Quote:
Originally Posted by RichD View Post

I searched lists.gforge.inria.fr but couldn’t find anything meaningful.
I don't recall seeing a pre-built Linux x86_64 for CUDA 8.0 fly by.
This is something I used that worked before. Perhaps it may help...or not.

[jw@localhost ~]$ export PATH=/usr/local/cuda-7.0/bin:$PATH
[jw@localhost ~]$ export LD_LIBRARY_PATH=/usr/local/cuda-7.0/lib64:$LD_LIBRARY_PATH
[jw@localhost trgpu]$ su
Password:
[root@localhost trgpu]# ldconfig /usr/local/cuda-7.0/lib64
[root@localhost trgpu]# make check

## GPU program works only when in root mode.
  Reply With Quote
Old 2016-12-08, 16:37   #421
chris2be8
 
chris2be8's Avatar
 
Sep 2009

25·7·11 Posts
Default

I had a lot of fun getting it to work. See http://mersenneforum.org/showthread....mfs#post364978 and nearby posts for details of what I had to do.

Chris
chris2be8 is offline   Reply With Quote
Old 2016-12-09, 05:42   #422
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

F7116 Posts
Default

I don’t have a problem with CUDA or my GPU setup. I am running two GPU cards in a box with nvidia toolkit, samples, SDK and drivers all working properly. I have been running mfaktc for months using CUDA 8.0. At times I will stop one of the mfaktc jobs and run mmff for a while. I even run msieve poly selection using the GPU with no problems building or making.

I can’t get past the configure step in ECM-GMP let along even trying to make it. I do have a successful make without the GPU.

I don’t want to go back to CUDA 7.0 or 7.5 because they both had the carry bit bug in them. I’ll just wait until the next release of configure (ECM-GMP) for CUDA 8.0 to see if that will address my problem.
RichD is offline   Reply With Quote
Old 2016-12-11, 10:52   #423
0PolarBearsHere
 
0PolarBearsHere's Avatar
 
Oct 2015

1000010102 Posts
Default

Quote:
Originally Posted by wombatman View Post
I truthfully don't remember all the steps I went through to get everything compiled successfully with VS2012 (I have no experience with VS2015). I'm attaching the gpu_ecm exe I have built. Try it out and see what dlls you need for it.
Are you able to compile a cuda8 version?
0PolarBearsHere is offline   Reply With Quote
Old 2016-12-12, 03:40   #424
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

3×619 Posts
Default

Not a clue, but I can give it a shot. What compute capability do you want/need?
wombatman is offline   Reply With Quote
Old 2017-02-19, 05:59   #425
0PolarBearsHere
 
0PolarBearsHere's Avatar
 
Oct 2015

10A16 Posts
Default

I've got a gtx1080 that I want to test with ecm to see how it compares with trial factoring.
0PolarBearsHere is offline   Reply With Quote
Old 2017-02-19, 06:06   #426
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

585410 Posts
Default

I can't think of any candidate numbers that fit within the GPU-ECM 1018-bit limit but would otherwise be trial-factored rather than sieved. What numbers are you interested in testing?
VBCurtis is offline   Reply With Quote
Old 2017-02-19, 07:25   #427
xilman
Bamboozled!
 
xilman's Avatar
 
"𒉺𒌌𒇷𒆷𒀭"
May 2003
Down not across

2E1416 Posts
Default

Quote:
Originally Posted by 0PolarBearsHere View Post
I've got a gtx1080 that I want to test with ecm to see how it compares with trial factoring.
I can provide a bunch of GCW numbers if you are interested.
xilman is offline   Reply With Quote
Old 2017-02-23, 23:54   #428
0PolarBearsHere
 
0PolarBearsHere's Avatar
 
Oct 2015

2·7·19 Posts
Default

Quote:
Originally Posted by xilman View Post
I can provide a bunch of GCW numbers if you are interested.
Definitely interested. I'll need some instructions about how to test them though.
0PolarBearsHere is offline   Reply With Quote
Old 2017-02-25, 14:59   #429
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

1,699 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
I can't think of any candidate numbers that fit within the GPU-ECM 1018-bit limit but would otherwise be trial-factored rather than sieved. What numbers are you interested in testing?
So GPU has limit, when you use ECM, and what is about -pm1?
In that case is same limit ?

Last two weeks I play with ECM-GMP ( ver 7.0.4) for Windows. When I do Pminus1 in Prime95 I learn ( what i need to learn) in one day, and found many factors.
But learning curve of ECM_GMP is such a different thing. It is so erratic

For example

Quote:
C:\Users\Alpha-I7\Desktop\New folder\ecm>ecm -mpzmod -one -v -nobase2 50 < test.txt
GMP-ECM 7.0.4-dev [configured with GMP 6.1.1] [ECM]
Running on Alpha-I7-PC
Input number is 4*53^500288+1 (862636 digits)
Using REDC
Using B1=50, B2=1356, polynomial x^1, sigma=0:10519400687847901454
dF=12, k=2, d=90, d2=7, i0=-6
Expected number of curves to find a factor of n digits:
35 40 45 50 55 60 65 70 75 80
Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf
Step 1 took 58407ms
********** Factor found in step 1: 123685
Since I use -one in command line ECM-GMP , when is found factor should skip for next one, but no: he stop ( I terminate it after 15 minutes)
And settings B1 and B2 are so much different then setting same values in Prime95.

I would like to "master" ECM-GMP for at least same speed and same numbers of factors found like in Prime95, but it looks like it will be hard task to do it.
pepi37 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running CUDA on non-Nvidia GPUs Rodrigo GPU Computing 3 2016-05-17 05:43
Error in GMP-ECM 6.4.3 and latest svn ATH GMP-ECM 10 2012-07-29 17:15
latest SVN 1677 ATH GMP-ECM 7 2012-01-07 18:34
Has anyone seen my latest treatise? davieddy Lounge 0 2011-01-21 19:29
Latest version? [CZ]Pegas Software 3 2002-08-23 17:05

All times are UTC. The time now is 04:22.


Fri Jul 7 04:22:19 UTC 2023 up 323 days, 1:50, 0 users, load averages: 1.93, 1.71, 1.56

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.

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