![]() |
|
|
#1321 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
160658 Posts |
Quote:
I'm half considering going to all the bother; see my edit of the post you quoted
Last fiddled with by Dubslow on 2012-05-31 at 06:06 |
|
|
|
|
|
|
#1322 | ||
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
Quote:
Quote:
Code:
CUFLAGS = -m64 --ptxas-options=-v -ccbin=$(CCLOC) -D$(BIT) -Xcompiler /EHsc,/W3,/nologo,/Ox,/Oy,/GL -arch=$(CUDA_ARCH) -DMERS_PACKAGE -DBIT_SIEVE -DTESTING_SMALL_EXPONENTS -DSIEVE_SIZE_IN_BYTES=32 -DNUM_SMALL_PRIMES=32768 -DDO_NOT_USE_LONG_DOUBLE "-I$(CUDA)/include" -D__x86_64__ -O3 Last fiddled with by flashjh on 2012-05-31 at 06:15 |
||
|
|
|
|
|
#1323 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Quote:
Code:
CUFLAGS = -m64 --ptxas-options=-v -ccbin=$(CCLOC) -D$(BIT) -Xcompiler /EHsc,/W3,/nologo,/Ox,/Oy,/GL -arch=$(CUDA_ARCH) -DDO_NOT_USE_LONG_DOUBLE "-I$(CUDA)/include" -D__x86_64__ -O3 Code:
$(CC) $(CFLAGS) /c $< /Fo$@ I also added various preprocessor statements to parse.c and copied the (float) casts into CUDALucas.cu. There should be a lot less manual work required on your part flash I suddenly see why compiling was such a pain. One last thing, flash: I have no clue if this would work or not, but since "C" was not required on those function defines at the top of CUDALucas.cu, does it compile if you delete the "extern"? If so, try deleting those statements altogether; "parse.h" has been modified to include the definitions, so that any "extern" statements are only needed on Linux.msft, do you have any comments about arch, compiler flags, etc.? (PS, Could you please explain how choose_fft_length() works, and/or why the array np[] isn't just [1,2,3,4,5,6,7]?) (Note: I tried making it so that you could enable -t on the fly; it turns out there's a reason msft didn't have that . If you use flash's compilation before this post, don't press "t" when -k is enabled. That's reverted in this attachment.)
Last fiddled with by Dubslow on 2012-05-31 at 07:56 |
|
|
|
|
|
|
#1324 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Quote:
![]() And, since my previous post, I've now made it so that running "-r" (self test) prints slightly more information, as well as automatically enabling the -t extra error checking. It's attached. |
|
|
|
|
|
|
#1325 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Whenever I run any sort of -cufftbench, CUDALucas takes up a whole processor core (as opposed to ~nil when doing "production" work). This happens even in versions 2.00 and 2.01, so I know it's not anything I did to the code. Has anybody else seen this happen?
Edit: My screen also becomes very unresponsive (though not unuseable). Again, this doesn't normally happen. Last fiddled with by Dubslow on 2012-06-01 at 04:02 |
|
|
|
|
|
#1326 | ||
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
Quote:
Quote:
1) The MAKEFILE.WIN you created worked except I can't remove '/Tp'. Without that the compiler didn't understand 'timezone': Code:
timeval.c(31) : warning C4115: 'timezone' : named type definition in parentheses timeval.c(32) : error C2055: expected formal parameter list, not a type list make: *** [timeval.x64.obj] Error 2 3) CUDALucas.cu line 352 needed (float) 4) Parse.c line 386 needed '}' to close the if statement (this one took me a while to find) ![]() 5) I was able to remove the "-I$(CUDA)/include" line in the MAKEFILE.WIN 6) I was able to compile 3.2 | sm_13 ( I was using the wrong environment for 3.2 before... that's what happens with no )I didn't change any of your linux definitions and the statements seem good for compiling 'out of the box' for Win and Linux. You can take the included files and see if you can compile. If not, pass everything back to me for another run. Have you tested everything on Linux? Since you made the changes, can you pass along a sample worktodo.txt file with good and bad so I can ensure Windows is capable of everything your Linux can do ;) (Source here, Compiled versions in next post) Last fiddled with by flashjh on 2012-06-01 at 06:12 |
||
|
|
|
|
|
#1327 |
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
CUDALucas 2.02 x64 (updated) - Untested
Includes: CUDA 3.2 | sm_13 CUDA 4.0 | sm_20 CUDA 4.0 | sm_21 |
|
|
|
|
|
#1328 |
|
Romulan Interpreter
Jun 2011
Thailand
7×1,373 Posts |
grrrr...
command line should have priority when there is no ini file, and from the tentative to switch the politeness it can be seen that it has, but in this case the messages are gibberish... Code:
>cl2024020x64 -d 0 -c 100000 -s backup0 -t -polite 0 -k 26070883 Warning: Couldn't parse ini file option CheckpointIterations; using default: 10000 Warning: Couldn't parse ini file option Threads; using default: 256 Warning: Couldn't parse ini file option SaveAllCheckpoints; using default: off Warning: Couldn't parse ini file option CheckRoundoffAllIterations; using default: off Warning: Couldn't parse ini file option Polite; using default: 1 Warning: Couldn't parse ini file option Interactive; using default: off Warning: Couldn't parse ini file option DeviceNumber; using default: 0 Warning: Couldn't parse ini file option PrintDeviceInfo; using default: off Warning: Couldn't parse ini file option WorkFile; using default: "worktodo.txt" Warning: Couldn't parse ini file option FFTLength; using autoselect. ------- DEVICE 0 ------- name GeForce GTX 580 <...snip...> multiProcessorCount 16 mkdir: cannot create directory `backup0': File exists Continuing work from a partial result of M26070883 fft length = 1572864 iteration = 9082202 Iteration 9100000 M( 26070883 )C, 0x243869296cca0a3a, n = 1572864, CUDALucas v2.02 err = 0.02246 (0:51 real, 0.5022 ms/iter, ETA 2:21:28) Iteration 9200000 M( 26070883 )C, 0xd32a5f55d157802f, n = 1572864, CUDALucas v2.02 err = 0.02344 (4:32 real, 2.7260 ms/iter, ETA 12:43:17) p -polite 1 p -polite 0 Iteration 9300000 M( 26070883 )C, 0x23e3b9dd22444ef9, n = 1572864, CUDALucas v2.02 err = 0.02344 (4:34 real, 2.7415 ms/iter, ETA 12:43:03)
Last fiddled with by LaurV on 2012-06-01 at 13:11 |
|
|
|
|
|
#1329 | ||
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3×29×83 Posts |
Quote:
Code:
/*! These warnings are uncommented because the "shipped" ini file also contains these defaults,
and therefore none of these should be set off anyways. */
if( !IniGetInt(INIFILE, "CheckpointIterations", &checkpoint_iter, 10000) )
fprintf(stderr, "Warning: Couldn't parse ini file option CheckpointIterations; using default: 10000\n");
if( !IniGetInt(INIFILE, "Threads", &threads, 256) )
fprintf(stderr, "Warning: Couldn't parse ini file option Threads; using default: 256\n");
if( !IniGetInt(INIFILE, "SaveAllCheckpoints", &s_f, 0) )
fprintf(stderr, "Warning: Couldn't parse ini file option SaveAllCheckpoints; using default: off\n");
if( s_f && !IniGetStr(INIFILE, "SaveFolder", folder, "savefiles") )
fprintf(stderr, "Warning: Couldn't parse ini file option SaveFolder; using default: \"savefiles\"\n");
if( !IniGetInt(INIFILE, "CheckRoundoffAllIterations", &t_f, 0) )
fprintf(stderr, "Warning: Couldn't parse ini file option CheckRoundoffAllIterations; using default: off\n");
if( !IniGetInt(INIFILE, "Polite", &polite, 1) )
fprintf(stderr, "Warning: Couldn't parse ini file option Polite; using default: 1\n");
if( !IniGetInt(INIFILE, "Interactive", &k_f, 0) )
fprintf(stderr, "Warning: Couldn't parse ini file option Interactive; using default: off\n");
if( !IniGetInt(INIFILE, "DeviceNumber", &device_number, 0) )
fprintf(stderr, "Warning: Couldn't parse ini file option DeviceNumber; using default: 0\n");
if( !IniGetInt(INIFILE, "PrintDeviceInfo", &d_f, 0) )
fprintf(stderr, "Warning: Couldn't parse ini file option PrintDeviceInfo; using default: off\n");
if( !IniGetStr(INIFILE, "WorkFile", input_filename, "worktodo.txt") )
fprintf(stderr, "Warning: Couldn't parse ini file option WorkFile; using default: \"worktodo.txt\"\n");
if( !IniGetInt(INIFILE, "FFTLength", &fftlen, 0) )
fprintf(stderr, "Warning: Couldn't parse ini file option FFTLength; using autoselect.\n");
![]() Quote:
Well, now that I look at the zip, flash didn't include the ini-file with the binaries I've added it to the attached zip. Anyone downloading the Windows executables should get this one instead (The .exes are identical, I literally used the same ones unmodified from flash's zip.)The ini-file also has some basic 'documentation' which describe the options in further detail than the (now -h) help message. ------------------------------------------------------------- In the future, how should the code handle not being able to read the ini file but getting options through the command line? I could make it so that warnings are only printed for options not passed as args, but that would be somewhat difficult... |
||
|
|
|
|
|
#1330 | ||
|
"Jerry"
Nov 2011
Vancouver, WA
1,123 Posts |
Quote:
Quote:
Edit: A lot more work, maybe, but you could also ask if the user wants to create an .ini file and use any supplied switches as default. It's a lot easier if the compiler just includes it the first time
Last fiddled with by flashjh on 2012-06-01 at 20:00 |
||
|
|
|
|
|
#1331 | |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
722110 Posts |
Quote:
Yich... part of the inifile is that, like I said, it includes a lot of ancillary information besides configuration. I'll have to think about it. (And it'd put improving FFT selection on hold.) |
|
|
|
|
![]() |
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 |