Cannot Build CUDPP on Mac OS X Snow Leopard

29 views
Skip to first unread message

quadelirus

unread,
Dec 16, 2009, 3:49:38 PM12/16/09
to CUDPP
I'm tearing my hair out on this one. I had CUDA SDK 2.2 installed and
CUDPP would not build, so I attempted to side step the issue by
installing the newly released CUDA SDK 3.0 beta figuring surely NVidia
would have updated their example to use CUDPP 1.1. They didn't, and so
I'm stuck trying to compile CUDPP again. Here is the output from make
(after already running cd common; make):

q - obj/release/cudpp.cpp_o
q - obj/release/cudpp_plan.cpp_o
q - obj/release/cudpp_plan_manager.cpp_o
q - obj/release/cudpp_maximal_launch.cpp_o
q - obj/release/compact_app.cu_o
q - obj/release/scan_app.cu_o
q - obj/release/segmented_scan_app.cu_o
q - obj/release/spmvmult_app.cu_o
q - obj/release/radixsort_app.cu_o
q - obj/release/rand_app.cu_o
ranlib: archive member: ./../lib/libcudpp.a(compact_app.cu_o) cputype
(7) does not match previous archive members cputype (16777223) (all
members must match)
ranlib: archive member: ./../lib/libcudpp.a(scan_app.cu_o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
ranlib: archive member: ./../lib/libcudpp.a(segmented_scan_app.cu_o)
cputype (7) does not match previous archive members cputype (16777223)
(all members must match)
ranlib: archive member: ./../lib/libcudpp.a(spmvmult_app.cu_o) cputype
(7) does not match previous archive members cputype (16777223) (all
members must match)
ranlib: archive member: ./../lib/libcudpp.a(radixsort_app.cu_o)
cputype (7) does not match previous archive members cputype (16777223)
(all members must match)
ranlib: archive member: ./../lib/libcudpp.a(rand_app.cu_o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
ranlib: archive member: ./../lib/libcudpp.a(compact_app.cu_o) cputype
(7) does not match previous archive members cputype (16777223) (all
members must match)
ranlib: archive member: ./../lib/libcudpp.a(scan_app.cu_o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
ranlib: archive member: ./../lib/libcudpp.a(segmented_scan_app.cu_o)
cputype (7) does not match previous archive members cputype (16777223)
(all members must match)
ranlib: archive member: ./../lib/libcudpp.a(spmvmult_app.cu_o) cputype
(7) does not match previous archive members cputype (16777223) (all
members must match)
ranlib: archive member: ./../lib/libcudpp.a(radixsort_app.cu_o)
cputype (7) does not match previous archive members cputype (16777223)
(all members must match)
ranlib: archive member: ./../lib/libcudpp.a(rand_app.cu_o) cputype (7)
does not match previous archive members cputype (16777223) (all
members must match)
make: *** [../lib/libcudpp.a] Error 1

This is the same error I was getting with the CUDA SDK 2.2 also.

Been searching the internet for 45 minutes now, with no answers, so
hopefully you guys will spot something obvious that I'm just missing.

Thanks.

John Owens

unread,
Dec 16, 2009, 5:02:33 PM12/16/09
to CUDPP
Can you try something? In linux_build/common.mk, there's 3 lines under
# Compilers.
Change these:

CXX := g++
CC := gcc
LINK := g++ -fPIC

to:

CXX := g++ -m32
CC := gcc -m32
LINK := g++ -fPIC -m32

(add -m32 to the end of each of them)

and let us know if that works?

JDO

quadelirus

unread,
Dec 17, 2009, 10:37:09 AM12/17/09
to CUDPP
Okay,

Results:

ar: creating archive ./../lib/libcudpp.a


q - obj/release/cudpp.cpp_o
q - obj/release/cudpp_plan.cpp_o
q - obj/release/cudpp_plan_manager.cpp_o
q - obj/release/cudpp_maximal_launch.cpp_o
q - obj/release/compact_app.cu_o
q - obj/release/scan_app.cu_o
q - obj/release/segmented_scan_app.cu_o
q - obj/release/spmvmult_app.cu_o
q - obj/release/radixsort_app.cu_o
q - obj/release/rand_app.cu_o

make: *** empty variable name. Stop.


not sure if that last line is a problem or not, but it did create a
libcudpp.a

Now when I try to compile one of the apps:
simpleCUDPP$ make
nvcc warning :
#
# the --host-compilation flag has been deprecated. Host code is
compiled as C++.
#
ld: warning: in ../../lib/libcutil.a, file is not of required
architecture
Undefined symbols:
"_cutComparef", referenced from:
runTest(int, char**)in simpleCUDPP.cu_o
"_cutGetCmdLineArgumenti", referenced from:
runTest(int, char**)in simpleCUDPP.cu_o
"_cutCheckCmdLineFlag", referenced from:
runTest(int, char**)in simpleCUDPP.cu_o
_main in simpleCUDPP.cu_o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [../../bin/darwin/release/simpleCUDPP] Error 1

Mark Harris

unread,
Dec 17, 2009, 10:41:40 AM12/17/09
to cu...@googlegroups.com
Those warnings about host-compilation worry me.  Are you sure you're using CUDPP 1.1?  I thought I removed that option from 1.1.

Mark


--

You received this message because you are subscribed to the Google Groups "CUDPP" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cudpp+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cudpp?hl=en.



quadelirus

unread,
Dec 17, 2009, 10:47:53 AM12/17/09
to CUDPP
Yeah, its 1.1:

cudpp_src_1.1.tar.gz

I think those warnings showed up when I switched to 3.0 beta SDK.

> > cudpp+un...@googlegroups.com <cudpp%2Bunsu...@googlegroups.com>.

quadelirus

unread,
Dec 21, 2009, 3:58:48 PM12/21/09
to CUDPP
Is there anything useful I could get you guys in terms of debug
information to help figure out why this isn't working?

Mark Harris

unread,
Dec 21, 2009, 4:47:16 PM12/21/09
to cu...@googlegroups.com
A linux box? :)  (Joking.  I don't have Linux installed at the moment...) 

If you haven't filed an issue on the google code site yet, please do, attaching explicit reproduction instructions and any code needed to reproduce the problem.

Mark

On Tue, Dec 22, 2009 at 6:58 AM, quadelirus <quade...@gmail.com> wrote:
Is there anything useful I could get you guys in terms of debug
information to help figure out why this isn't working?
--

You received this message because you are subscribed to the Google Groups "CUDPP" group.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cudpp+un...@googlegroups.com.

Mark Harris

unread,
Dec 21, 2009, 4:48:22 PM12/21/09
to cu...@googlegroups.com
BTW, be specific about what OS and hardware you are running on, as well as CUDA versions.

Mark Harris

unread,
Dec 21, 2009, 4:49:30 PM12/21/09
to cu...@googlegroups.com
Ignore the linux comment, just realized this is OS X.   I do have snow leopard, so should be able to fix this before the next release.

Mark
Reply all
Reply to author
Forward
0 new messages