mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-02-01, 10:19   #122
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

Hi,New GTX260 results

M36042257
M22018729
M22020091
M22021367
M22041823
M22052431
M22676837
M22676839
M22679021
M22679203
msft is offline   Reply With Quote
Old 2010-04-15, 22:02   #123
CADavis
 
CADavis's Avatar
 
Jul 2005
Des Moines, Iowa, USA

2×5×17 Posts
Default

need help

managed to get gcc working in cygwin and paths set to find cuda files etc (not the easiest thing for me as i am not very good with unix enivronments etc)

was able to fix errors with include files etc. but got stuck here:
Code:
drew@drew-PC /cygdrive/f/maclucasfftw-cuda/src
$ make
/cygdrive/c/cuda/bin/nvcc -O3 -DMERS_PACKAGE -DBIT_SIEVE -DTESTING_SMALL_EXPONEN
TS -DSIEVE_SIZE_IN_BYTES=32 -DNUM_SMALL_PRIMES=32768  -DDO_NOT_USE_LONG_DOUBLE -
I/usr/local/include  -I/cygdrive/c/ProgramData/"NVIDIA Corporation"/"NVIDIA GPU
Computing SDK"/C/common/inc MacLucasFFTW.cu  -L/usr/local/lib  -arch=sm_13 -c
MacLucasFFTW.cu
MacLucasFFTW.cu(176): warning: variable "numThreads" was declared but never refe
renced

MacLucasFFTW.cu(514): error: identifier "memalign" is undefined

MacLucasFFTW.cu(631): warning: variable "numThreads" was declared but never refe
renced

MacLucasFFTW.cu(681): warning: variable "j" was declared but never referenced

MacLucasFFTW.cu(681): warning: variable "lastloop" was set but never used

MacLucasFFTW.cu(684): warning: variable "tempErr" was declared but never referen
ced

MacLucasFFTW.cu(686): warning: variable "maxerr" was declared but never referenc
ed

MacLucasFFTW.cu(686): warning: variable "err" was declared but never referenced

MacLucasFFTW.cu(691): warning: variable "i_threadID" was declared but never refe
renced

MacLucasFFTW.cu(692): warning: variable "numThreads" was declared but never refe
renced

MacLucasFFTW.cu(767): warning: variable "j" was declared but never referenced

MacLucasFFTW.cu(767): warning: variable "lastloop" was set but never used

MacLucasFFTW.cu(770): warning: variable "tempErr" was declared but never referen
ced

MacLucasFFTW.cu(772): warning: variable "maxerr" was declared but never referenc
ed

MacLucasFFTW.cu(772): warning: variable "err" was declared but never referenced

MacLucasFFTW.cu(777): warning: variable "je" was set but never used

MacLucasFFTW.cu(777): warning: variable "ke" was declared but never referenced

MacLucasFFTW.cu(778): warning: variable "numThreads" was declared but never refe
renced

MacLucasFFTW.cu(1016): warning: variable "ncpu" was declared but never reference
d

MacLucasFFTW.cu(1117): warning: statement is unreachable

MacLucasFFTW.cu(1165): error: too many arguments in function call

MacLucasFFTW.cu(1246): error: more than one instance of overloaded function "sqr
t" matches the argument list:
            function "sqrt(double)"
            function "sqrt(float)"
            function "sqrt(long double)"
            argument types are: (unsigned long)

MacLucasFFTW.cu(1246): error: identifier "memalign" is undefined

MacLucasFFTW.cu(1268): error: too many arguments in function call

MacLucasFFTW.cu(1283): error: too many arguments in function call

MacLucasFFTW.cu(1296): error: too many arguments in function call

MacLucasFFTW.cu(1300): error: too many arguments in function call

8 errors detected in the compilation of "c:/windows/temp/tmpxft_00000a38_0000000
0-6_MacLucasFFTW.cpp1.ii".
make: *** [MacLucasFFTW.o] Error 2

