mersenneforum.org  

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

Reply
 
Thread Tools
Old 2012-07-04, 16:09   #1475
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

3×199 Posts
Default

Quote:
Originally Posted by flashjh View Post
When you build, what do you use to include debugging info? I use MSVS command line, so the /DEBUG doesn't work.

I've been trying to move the projects to the full MSVS, but I haven't spent a lot of time getting it to work yet.
I usually do
Code:
... /DEBUG /PDB "outfile.pdb" ...
This way you have a small exe file you can send around, and if you need the debug info, just send the matching pdb along ... Hmm, I notice, I did not do that for mfakto yet ...
Bdot is offline   Reply With Quote
Old 2012-07-04, 16:32   #1476
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

1,123 Posts
Default

Quote:
Originally Posted by Bdot View Post
I usually do
Code:
... /DEBUG /PDB "outfile.pdb" ...
Do you use /DEBUG with the linker or cl? For me, when I use /DEBUG with cl, it won't even compile.

I just used /DEBUG with the linker and it made the .pdb file, they are uploaded to the 2.04 beta folder.

Last fiddled with by flashjh on 2012-07-04 at 16:33
flashjh is offline   Reply With Quote
Old 2012-07-04, 18:33   #1477
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Real quick, are all these new versions with Bdot's unmodified code?

And is not /DEBUG merely defining "EBUG" for the preprocessor, not actually including debugging symbols? I will say that most of your conversation is gibberish to me.
Dubslow is offline   Reply With Quote
Old 2012-07-04, 19:49   #1478
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

722110 Posts
Default

PS Even if Bdot's original code also doesn't work, I still suspect it's a MSFT library/API function problem, because his Linux code is working fine for me.
Dubslow is offline   Reply With Quote
Old 2012-07-04, 19:54   #1479
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

59710 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Real quick, are all these new versions with Bdot's unmodified code?

And is not /DEBUG merely defining "EBUG" for the preprocessor, not actually including debugging symbols? I will say that most of your conversation is gibberish to me.

these are options to the linker, otherwise ... you're right.

Is that the reason for the new lines like these in filelocking.c?
Code:
#ifdef EBUG
...
I'll test the debug symbols tomorrow.
Bdot is offline   Reply With Quote
Old 2012-07-04, 21:36   #1480
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Whenever I need to conditionally insert print statements, I use EBUG, because then I can do '-DEBUG'.

In this case, that's leftover from when I initially added the file lock code; I added those print statements just to convince myself I was actually calling the right functions at the right time. I didn't actually do any debugging, because everything appeared to be working.
Dubslow is offline   Reply With Quote
Old 2012-07-05, 03:44   #1481
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

100011000112 Posts
Default

Quote:
Originally Posted by Dubslow View Post
PS Even if Bdot's original code also doesn't work, I still suspect it's a MSFT library/API function problem, because his Linux code is working fine for me.
Ok, I got home today and CL finally produced the same error. Strange thing is I've done 2 other exponents with no problems. I'll do some troubleshooting to see what I can find. The debugging isn't working for MSVS because it's compiled with the command prompt. Tomorrow I'm going to see if I can get CL to compile in MSVS. If anyone can use the debgging info included in the debug version, let me know.
flashjh is offline   Reply With Quote
Old 2012-07-05, 12:47   #1482
apsen
 
Jun 2011

131 Posts
Default

Quote:
Originally Posted by Bdot View Post
A stacktrace would certainly be of great help. If you can get the debug symbols for your build, then you can even look at the data / variables ...
Stack trace wasn't helpful at all and I have no debug info :-(
apsen is offline   Reply With Quote
Old 2012-07-05, 12:54   #1483
apsen
 
Jun 2011

131 Posts
Default

Quote:
Originally Posted by flashjh View Post
I uploaded a 3.2 x64 version with dubug info (hopefully). If someone could test the debug and let me know, I would appreciate it.
That one didn't crash.

And I lost my saved checkpoints so it will take a little bit until I get another set.
apsen is offline   Reply With Quote
Old 2012-07-05, 13:02   #1484
apsen
 
Jun 2011

131 Posts
Default

Quote:
Originally Posted by flashjh View Post
Ok, I got home today and CL finally produced the same error. Strange thing is I've done 2 other exponents with no problems. I'll do some troubleshooting to see what I can find. The debugging isn't working for MSVS because it's compiled with the command prompt. Tomorrow I'm going to see if I can get CL to compile in MSVS. If anyone can use the debgging info included in the debug version, let me know.
I've compiled the version I got from SF in GUI MSVS but that one behaves with smallest exponent. Didn't have a chance to test with the other ones. Also I'm not sure which version is used to compile the crashing executable...
apsen is offline   Reply With Quote
Old 2012-07-05, 14:22   #1485
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

112310 Posts
Default

Quote:
Originally Posted by apsen View Post
I've compiled the version I got from SF in GUI MSVS but that one behaves with smallest exponent. Didn't have a chance to test with the other ones. Also I'm not sure which version is used to compile the crashing executable...
What settings do you use in MSVS?

The debug version is the latest revision.
flashjh is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't DC/LL them with CudaLucas LaurV Data 131 2017-05-02 18:41
CUDALucas / cuFFT Performance on CUDA 7 / 7.5 / 8 Brain GPU Computing 13 2016-02-19 15:53
CUDALucas: which binary to use? Karl M Johnson GPU Computing 15 2015-10-13 04:44
settings for cudaLucas fairsky GPU Computing 11 2013-11-03 02:08
Trying to run CUDALucas on Windows 8 CP Rodrigo GPU Computing 12 2012-03-07 23:20

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


Fri Jul 7 14:47:25 UTC 2023 up 323 days, 12:15, 0 users, load averages: 1.82, 1.47, 1.22

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.

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