Lev Givon <l...@columbia.edu> writes: > When I recently tried running the sample program on the main codepy > documentation page, I noticed that I had to manually add the python > library (python2.7 in my case) to the list of libraries guessed by > codepy.jit.guess_toolchain in order to get the program to run. Any > ideas as to why the toolchain guesser isn't finding the python library > by default on my system? The python library on my system is located at > /usr/lib64/libpython2.7.so. > > I'm using codepy 2012.1.2, cgen 2012.1, python 2.7, gcc 4.6.1, and > boost 1.46.1 on 64-bit Linux.
Can you use cmod = mod.compile(guess_toolchain(), debug=True) in that program and post what command line you get? (You may have to rm -rf /tmp/codepy...) I get: g++ -pthread -fno-strict-aliasing -g -fwrapv -O2 -Wall -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fPIC -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -DNDEBUG -I/usr/include/python2.7 /tmp/codepy-compiler-cache-v5-uid1000/575fd541fda8bf46c781d288179477c0/module.cpp -L/usr/lib -lboost_python -lpthread -ldl -lutil -o /tmp/codepy-compiler-cache-v5-uid1000/575fd541fda8bf46c781d288179477c0/module.so This means that on my system -lboost_python automatically pulls in -lpython2.7. Not sure I know why that's not working for you. Can you ldd the libboost_python.so you're using? Andreas
pgpT0fMD07oMG.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda