mersenneforum.org  

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

Reply
 
Thread Tools
Old 2020-03-19, 21:44   #1
saviourz
 
Mar 2020

32 Posts
Question CUDALucas - Compile on CUDA10.0

Hi folks,

I am compiling CUDALucas 2.06 from the sourceforge (https://sourceforge.net/projects/cudalucas/files/). After ran makefile, I used $./CUDALucas -r 1 to test it's reliable or not.

Unfortunately, I got all residue [0000000000000].

My OS is Ubuntu 18.04 and I have already changed CUDA path in makefile and also --generate-code arch=compute_60, code=sm_60.

Message showed on the top of ./CUDALucas:
binary compiled for CUDA 10.10
CUDA runtime version 10.0
CUDA driver version 10.20

GPU type is Tesla V100-PCIE and driver version is 440.33.01.

I have read all related posts to my question but none of them can solve my problem. What's more, I set worktodo.txt as "Test=79437629" and got
"Illegal residue: 0x0000000000000000. See mersenneforum.org for help.".

Thanks in advance for replies and sorry if I posted in wrong place.
saviourz is offline   Reply With Quote
Old 2020-03-20, 03:11   #2
axn
 
axn's Avatar
 
Jun 2003

23·683 Posts
Default

Quote:
Originally Posted by saviourz View Post
My OS is Ubuntu 18.04 and I have already changed CUDA path in makefile and also --generate-code arch=compute_60, code=sm_60.

Message showed on the top of ./CUDALucas:
binary compiled for CUDA 10.10
CUDA runtime version 10.0
CUDA driver version 10.20

GPU type is Tesla V100-PCIE and driver version is 440.33.01.
V100 or P100? V100 is CC7.0, not 6.0, so probably try recompiling with that. Ideally, even 6.0 should work, as long as a PTX is available, but ...

Last fiddled with by axn on 2020-03-20 at 03:11
axn is offline   Reply With Quote
Old 2020-03-20, 03:27   #3
saviourz
 
Mar 2020

32 Posts
Default

Quote:
Originally Posted by axn View Post
V100 or P100? V100 is CC7.0, not 6.0, so probably try recompiling with that. Ideally, even 6.0 should work, as long as a PTX is available, but ...
It's V100. I tried CC7.0 by setting "--generate-code arch=compute_70, code=sm_70".

But I still got "Illegal Residue 0x0000000".

Am I right for understanding how to set the CC version to 7.0?

Last fiddled with by saviourz on 2020-03-20 at 03:27
saviourz is offline   Reply With Quote
Old 2020-03-20, 03:30   #4
axn
 
axn's Avatar
 
Jun 2003

23×683 Posts
Default

Quote:
Originally Posted by saviourz View Post
Am I right for understanding how to set the CC version to 7.0?
That part is correct.

EDIT:- Next thing I'd look for is the fact that you have multiple CUDA versions in your system:
Code:
binary compiled for CUDA 10.10
CUDA runtime version 10.0
CUDA driver version 10.20
During compilation, it is picking 10.10, but during execution, it is picking 10.0, but the driver is 10.20. I'm not sure what it all means.

Would it be possible to nuke all nvidia stuff from the system and do a clean install of latest drivers + cuda toolkit?

Last fiddled with by axn on 2020-03-20 at 03:33
axn is offline   Reply With Quote
Old 2020-03-20, 03:42   #5
saviourz
 
Mar 2020

32 Posts
Exclamation

Quote:
Originally Posted by axn View Post
That part is correct.

EDIT:- Next thing I'd look for is the fact that you have multiple CUDA versions in your system:
Code:
binary compiled for CUDA 10.10
CUDA runtime version 10.0
CUDA driver version 10.20
During compilation, it is picking 10.10, but during execution, it is picking 10.0, but the driver is 10.20. I'm not sure what it all means.

Would it be possible to nuke all nvidia stuff from the system and do a clean install of latest drivers + cuda toolkit?
Thanks for the advice! I'll try to make the version of those three unified to see the results.
saviourz is offline   Reply With Quote
Old 2020-03-20, 22:42   #6
saviourz
 
Mar 2020

32 Posts
Default

Quote:
Originally Posted by axn View Post
That part is correct.

EDIT:- Next thing I'd look for is the fact that you have multiple CUDA versions in your system:
Code:
binary compiled for CUDA 10.10
CUDA runtime version 10.0
CUDA driver version 10.20
During compilation, it is picking 10.10, but during execution, it is picking 10.0, but the driver is 10.20. I'm not sure what it all means.

Would it be possible to nuke all nvidia stuff from the system and do a clean install of latest drivers + cuda toolkit?
Hi, I have already unified those three CUDA things to 10.20 as:
Code:
binary compiled for CUDA 10.20
CUDA runtime version 10.20
CUDA driver version 10.20
But the problem is still here. "Illegal Residue 0x0000000". I am now trying to run it on Tesla M6 with "--generate-code arch=compute_60,code=sm_60" in Makefile.

Which part should I suspect now? I checked nvidia-smi and saw ./CUDALucas was successfully on the GPU task queue.
saviourz is offline   Reply With Quote
Old 2020-03-21, 04:14   #7
axn
 
axn's Avatar
 
Jun 2003

10101010110002 Posts
Default

Somebody faced similar problem, and found that the pre-compiled binary worked. Try reading the next few posts starting here: https://www.mersenneforum.org/showth...460#post497460

But people have made it work with native compilation as well. Maybe you can try PM-ing those folks. Not sure what platform they were using.
axn is offline   Reply With Quote
Old 2020-03-21, 20:20   #8
saviourz
 
Mar 2020

32 Posts
Default

Quote:
Originally Posted by axn View Post
Somebody faced similar problem, and found that the pre-compiled binary worked. Try reading the next few posts starting here: https://www.mersenneforum.org/showth...460#post497460

But people have made it work with native compilation as well. Maybe you can try PM-ing those folks. Not sure what platform they were using.
Thanks for your advice! I changed CUDA version to 9.1 and used Linux pre-compiled CUDALucas from https://download.mersenne.ca/CUDALucas/old. The output seems good. No 0 residue appears in the middle of the looping.

But I am still trying to figure out my compilation problem. Open to any advice!
saviourz is offline   Reply With Quote
Old 2020-03-21, 23:58   #9
saviourz
 
Mar 2020

10012 Posts
Lightbulb

FYI,

I succeed in compiling CUDALucas v2.06 on Tesla M6 with CUDA runtime 10.20. The test is correct with "./CUDALucas -r 1".

I don't understand clearly about how the previous error happened. Only changes I made are in Makefile:

CUDA = "path to CUDA10.20"

--generate-code arch=compute_50, code=sm_50


I attached this executive file. Hope it can help.
Attached Files
File Type: zip CUDALucas.zip (65.9 KB, 304 views)
saviourz is offline   Reply With Quote
Old 2020-03-22, 00:15   #10
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

172208 Posts
Default

Quote:
Originally Posted by saviourz View Post
FYI,

I succeed in compiling CUDALucas v2.06 on Tesla M6 with CUDA runtime 10.20. The test is correct with "./CUDALucas -r 1".

I don't understand clearly about how the previous error happened. Only changes I made are in Makefile:

CUDA = "path to CUDA10.20"

--generate-code arch=compute_50, code=sm_50


I attached this executive file. Hope it can help.
Outstanding! Thanks for posting the executable file.
Welcome to the forum.
If you haven't seen it yet, you might find some background and reference info interesting at https://www.mersenneforum.org/showthread.php?t=24607
Please run some double-checks with that executable to confirm it produces correct runs.

Last fiddled with by kriesel on 2020-03-22 at 00:21
kriesel is online now   Reply With Quote
Old 2020-03-22, 00:18   #11
saviourz
 
Mar 2020

32 Posts
Thumbs up

Quote:
Originally Posted by kriesel View Post
Outstanding! Thanks for posting the executable file.
Welcome to the forum.
If you haven't seen it yet, you might find some background and reference info interesting at https://www.mersenneforum.org/showthread.php?t=24607
Thanks for those useful information!
saviourz is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
GGNFS won't compile? pakaran Factoring 14 2015-09-05 23:36
Help me compile Pachi GO program, please skan Programming 8 2012-04-19 10:21
Compile v26 on Windows Brain Software 1 2010-11-24 00:34
Anyone want to compile an OS X ecm for yoyo? jasong GMP-ECM 1 2009-03-14 11:22
help to compile.... em99010pepe Programming 8 2006-12-06 17:11

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


Fri Jul 7 15:23:52 UTC 2023 up 323 days, 12:52, 0 users, load averages: 1.04, 1.07, 1.08

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.

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