Graham Mills <13gm10(a)queensu.ca> writes:
I looked back about a year in the archives and
couldn't find anything on this. I just downloaded and built cgen 2013.1.2 and codepy
2013.1.2 today. When using thrust as in the example at
, several python version-related
errors crop up in cgen and codepy modules, such as
line 153, in get_dependencies
lines = join_continued_lines(stdout.split("\n"))
TypeError: Type str doesn't support the buffer API
line 893, in get_namespace_name
TypeError: Unicode-objects must be encoded before hashing
for instance. I manually fixed a few of the issues in my installation, but there are a
few I cannot figure out. Retracing my steps back to building the installation, when
build_py_2to3 gets called in setup.py it misses these lines (and others). Manually calling
2to3 doesn't catch them, either.
Is there another release of codepy or cgen I should be using with python 3.2?
you're probably the first to try this with Py3. :) Python 3 support in
PyCUDA is fairly recent after all. If you could post/pull-request your
fixes as well as tests for the stuff you're stuck on, I'd be happy to
take a look and help get this fixed.