drew@drew-PC /cygdrive/f/maclucasfftw-cuda/src
$
maybe there is no hope for me in windows.. :(
CADavis is offline   Reply With Quote
Old 2010-04-15, 23:16   #124
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

Hi,CADavis
Quote:
Originally Posted by CADavis View Post
need help
Quote:
121 #define ALLOC_DOUBLES(n) ((BIG_DOUBLE *)memalign(128,(n)*sizeof(BIG_DOUBLE)))
->
121 #define ALLOC_DOUBLES(n) ((BIG_DOUBLE *)malloc((n)*sizeof(BIG_DOUBLE)))

1246 ip = (int *)memalign(128,((2+sqrt(n/2))*sizeof(int)));
->
1246 ip = (int *)malloc(((2+sqrt((double)n/2))*sizeof(int)));
msft is offline   Reply With Quote
Old 2010-04-16, 07:47   #125
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

Version "K" at .0107 sec/iter for the 2048K FFT , .0219 sec/iter for the 4096K FFT and .0442 sec/iter for the 8192K FFT on GTX260.
Attached Files
File Type: gz MacLucasFFTW.cuda.K.tar.gz (31.3 KB, 114 views)
msft is offline   Reply With Quote
Old 2010-04-16, 21:42   #126
CADavis
 
CADavis's Avatar
 
Jul 2005
Des Moines, Iowa, USA

2×5×17 Posts
Default

any insight on the remaining errors?

Code:
MacLucasFFTW.cu(1165): error: too many arguments in function call

MacLucasFFTW.cu(1268): error: too many arguments in function call

MacLucasFFTW.cu(1283): error: too many arguments in function call

MacLucasFFTW.cu(1296): error: too many arguments in function call

MacLucasFFTW.cu(1300): error: too many arguments in function call

5 errors detected in the compilation of "c:/windows/temp/tmpxft_000004a8_0000000
0-6_MacLucasFFTW.cpp1.ii".
make: *** [MacLucasFFTW.o] Error 2
CADavis is offline   Reply With Quote
Old 2010-04-16, 22:24   #127
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2×5×61 Posts
Default

Hi, CADavis

Please replace rw.h
Attached Files
File Type: gz rw.h.gz (590 Bytes, 97 views)
msft is offline   Reply With Quote
Old 2010-04-17, 23:27   #128
CADavis
 
CADavis's Avatar
 
Jul 2005
Des Moines, Iowa, USA

2·5·17 Posts
Default

ok i did that and there was an error FACTOR and EXPONENT not defined in line 36,37,38,39 so I copied the define from lines 22 and 23 under the #else at line 34 and tried to make again.

Code:
# else
#   define FACTOR char
#   define EXPONENT UL
//extern int input();
extern int input(int argc, char **argv, EXPONENT *q, UL *n, UL *j, BIG_DOUBLE *err, BIG_DOUBLE **x,
                 EXPONENT last, char *M, FACTOR *start, FACTOR *stop, int *all_factors, int *small_test,
                 EXPONENT *limit, UL mask, UL shift, FILE **infp, FILE **outfp, FILE **dupfp, int *primenet);
Got past those errors and now errors in setup.cu:

Code:
MacLucasFFTW.cu(1117): warning: statement is unreachable

tmpxft_00000a68_00000000-3_MacLucasFFTW.cudafe1.cpp
setup.cu
setup.cu(31): error: identifier "string" is undefined

setup.cu(31): error: identifier "ch" is undefined

setup.cu(32): error: expected a "{"

setup.cu(35): warning: parsing restarts here after previous syntax error

setup.cu(36): error: identifier "string" is undefined

setup.cu(39): error: identifier "ch" is undefined

setup.cu(57): error: argument of type "handler (*)()" is incompatible with parameter of type "void (*)(int)"

setup.cu(60): error: argument of type "handler (*)()" is incompatible with parameter of type "void (*)(int)"

setup.cu(107): error: identifier "msg" is undefined

setup.cu(108): error: a type qualifier is not allowed on a nonmember function

setup.cu(108): error: expected a "{"

setup.cu(113): error: identifier "msg" is undefined

setup.cu(1): warning: variable "RCSsetup_c" was declared but never referenced

setup.cu(5): warning: variable "RCSsetup_h" was declared but never referenced

11 errors detected in the compilation of "c:/windows/temp/tmpxft_00000d2c_00000000-6_setup.cpp1.ii".
make: *** [setup.o] Error 2
I feel like it is close!

Last fiddled with by CADavis on 2010-04-17 at 23:28
CADavis is offline   Reply With Quote
Old 2010-04-17, 23:44   #129
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2·5·61 Posts
Default

Hi, CADavis

Please replace setup.cu
Attached Files
File Type: gz setup.cu.gz (1.3 KB, 110 views)
msft is offline   Reply With Quote
Old 2010-04-18, 00:22   #130
CADavis
 
CADavis's Avatar
 
Jul 2005
Des Moines, Iowa, USA

17010 Posts
Default

thank you so much for your quick responses! i hope this is not tedious for you.

Code:
setup.cu
setup.cu(58): error: argument of type "handler (*)()" is incompatible with parameter of type "void (*)(int)"

setup.cu(61): error: argument of type "handler (*)()" is incompatible with parameter of type "void (*)(int)"

setup.cu(1): warning: variable "RCSsetup_c" was declared but never referenced

setup.cu(5): warning: variable "RCSsetup_h" was declared but never referenced

2 errors detected in the compilation of "c:/windows/temp/tmpxft_00000e9c_00000000-6_setup.cpp1.ii".
make: *** [setup.o] Error 2
also, MacLucasFFTW.obj is showing up in the same directory after I try to make, is this a good sign?

Last fiddled with by CADavis on 2010-04-18 at 00:25
CADavis is offline   Reply With Quote
Old 2010-04-18, 00:51   #131
msft
 
msft's Avatar
 
Jul 2009
Tokyo

2·5·61 Posts
Default

Hi, CADavis

Please replace setup.cu

Quote:
Originally Posted by CADavis View Post
also, MacLucasFFTW.obj is showing up in the same directory after I try to make, is this a good sign?
Are you success CUDA sample program with cygwin ?
I am concerned about cygwin is not normal method in CUDA on windows.
Attached Files
File Type: gz setup.cu.gz (1.3 KB, 92 views)
msft is offline   Reply With Quote
Old 2010-04-21, 01:21   #132
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3·1,181 Posts
Default

NVCC will not work windows systems unless you have MSVC (or the free MSVC Express) installed. Believe me, I wish it was otherwise.

Of course if you are not getting very strange compilations then that's not the issue.

Last fiddled with by jasonp on 2010-04-21 at 01:29
jasonp 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 22:22.


Mon Aug 2 22:22:30 UTC 2021 up 10 days, 16:51, 0 users, load averages: 1.43, 1.44, 1.52

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.