mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2016-08-02, 02:48   #12
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
San Diego, Calif.

281D16 Posts
Default

Quote:
Originally Posted by diep View Post
Quote:
Originally Posted by Angular View Post
Good points although a GPU sieve for specialized prime chains is unlikely as well :(
Click image for larger version

Name:	apples.jpg
Views:	114
Size:	6.4 KB
ID:	14718
...
Busy on a riesel sieve in CUDA as we speak :)

status: busy improving its speed.

First incarnations will only sieve a single k. Maybe later on a few more kernels for
sieving multiple k's...
Click image for larger version

Name:	oranges.jpg
Views:	114
Size:	8.9 KB
ID:	14719
Quote:
Originally Posted by Angular View Post
Good points although a GPU sieve for specialized prime chains is unlikely as well :(
Writing a chain sieve like NewPGen is what bit(prime)coiners did. That's why there are some truly randomly looking chains of lengths 9..14 in the top
So it is not all that unlikely.
Batalov is offline   Reply With Quote
Old 2016-08-02, 10:35   #13
diep
 
diep's Avatar
 
Sep 2006
The Netherlands

3·269 Posts
Default

Quote:
Originally Posted by Angular View Post
Nice work and its sounds a bit complex dealing with the NVidia GPU.

Any chance this would work for fixed n, and large k range k * 2^n+-1?
We can have a look to build such kernel.
Yet some time after it works great :)

Comes time comes more options.
Quote:
> Or a small n range with a large k range of say k ranging 4 billion?
Ah i get impression a number don't understand what i mean with '32 bits'. 32 bits means: "a number between 2 and up to 2^32". Which of course is 4 billion.

That's what is already working. Busy speeding that up. Right now it is speed of 6 newpgen cores with with fixed k and n range of 7 million.

This for a GTX580 that's delivering on paper a whopping amount of instructions a clock.

Hope to have speeded it up a lot by end of day (but don't bet on it).

Extending k to 63 bits number (so up to 2^63) shouldn't be major problem either if that's in high demand. It is some cut and pasting and a few lines extra.

Range of n i use right now to benchmark is n=7 million. That's coincidence though. Could pick tad smaller. Yet a range that much above n=10 million mightl be major pain for the GPU.
Quote:
>My projects with Cunningham primes are still using Newpgen (485 MB bitmap limit) and I would love to have another option.

(Must admit i don't know, or have forgotten or whatever, what cunningham primes are - yet will figure it out one day (again) i have the feeling)

I compare speed versus newpgen. Yet always the start you'll have to do with newpgen up to above p > 32 bits.

Realize it is just in phase of getting setup this program.

Some things will be fast on GPU, once you want sieve a limited n range and thousands of k's, then realize that basically making a perfect hashtable is a fast way to move forwards. The hashtable size in the L1 datacache (shared memory) of the GPU is very limited.

As soon as you can do things without hashtable, or with a tiny one, and it's about which entity can push through most instructions a clock for an embarrassingly parallel task, then GPU always wins of course.

Last fiddled with by diep on 2016-08-02 at 10:44
diep is offline   Reply With Quote
Old 2016-08-02, 12:03   #14
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3×23×89 Posts
Default

Flexibility with things like Cunningham chains, twins(or more generally k-tuples) would always be appreciated where possible.
henryzz is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why have ECM testing for known non-prime Mersenne numbers? sd235 Information & Answers 12 2018-12-06 17:56
Testing my numbers Vicodin Information & Answers 21 2017-05-02 05:11
Small Request for Proth Numbers c10ck3r Programming 6 2013-11-28 03:18
Can gmp-ecm be optimised for Proth numbers? geoff GMP-ECM 2 2008-12-17 13:28
testing big numbers sagan_fan Math 8 2002-10-09 21:20

All times are UTC. The time now is 15:02.


Fri Jul 7 15:02:45 UTC 2023 up 323 days, 12:31, 0 users, load averages: 1.70, 1.33, 1.20

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.

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