View Single Post
Old 2013-05-15, 00:50   #11
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

1,741 Posts
Default

Had a bit of a revelation concerning your latest instructions...I was trying to compile everything from a standard command line. So I hopped into MinGW's shell and ran the compile from there. It got much further, but I still hit a snag. The command was

Code:
 make all (-k) WIN=1 CUDA=1 NO_ZLIB=1
and I get (with or without the -k flag):

Code:
gcc -O3 -fomit-frame-pointer -march=barcelona -D_FILE_OFFSET_BITS=64 -DNDEBUG -D
_LARGEFILE64_SOURCE  -Wall -W -DMSIEVE_SVN_VERSION="\"1.51 GPU\"" -I. -Iinclude
-Ignfs -Ignfs/poly -Ignfs/poly/stage1 -I"C:\Program Files\NVIDIA GPU Computing T
oolkit\CUDA\v5.0\include" -Ib40c -DHAVE_CUDA -DNO_ZLIB demo.c -o msieve -Wl,--la
rge-address-aware \
                        libmsieve.a "C:\Program Files\NVIDIA GPU Computing Toolk
it\CUDA\v5.0\lib/win32/cuda.lib" -lgmp -lm -lpthread
libmsieve.a(stage1.no):stage1.c:(.text+0xdf4): undefined reference to `sieve_lat
tice_cpu'
collect2.exe: error: ld returned 1 exit status
make: *** [all] Error 1

On the plus side:

Code:
make all WIN=1 NO_ZLIB=1
produces a working program! I'm currently crunching the 100 digit example number from Jeff Gilchrist's tutorial to make sure that it fully functions.

Last fiddled with by wombatman on 2013-05-15 at 01:40
wombatman is offline   Reply With Quote