mersenneforum.org  

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

Reply
 
Thread Tools
Old 2019-01-20, 23:04   #23
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

5×223 Posts
Default

Hi Luigi,

yes, verbose mode is an old feature, I'm not sure about exact verbosity levels but at least increasing "-v <level>" increases the amount of output (similar to mfaktc).

Oliver
TheJudger is offline   Reply With Quote
Old 2019-01-20, 23:09   #24
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

21338 Posts
Default

Hi Serge,


Quote:
Originally Posted by Batalov View Post
It's been years since I last built it, but I remember that there are messages about register usage etc. Check at compile time that they are not containing complaints about 'out of registers' (iirc).



There are a couple "#define"s in the header that allow to unroll loops less aggressively (again, iirc, some of them are at 3, at 4; just guessing that the new architectures may have higher throughput but less registers, or something like that).
because I wasn't able to reproduce on Linux using the same code and I *assume* that GPU code has no difference on Linux and Windows I didn't take a deeper look at this. There should be some minor differences on CPU code (check src/compatibility.h) but not in GPU code.

Oliver
TheJudger is offline   Reply With Quote
Old 2019-01-24, 15:39   #25
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

114018 Posts
Default

Quote:
Originally Posted by TheJudger View Post
Hi Serge,




because I wasn't able to reproduce on Linux using the same code and I *assume* that GPU code has no difference on Linux and Windows I didn't take a deeper look at this. There should be some minor differences on CPU code (check src/compatibility.h) but not in GPU code.

