The `installed_path' variable in `_find_pycuda_include_path' in
pycuda/compiler.py appears to be incorrect, or at least not
sufficiently general, because it does not find the install location on
my machines (OSX 10.6/Python 2.6.1 and Ubuntu 9.10/Python 2.6.4).
$> python setup.py install --prefix=$HOME/usr/local
installs pycuda to ~/usr/local/lib/python2.6/site-packages/pycuda
and the pycuda headers to ~/usr/local/include
but the installed_path variable is defined with:
installed_path = join(pathname, "..", "include", "pycuda")
which points to:
~/usr/local/lib/python2.6/site-packages/include/pycuda, which is
incorrect.
adding three more ".." fixes the location:
installed_path = join(pathname, "..", "..", "..", "..", "include", "pycuda")
and everything works once I add that patch.
-MinRK
_______________________________________________
PyCUDA mailing list
[email protected]
http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net