mersenneforum.org  

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

Reply
 
Thread Tools
Old 2011-02-23, 08:33   #430
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2·5·61 Posts
Default

Hi ,alexhiggins732

CUDALucas.cu:
//# define RINT(x) (floor(x+0.5))
# define RINT(x) (((x) + A ) - B)

Please replace RINT(). floor is slow but safety.
msft is offline   Reply With Quote
Old 2011-02-23, 08:44   #431
alexhiggins732
 
Mar 2010
Brick, NJ

4316 Posts
Talking

Quote:
Originally Posted by msft View Post
Hi ,alexhiggins732

CUDALucas.cu:
//# define RINT(x) (floor(x+0.5))
# define RINT(x) (((x) + A ) - B)

Please replace RINT(). floor is slow but safety.
Thanks for your work and the fast reply.

Ok, now the hex string is gone for 216149. Is this correct?


Quote:
CUDALucas.1.2>cudalucas 216149 -t
Iteration 10000 M( 216149 )P, n = 524288, CUDALucas v1.2
Good thing is 18760031 matches your check file.
Quote:
CUDALucas.1.2>cudalucas 18760031
Iteration 10000 M( 18760031 )C, 0x6f3b0ca04650a35d, n = 1048576, CUDALucas v1.2
How can I tell if the final result is good? It should match the LL result on the exponent page?


Again thanks for your great work!

Edit.

I modifed CUDALucas.cu to
Code:
#if defined(__x86_32__)
 #define RINT(x) (floor(x+0.5))    
#else
 #define RINT(x) (((x) + A ) - B)
#endif
I have attached the source code with make files for win32, win64, and Linux and added a short README.txt with basic instructions on how to compile on each of the systems. Feel free to include these in your distribution.

The attachment also contains win32 binaries.
Attached Files
File Type: zip CUDALucas.1.2.Win32.zip (116.0 KB, 178 views)

Last fiddled with by alexhiggins732 on 2011-02-23 at 09:20 Reason: Adding Win32 files
alexhiggins732 is offline   Reply With Quote
Old 2011-02-23, 10:52   #432
vsuite
 
Jan 2010

2×3×19 Posts
Default

Please advise how to get this to work.

mfaktc is working so the cuda drivers are there.

cufft64 and cudart64 are both in the directory.

Thanks

D:\Data\Mersenne Primes\cudalucas.1.0b.winx64>cudalucas 26826383
CUDALucas.cu(526) : cufftSafeCall() CUFFT error.

D:\Data\Mersenne Primes\cudalucas.1.0b.winx64>cudalucas -c10000 26826383
CUDALucas.cu(526) : cufftSafeCall() CUFFT error.
vsuite is offline   Reply With Quote
Old 2011-02-23, 12:43   #433
nuggetprime
 
nuggetprime's Avatar
 
Mar 2007
Austria

12E16 Posts
Default

what gpu do you have?
It probably isn't possible to run primality tests on it since it doesn't support double precision(same as mine).
But you can still do sieving/TF on it, things for which the cpu/gpu speedup is much higher than for primality tests.
nuggetprime is offline   Reply With Quote
Old 2011-02-24, 02:42   #434
vsuite
 
Jan 2010

2·3·19 Posts
Default

Geforce GTX 460 768MB. Don't tell me that can't do DP.
vsuite is offline   Reply With Quote
Old 2011-02-24, 08:51   #435
Karl M Johnson
 
Karl M Johnson's Avatar
 
Mar 2010

41110 Posts
Default

Of course you can. Only < sm_13 cant do DP FP.
Karl M Johnson is offline   Reply With Quote
Old 2011-02-24, 23:26   #436
alexhiggins732
 
Mar 2010
Brick, NJ

1038 Posts
Default

Quote:
Originally Posted by vsuite View Post
Please advise how to get this to work.

mfaktc is working so the cuda drivers are there.

cufft64 and cudart64 are both in the directory.

Thanks

D:\Data\Mersenne Primes\cudalucas.1.0b.winx64>cudalucas 26826383
CUDALucas.cu(526) : cufftSafeCall() CUFFT error.

D:\Data\Mersenne Primes\cudalucas.1.0b.winx64>cudalucas -c10000 26826383
CUDALucas.cu(526) : cufftSafeCall() CUFFT error.

Looking at this post http://forums.nvidia.com/index.php?showtopic=100557

the problem was caused by an invalid SDK version/driver version combo.

Please run mfaktc and post your cuda info as I did in this thread above. http://www.mersenneforum.org/showpos...&postcount=429
alexhiggins732 is offline   Reply With Quote
Old 2011-02-25, 04:24   #437
vsuite
 
Jan 2010

11100102 Posts
Default

I think I get it. The machine is elsewhere, so I'll check in the morning, but what CUDA version/toolkit do I need for Windows 7 64-bit with CudaLucas1.0b, and what do I need for Windows XP 32 bit with CudaLucas1.2?

I upped the 32-bit machine to 32_32_16 to get mfaktc1.5 Win 32 to work.

Thanks.
vsuite is offline   Reply With Quote
Old 2011-02-25, 12:06   #438
vsuite
 
Jan 2010

7216 Posts
Default

To solve it, I installed both the 32_32_16 toolkit (needed for the latest mfaktc) and 32_31_9 toolkit (needed for CudaLucas).

I copied both cudart and cufft files to the mfaktc and cudalucas folders, though iirc cudalucas also worked without copying the files.

CudaLucas seems to use very little CPU, like 2%. So I have 1 thread of a Athlon 64 X2 running mfaktc, one threadlet running cudalucas, and one thread running prime95.

New question. Can CudaLucas1.2.Win32 be reasonably used on Windows 7, 64-bit? (seems to be running, will see if/when it finishes the current assignment.)
vsuite is offline   Reply With Quote
Old 2011-02-27, 07:39   #439
Karl M Johnson
 
Karl M Johnson's Avatar
 
Mar 2010

3×137 Posts
Default

Can someone who has 3.1 toolkit and <260.xx drivers please compile the latest CUDALucas for windows ?
Both 64 and 32 bit binaries will do fine.
Karl M Johnson is offline   Reply With Quote
Old 2011-03-01, 11:38   #440
vsuite
 
Jan 2010

2×3×19 Posts
Default GPU/CPU Usage

A single instance of mfaktc uses about 53% of the GPU (and a full core, ie 25%), and I can run two instances, to increase the overall M/sec, pushing the GPU to 100%, but reducing the M/sec for each instance.

CudaLucas appears to use minimal CPU resources eg 2% of a Q6600 quad-core, but maxes out (~99%) the GPU.

Does it make sense to run multiple instances of CudaLucas to increase overall throughput, or is the GPU really maxed out?

Thanks.
vsuite is offline   Reply With Quote
Reply

Thread Tools


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 02:49.

Wed Jun 3 02:49:57 UTC 2020 up 70 days, 23 mins, 2 users, load averages: 1.99, 1.98, 1.71

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.