Oliver
Tried to compile mmff on Linux (Ubuntu 18.04 LTS) and CUDA 10.0 for a RTX 2060 with either cc=6.1 or cc=7.0(BTW, what's its CC? 7.0?).

The error appears at linking:

Code:
gcc -fPIC -L/usr/local/cuda/lib64/ timer.o parse.o read_config.o mfaktc.o checkpoint.o signal_handler.o output.o tf_barrett96_gs.o gpusieve.o -lcudart -lm -o ../mmff.exe
tf_barrett96_gs.o:(.data.rel.local.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): riferimento non definito a "__gxx_personality_v0" (= reference not defined to ...)
collect2: error: ld returned 1 exit status
Makefile:38: recipe for target '../mmff.exe' failed
make: *** [../mmff.exe] Error 1
ET_ is offline   Reply With Quote
Old 2019-01-24, 16:59   #26
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/

24·199 Posts
Default

Quote:
Originally Posted by ET_ View Post
BTW, what's its CC? 7.0?
7.5, like the other Turing chips.
Mark Rose is offline   Reply With Quote
Old 2019-01-24, 17:26   #27
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

5×7×139 Posts
Default

Quote:
Originally Posted by Mark Rose View Post
7.5, like the other Turing chips.
Still failing linkediting.
ET_ is offline   Reply With Quote
Old 2019-01-24, 21:32   #28
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

5·223 Posts
Default

Hi Luigi,

Quote:
Originally Posted by ET_ View Post
Tried to compile mmff on Linux (Ubuntu 18.04 LTS) and CUDA 10.0 for a RTX 2060 with either cc=6.1 or cc=7.0(BTW, what's its CC? 7.0?).

The error appears at linking:

Code:
gcc -fPIC -L/usr/local/cuda/lib64/ timer.o parse.o read_config.o mfaktc.o checkpoint.o signal_handler.o output.o tf_barrett96_gs.o gpusieve.o -lcudart -lm -o ../mmff.exe
tf_barrett96_gs.o:(.data.rel.local.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): riferimento non definito a "__gxx_personality_v0" (= reference not defined to ...)
collect2: error: ld returned 1 exit status
Makefile:38: recipe for target '../mmff.exe' failed
make: *** [../mmff.exe] Error 1
That one is an easy one, just add
Code:
-lstdc++
to the linker flags (host code, not GPU code).
Turing is CC 7.5 but can run CC 7.0 (Volta) code easily.

Oliver
TheJudger is offline   Reply With Quote
Old 2019-01-24, 21:36   #29
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

114018 Posts
Default

Quote:
Originally Posted by TheJudger View Post
Hi Luigi,



That one is an easy one, just add
Code:
-lstdc++
to the linker flags (host code, not GPU code).
Turing is CC 7.5 but can run CC 7.0 (Volta) code easily.

Oliver
ET_ is offline   Reply With Quote
Old 2019-01-26, 20:15   #30
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

100010110112 Posts
Default

Luigi,

so on Ubuntu mmff 0.28 seems to work, right?
Can you try the worktodo from above and run it with -v 3 or or so? Does it show the issue with failing to calculate % 1, too?
@all: did earlier version (on older HW) show this behaviour/issue, too?

Oliver
TheJudger is offline   Reply With Quote
Old 2019-01-26, 22:18   #31
Dylan14
 
Dylan14's Avatar
 
"Dylan"
Mar 2017

23×3×52 Posts
Default

Quote:
Originally Posted by TheJudger View Post
@all: did earlier version (on older HW) show this behaviour/issue, too?

Oliver
I compiled the other version available on mersenne.ca's download mirror (version .26) and ran the worktodo file that you mentioned previously (on a GTX 1050 ti, I don't have any other compatible hardware to test this on). Unfortunately, this version does not like the exponents tested, since I get messages like:


Code:
WARNING: Exponents >= 160 are not supported in Fermat factoring!
         Ignoring TF exponent 167 from 2^197 to 2^198!
which makes sense, since some kernels that exist in v0.28 don't exist in v0.26. When I try the worktodo.txt file included in the v0.26 source (attached), I get a line like


Code:
Verifying (2^(2^31)) % 0 = 0
ERROR: Class problems.  Factor divisible by 2, 3, 5, 7, or 11
All relevant output is included in the zip file.
Attached Files
File Type: zip mmff-v26 output.zip (2.0 KB, 247 views)
File Type: txt worktodo.txt (3.0 KB, 276 views)
Dylan14 is online now   Reply With Quote
Old 2019-01-27, 12:47   #32
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

114018 Posts
Default

Quote:
Originally Posted by TheJudger View Post
Luigi,

so on Ubuntu mmff 0.28 seems to work, right?
Can you try the worktodo from above and run it with -v 3 or or so? Does it show the issue with failing to calculate % 1, too?

Oliver
It looks like it does...
Attached Files
File Type: zip worktodo.log.zip (8.8 KB, 227 views)
ET_ is offline   Reply With Quote
Old 2019-01-27, 13:06   #33
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

5·223 Posts
Default

Quote:
Originally Posted by ET_ View Post
It looks like it does...
It doesn't mean that this is a (big) issue, just want to know if this happens for you, too. And would be good to know if this occurs in earlier builts (or versions) aswell.

Speaking for mfaktc in debug mode (compiletime option) there are lots of checks on (interim) results. Sometimes the results are not within the expected range but this is OK because the issue was already on the input, e.g. the kernel is designed to handle factors abot 264 and on input are numbers slightly below 264. Mfaktc checks the input before writing (error-)messages (ignoring issues when input was not within the designed limits). This could be the case here, too.

Oliver
TheJudger is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
2LMs with exponent divisible by 13 Batalov Cunningham Tables 1 2011-04-14 10:23
5th RPS Drive: 14 Ks < 300 divisible by 3 Kosmaj Riesel Prime Search 756 2008-07-04 12:50
Divisible by a Prime davar55 Puzzles 13 2007-09-12 17:35
Divisible by 7 ? davar55 Puzzles 4 2007-08-09 20:10
Divisible by 7 davar55 Puzzles 3 2007-05-14 22:05

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


Fri Jul 7 15:21:38 UTC 2023 up 323 days, 12:50, 0 users, load averages: 1.19, 1.11, 1.10

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.

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