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

33218 Posts

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

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

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( undefined reference to `sieve_lat
collect2.exe: error: ld returned 1 exit status
make: *** [all] Error 1

On the plus side:

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