atomic operations in CUDPP

3 views
Skip to first unread message

sash

unread,
Dec 25, 2009, 1:53:24 AM12/25/09
to CUDPP
hi

I need to use segmented scan and also a few atomic operations
later in my code. Now the problem is that to get the atomic operations
to work, i need to give the _sm_13 compiler flag in my makefile. But
this is resulting in a weird error. When I do a make, it gives
something like this -
______________________________________________________________________

/usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/crt1.o: In function
`_start':
/build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:115: undefined
reference to `main'
collect2: ld returned 1 exit status
make: *** [../../bin/linux/release/splitWork] Error 1

___________________________________________________

My Makefile is

EXECUTABLE := splitWork
CUFILES_sm_13 := main.cu
CCFILES :=
CU_DEPS_sm_13 := sc_kernel.cu scan.cu.h splitWorkKernel.cu

################################################################################
# Rules and targets

include ../../linux_build/common.mk

________________________________________________________

if I take the devicequery sample code from CUDA sdk and put in apps
directory of CUDPP and compile it, it compiles well. But if I add the
_sm_13 keyword, it throws the same error again!

please help.

thanks
s

btw, merry christmas to everyone in the CUDPP group :)

Reply all
Reply to author
Forward
0 new messages