mersenneforum.org  

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

Reply
 
Thread Tools
Old 2012-02-24, 15:17   #804
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

331 Posts
Default Windows64 binaries for 1.58

Quote:
Originally Posted by msft View Post
Ver 1.58
LaurV's Functional specification.
1.58 Win64, all untested:
  • CUDA 4.0 / SM 2.0
  • CUDA 4.1 / SM 2.0
  • CUDA 4.1 / SM 2.1
Interesting: CUDA 4.1 / SM 2.0 & SM 2.1 have same file size. I haven't made a diff. It may be that SM 2.1 is useless (I run a 560 Ti with CC2.1). Or I made a mistake. ;-)
Attached Files
File Type: zip CUDALucas_1.58_Win64.zip (236.3 KB, 103 views)
Brain is offline   Reply With Quote
Old 2012-02-24, 15:50   #805
bcp19
 
bcp19's Avatar
 
Oct 2011

12478 Posts
Default

Quote:
Originally Posted by LaurV View Post
You How can you be offended by a guy from the internet, which you don't know, and he doesn't know you for real? People tell a lot of sheesh...
<glances around the forum> Ummmmm, no comment.
bcp19 is offline   Reply With Quote
Old 2012-02-25, 04:23   #806
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

21438 Posts
Default

Quote:
Originally Posted by LaurV View Post
The first two DC's completed with CudaLucas1.49, drv4.0, cc2.0:

M( 26026433 )C, 0x457f73d49f90b822, n = 1572864, CUDALucas v1.49
M( 26176441 )C, 0x19283a19b247ba__, n = 1572864, CUDALucas v1.49

First is a match. Second is not (therefore I masked it). Both results coming from a gtx580 standard clock (no overclock this time). I am not going to repeat the second test as long as it is not confirmed as bad by a p95 run. After someone will clear the exponent, and if my test proved bad, I will repeat it to see if it come from the program.

edit: another small observation, the -c switch does not work for the screen, like in the older versions (I did not check if it really works for the checkpoint files too, but the screen effect is the first one observable) used to work. For -c30000, v1.49 still outputs to the screen every 10k iterations.
I finally got a match... I went back by going back to 1.49. Anyone gotten a match with a newer version?

Code:
 
M( 26026433 )C, 0x457f73d49f90b822, n = 1572864, CUDALucas v1.49
So now I'm going to try newer versions. Anyone who gets a match on another exponent, please post your results so I can use that to test also.

BTW - Here are the other failures I've had for M26026433:

Code:
 
M( 26026433 )C, 0x190df3dc67d21885, n = 1572864, CUDALucas v1.50 
M( 26026433 )C, 0xee1b55e2b3e0c8b5, n = 1572864, CUDALucas v1.50
EDIT: I'm running 1.49 and 1.58 (4.1 | 2.0) side-by-side on the same GPU to see how long the residues match... hopefully the whole time.

Last fiddled with by flashjh on 2012-02-25 at 04:34 Reason: Add test info
flashjh is offline   Reply With Quote
Old 2012-02-25, 06:57   #807
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

1,123 Posts
Default

Quote:
Originally Posted by flashjh View Post
EDIT: I'm running 1.49 and 1.58 (4.1 | 2.0) side-by-side on the same GPU to see how long the residues match... hopefully the whole time.
A ways in and they still both match... 1.58 is ahead now though, so it must be a little faster.
flashjh is offline   Reply With Quote
Old 2012-02-25, 10:51   #808
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

331 Posts
Default Backup compiler

One way to compile CUDALucas for Win64:
0. Have Win7 64 bit
1. Install Nvidia GPU Toolkit (e.g. version 4.1)
2. Install Nvidia GPU SDK (e.g. version 4.1)
3. Install Make for Windows
4. Install MS Visual Studio 2010 Professional Trial Edition (needed for 64bit, trial will not run out as only command line usage)
5. Set Path for nvcc, make and cl.exe (from VS/bin)
6. Edit given makefile for Win64: Adapt CUDA and SM parameter (e.g. 4.1/2.0). Rename it to makefile.
7. Enter "make" in console being in the CUDALucas/src directory.
8. Delete *.obj files.
9. Find the exe and be happy.

This should be it.

The day will come I won't be there to compile it. So a backup person/compiler will be needed. Any volunteers?
Brain is offline   Reply With Quote
Old 2012-02-25, 14:34   #809
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

1,123 Posts
Default

Quote:
Originally Posted by Brain View Post
One way to compile CUDALucas for Win64:
0. Have Win7 64 bit
1. Install Nvidia GPU Toolkit (e.g. version 4.1)
2. Install Nvidia GPU SDK (e.g. version 4.1)
3. Install Make for Windows
4. Install MS Visual Studio 2010 Professional Trial Edition (needed for 64bit, trial will not run out as only command line usage)
5. Set Path for nvcc, make and cl.exe (from VS/bin)
6. Edit given makefile for Win64: Adapt CUDA and SM parameter (e.g. 4.1/2.0). Rename it to makefile.
7. Enter "make" in console being in the CUDALucas/src directory.
8. Delete *.obj files.
9. Find the exe and be happy.

