Problems compiling radix_sort.py

6 views
Skip to first unread message

DHappy

unread,
Feb 28, 2011, 2:09:36 AM2/28/11
to copperhead-devel
Hi,

When compiling radix_sort.py, my first problem was seemingly due to a
mismatch between my versions of codepy and g++. The output from that
run can be seen here:

http://pastebin.com/vB9PnmnN

I was able to fix this by adding a line to copperhead/runtime/
__init__.py basically adding '-fpermissive' to the -Xcompiler
options. Now I get this output:

http://pastebin.com/64Jmdg3M

which seems to indicate I am missing the library boost_python-gcc43-
mt. I do have boost_python-mt as well as some libs with similar
names. I'm at a loss as to where to get the gcc43 one. My C++
experience is quite short.

I will work more on this in the coming days, but I thought I'd post
this here to see if anyone has some quick answers.

-- Jim

DHappy

unread,
Mar 13, 2011, 1:36:30 AM3/13/11
to copperhead-devel
What versions of Boost is Copperhead known to work with?

Bryan Catanzaro

unread,
Mar 13, 2011, 1:45:36 AM3/13/11
to copperhe...@googlegroups.com
I've used it with 1.38-1.45. Usually the problem is not an
incompatibility between Copperhead and Boost, but rather just a
configuration issue. With your question about boost_python-mt versus
boost_python-gcc43-mt, either of them would work. The important thing
is to get Codepy and Pycuda to use *the exact same* boost version.
Pycuda now comes with its own Boost - this can cause problems if you
use it. I recommend building Pycuda against some installation of
Boost which is available elsewhere on your system, and then pointing
Codepy to it.
Pycuda and Codepy use a file called /etc/aksetup-defaults.py or
~/.aksetup-defaults.py to record the installation location of Boost
and CUDA and other things. Sometimes that file needs to be manually
updated to point to the right ones.

Getting the infrastructure Copperhead depends on set up and working
seems to be an obstacle for many people. Sorry for the inconvenience
- with time we'll make installation easier.

- bryan

Reply all
Reply to author
Forward
0 new messages