>

My full configure, with path to EPD python explicit, and boost 1.37 
built according to pycuda docs:

$ ./configure
--python-exe=/Library/Frameworks/Python.framework/Versions/Current/
bin/python
--boost-inc-dir=/Users/amir/pool/include/boost-1_37
--boost-lib-dir=/Users/amir/pool/lib
--boost-python-libname=boost_python-xgcc40-mt-1_37 
--cuda-root=/usr/local/cuda

I run the test with python -v test_driver.py and it seems everything
is being taken from EPD. Last line:

dlopen("/Library/Frameworks/Python.framework/Versions/4.0.30002/
lib/python2.5/site-packages/pycuda-0.91-py2.5-macosx-10.3-i386.egg
/pycuda/_driver.so",
2);

My boost is also built with the same python. user-config.jam has:

# Python configuration
using python : 2.5 : 
/Library/Frameworks/Python.framework/Versions/Current/bin/python ;

which is linked to EPD).

Not sure what's wrong. I will try running the boost python tests which
I still haven't gotten to run. Any other ideas appreciated.

Amir.


Evan Wies <[EMAIL PROTECTED]> writes:

> 
> It means you are running it with a different python than you build
> pyCuda against.
> 
> Apple's stock python is /usr/bin/python and MacPorts is
> /opt/local/bin/python . (I might be a little bit off, I'm not on my Mac
> right now). I don't know where EPD puts its python, but it probably
> doesn't write over Apple's.
> 
> You can do 'which python' to see which python is your default (probably
> Apple's unless your PATH was tweaked or if EPD has something like
> MacPort's python_select).
> 
> When you run your program, you need to run with the appropriate python
> binary. So, try the full path rather than just 'python'.
> 
> Good luck,
> Evan
> 
> Amir wrote:
> > After pycuda install on Macbook Pro Intel, NVidia 9600M GT, 
> > with EPD 4.0.30002 python distribution from Enthought and 
> > Mac OS X 10.5.5, I get the following error:
> >
> > $ python ./test_driver.py
> > Fatal Python error: Interpreter not initialized (version mismatch?)
> > Abort trap
> >
> > pycuda is from git. I installed boost two ways, 1.37 as 
> > described in the pycuda docs and 1.35 using MacPorts. There 
> > were no errors reported in the build process. My 
> > {DY}LD_LIBRARY_PATH seems to be correct (otherwise, I would 
> > get the same runtime errors as another post). Running the 
> > numpy and scipy test suites returned no errors. CUDA is 2.0 
> > downloaded from nvidia's site.
> >
> > Here is one of my siteconf.py (adapted from post by wohlegemuth):
> >
> > BOOST_INC_DIR = ['/opt/local/include/boost-1_35']
> > BOOST_LIB_DIR = ['/opt/local/lib']
> > BOOST_PYTHON_LIBNAME = ['boost_python-mt-1_35']
> > CUDA_ROOT = '/usr/local/cuda'
> > CUDADRV_LIB_DIR = ['/usr/local/cuda/lib']
> > CUDADRV_LIBNAME = ['cuda']
> > CXXFLAGS = ['-arch', 'i386']
> > LDFLAGS = ['-arch', 'i386'] 
> >
> > I am unfamiliar with Mac OS, my 2nd day. A response to an earlier 
> > post by Evan Wies suggested a fix if python was installed
> > using MacPorts. Does it apply here as well with EPD?
> >
> > Thanks.
> >
> >
> > _______________________________________________
> > PyCuda mailing list
> > [EMAIL PROTECTED]
> > http://tiker.net/mailman/listinfo/pycuda_tiker.net
> >   
> 





_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to