This should be it.

The day will come I won't be there to compile it. So a backup person/compiler will be needed. Any volunteers?
I'll try to get it setup...
flashjh is offline   Reply With Quote
Old 2012-02-26, 01:08   #810
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

46316 Posts
Default

Here are my attempts at CUDA 1.58 4.1 sm_2.0 & sm_2.1

I can't make 4.0 yet because it's not installed. I tested briefly against 1.49 and got residue matches. Let me know if you test it.

Jerry

EDIT: I included my makefile. If you are trying to compile and have questions, let me know - I had quite a time getting this working so I can probably help!
Attached Files
File Type: zip CUDALucas.158.WIN64.zip (162.1 KB, 78 views)

Last fiddled with by flashjh on 2012-02-26 at 01:10
flashjh is offline   Reply With Quote
Old 2012-02-26, 04:23   #811
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

1,123 Posts
Default

Quote:
Originally Posted by Brain View Post
One way to compile CUDALucas for Win64:
0. Have Win7 64 bit
1. Install Nvidia GPU Toolkit (e.g. version 4.1)
2. Install Nvidia GPU SDK (e.g. version 4.1)
3. Install Make for Windows
4. Install MS Visual Studio 2010 Professional Trial Edition (needed for 64bit, trial will not run out as only command line usage)
5. Set Path for nvcc, make and cl.exe (from VS/bin)
6. Edit given makefile for Win64: Adapt CUDA and SM parameter (e.g. 4.1/2.0). Rename it to makefile.
7. Enter "make" in console being in the CUDALucas/src directory.
8. Delete *.obj files.
9. Find the exe and be happy.

This should be it.

The day will come I won't be there to compile it. So a backup person/compiler will be needed. Any volunteers?
Brain,

When you compile, do you get any warnings?

I get the following:

Code:
CUDALucas.cu(524) : warning C4244: 'argument' : conversion from 'float' to 'size_t', possible loss of data
CUDALucas.cu(845) : warning C4018: '<' : signed/unsigned mismatch
CUDALucas.cu(1359) : warning C4018: '<' : signed/unsigned mismatch
CUDALucas.cu(1560) : warning C4018: '<' : signed/unsigned mismatch
So far the testing is going ok, but a lot more testing needs to be done.

I noticed an error during resume with 1.58. Is anyone else seeing problems with >=1.50 when resuming?

BTW - How did you do step 5 (from VS/bin)? Thanks.

Last fiddled with by flashjh on 2012-02-26 at 04:26
flashjh is offline   Reply With Quote
Old 2012-02-26, 06:51   #812
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

Hi ,flashjh
I believe you can fix it.
Code:
  ip = (int *) malloc (((2 + sqrt ((float) n / 2)) * sizeof (int)));
-> ip = (int *) malloc (((size_t) (2 + sqrt ((float) n / 2)) * sizeof (int)));

  for (i = (STRIDE * STRIDE); i < (N + STRIDE * STRIDE);
->  for (i = (int) (STRIDE * STRIDE); i < (int) (N + STRIDE * STRIDE);
msft is offline   Reply With Quote
Old 2012-02-26, 14:15   #813
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

112310 Posts
Default

Quote:
Originally Posted by msft View Post
Hi ,flashjh
I believe you can fix it.
Code:
  ip = (int *) malloc (((2 + sqrt ((float) n / 2)) * sizeof (int)));
-> ip = (int *) malloc (((size_t) (2 + sqrt ((float) n / 2)) * sizeof (int)));

  for (i = (STRIDE * STRIDE); i < (N + STRIDE * STRIDE);
->  for (i = (int) (STRIDE * STRIDE); i < (int) (N + STRIDE * STRIDE);
I'll change it later, thanks.
flashjh is offline   Reply With Quote
Old 2012-02-26, 16:17   #814
Brain
 
Brain's Avatar
 
Dec 2009
Peine, Germany

331 Posts
Default

Quote:
Originally Posted by flashjh View Post
Brain,

When you compile, do you get any warnings?

I get the following:

Code:
CUDALucas.cu(524) : warning C4244: 'argument' : conversion from 'float' to 'size_t', possible loss of data
CUDALucas.cu(845) : warning C4018: '<' : signed/unsigned mismatch
CUDALucas.cu(1359) : warning C4018: '<' : signed/unsigned mismatch
CUDALucas.cu(1560) : warning C4018: '<' : signed/unsigned mismatch
I get the following:
Code:
------------------------
Compile output for 1.58
------------------------
"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1/bin/nvcc" -c CUDALucas.cu -o CUDALucas.cuda4.1.sm_21.WIN64.obj -m64 --ptxas-options=-v "-ccbin=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\/bin" -DWIN64  -Xcompiler /EHsc,/W3,/nologo,/Ox,/Oy,/GL -arch=sm_21 -DMERS_PACKAGE -DBIT_SIEVE -DTESTING_SMALL_EXPONENTS -DSIEVE_SIZE_IN_BYTES=32 -DNUM_SMALL_PRIMES=32768 -DDO_NOT_USE_LONG_DOUBLE  "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1/include" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1/include/cudart" "-IQ:\NVIDIA GPU Computing SDK 4.1/C/common/inc"  -D__x86_64__ -O3
tmpxft_00000ca8_00000000-14_CUDALucas.ii
CUDALucas.cu(524) : warning C4244: 'argument' : conversion from 'float' to 'size_t', possible loss of data
CUDALucas.cu(845) : warning C4018: '<' : signed/unsigned mismatch
CUDALucas.cu(1359) : warning C4018: '<' : signed/unsigned mismatch
CUDALucas.cu(1560) : warning C4018: '<' : signed/unsigned mismatch
cl /Ox /Oy /GL /W4 /fp:fast /nologo /c /Tp timeval.c /Fotimeval.WIN64.obj
timeval.c
link /nologo /LTCG  CUDALucas.cuda4.1.sm_21.WIN64.obj timeval.WIN64.obj "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1/lib/x64/cudart.lib" "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.1/lib/x64/cufft.lib" /out:CUDALucas.cuda4.1.sm_21.WIN64.exe
Generating code
Finished generating code
Quote:
Originally Posted by flashjh View Post
BTW - How did you do step 5 (from VS/bin)? Thanks.
Ehm, hard to remember. Nvidia tools automically set path, make was done manually, cl.exe probably also manually, not sure. Path is now:
Code:
------------------------
Path settings
------------------------
C:\Program Files (x86)\Microsoft Visual Studio  10.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Windows\Microsoft.NET\Framework64\v3.5;C:\Program  Files (x86)\Microsoft Visual Studio 10.0\VC\VCPackages;C:\Program Files  (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files  (x86)\Microsoft Visual Studio 10.0\Common7\Tools;C:\Program Files  (x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft  SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\x64;C:\Program Files  (x86)\Microsoft SDKs\Windows\v7.0A\bin\x64;C:\Program Files  (x86)\Microsoft SDKs\Windows\v7.0A\bin;C:\Program Files (x86)\NVIDIA  Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing  Toolkit\CUDA\v4.1\\bin;C:\Program Files\NVIDIA GPU Computing  Toolkit\CUDA\v4.1\libnvvp\;C:\Program Files\Perl\site\bin;C:\Program  Files\Perl\bin;C:\Program Files\NVIDIA GPU Computing  Toolkit\CUDA\v4.0\bin\;C:\Program Files\Common Files\Microsoft  Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft  Shared\Windows  Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program  Files (x86)\Windows Live\Shared;C:\Program Files  (x86)\QuickTime\QTSystem\;C:\ProgramData\NVIDIA Corporation\NVIDIA GPU  Computing SDK 4.0\C\common\bin;C:\Program Files (x86)\Microsoft SQL  Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL  Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL  Server\100\DTS\Binn\;;C:\ProgramData\NVIDIA Corporation\NVIDIA GPU  Computing SDK 4.1\C\common\bin;C:\Program  Files\TortoiseSVN\bin;C:\Program Files (x86)\NVIDIA  Corporation\PhysX\Common;C:\Program Files\NVIDIA GPU Computing  Toolkit\CUDA\v4.1\\bin;C:\Program Files\NVIDIA GPU Computing  Toolkit\CUDA\v4.1\libnvvp\;C:\Program Files\Perl\site\bin;C:\Program  Files\Perl\bin;C:\Program Files\NVIDIA GPU Computing  Toolkit\CUDA\v4.0\bin\;C:\Program Files\Common Files\Microsoft  Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft  Shared\Windows  Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program  Files (x86)\Windows Live\Shared;C:\Program Files  (x86)\QuickTime\QTSystem\;C:\ProgramData\NVIDIA Corporation\NVIDIA GPU  Computing SDK 4.0\C\common\bin;C:\Program Files (x86)\Microsoft SQL  Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL  Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL  Server\100\DTS\Binn\;;C:\ProgramData\NVIDIA Corporation\NVIDIA GPU  Computing SDK 4.1\C\common\bin;C:\Program  Files\TortoiseSVN\bin;C:\Program Files (x86)\GnuWin32\bin;C:\Program  Files (x86)\Microsoft Visual Studio 10.0\VC\bin
Hard to read, I know. Me lazy.
Brain 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 13:00.


Fri Aug 6 13:00:21 UTC 2021 up 14 days, 7:29, 1 user, load averages: 3.37, 2.93, 2.71

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