Re: [PyCUDA] OpenGL

2009-08-15 Thread Gökhan Sever
Hello,

Testing the gl_interop.py example. See my specs:

[gse...@ccn release]$ ./deviceQuery
CUDA Device Query (Runtime API) version (CUDART static linking)
There is 1 device supporting CUDA

Device 0: Quadro NVS 135M
  CUDA Capability Major revision number: 1
  CUDA Capability Minor revision number: 1
  Total amount of global memory: 133496832 bytes
  Number of multiprocessors: 1
  Number of cores:   8
  Total amount of constant memory:   65536 bytes
  Total amount of shared memory per block:   16384 bytes
  Total number of registers available per block: 8192
  Warp size: 32
  Maximum number of threads per block:   512
  Maximum sizes of each dimension of a block:512 x 512 x 64
  Maximum sizes of each dimension of a grid: 65535 x 65535 x 1
  Maximum memory pitch:  262144 bytes
  Texture alignment: 256 bytes
  Clock rate:0.80 GHz
  Concurrent copy and execution: Yes
  Run time limit on kernels: Yes
  Integrated:No
  Support host page-locked memory mapping:   No
  Compute mode:  Default (multiple host
threads can use this device simultaneously)


Don't know what is going on really but after I hit e the FPS jumps from
~70 to ~1000 :)

Ahh just caught something, the window doesn't like to be maximized without
the CUDA mode on.

[gse...@ccn examples]$ python gl_interop.py
Hit ESC key to quit, 'a' to toggle animation, and 'e' to toggle cuda
Traceback (most recent call last):
  File gl_interop.py, line 134, in display
process_image()
  File gl_interop.py, line 181, in process_image
ctypes.c_void_p(0))
  File
/usr/lib/python2.6/site-packages/PyOpenGL-3.0.0c1-py2.6.egg/OpenGL/error.py,
line 194, in glCheckError
baseOperation = baseOperation,
GLError: GLError(
err = 1282,
description = 'invalid operation',
baseOperation = glReadPixels,
cArguments = (
0,
0,
1440,
848,
GL_BGRA,
GL_UNSIGNED_BYTE,
c_void_p(None),
)
)


Maybe I need a newer PyOpenGL??

On Fri, Jul 31, 2009 at 8:12 AM, Michael Rule mrule7...@gmail.com wrote:

 gl_interop :
 is the expected behavior : opens a window which contains nothing (
 random garbage ), which then crashes on attempts to resize ?

 has anyone gotten closer to a functioning GL example ( e.g. preparing
 a vertex buffer in CUDA and then using it to render, say, a mesh, for
 accelerated computation of some simple physical simulation ? )




 On Tue, Jul 28, 2009 at 4:34 PM, Andreas
 Klöcknerli...@informa.tiker.net wrote:
  On Dienstag 28 Juli 2009, you wrote:
  I would also like to try to experiment with pycuda openGL,
  how do you get the gl_interop example working ? I get the following
 message
  :
 
  ImportError: PyCUDA was compiled without GL extension support
 
  Is compiling pycuda with GL extension documented anywhere ?
 
  Add this to your siteconf.py:
 
  CUDA_ENABLE_GL = True
 
  Anddreas
 

 ___
 PyCUDA mailing list
 PyCUDA@tiker.net
 http://tiker.net/mailman/listinfo/pycuda_tiker.net




-- 
Gökhan
___
PyCUDA mailing list
PyCUDA@tiker.net
http://tiker.net/mailman/listinfo/pycuda_tiker.net


Re: [PyCUDA] pycuda installation problem

2009-07-09 Thread Gökhan SEVER
Finally, it works without any further complains.

Thank again Nicolas

On Thu, Jul 9, 2009 at 7:45 PM, Nicolas Pinto pi...@mit.edu wrote:

 do you have py.test installed ?

 sudo easy_install -U py

 Cheers,

 N


 On Thu, Jul 9, 2009 at 8:42 PM, Gökhan SEVER gokhanse...@gmail.comwrote:

 That did the trick :)

 Thanks for the very quick response.

 Got these last lines of successful complete:

 Installed /usr/lib/python2.5/site-packages/pytools-9-py2.5.egg
 Finished processing dependencies for pycuda==0.94beta

 However this time test_driver fails :(

 [gse...@ccn test]$ python test_driver.py
 RuntimeError: FATAL: module compiled as big endian, but detected different
 endianness at runtime
 RuntimeError: FATAL: module compiled as big endian, but detected different
 endianness at runtime
 Traceback (most recent call last):
   File test_driver.py, line 471, in module
 from py.test.cmdline import main
 ImportError: No module named py.test.cmdline



 On Thu, Jul 9, 2009 at 7:38 PM, Nicolas Pinto pi...@mit.edu wrote:

 Sorry for the double post:

 I think you need to drop the 'lib' *and '.so'* in *-libname command line
 options. Can you try:

 python configure.py --boost-inc-dir=$HOME/pool/include/boost-1_39
 --boost-lib-dir=$HOME/pool/lib --boost-python-libname=boost_python-gcc43-mt
 --boost-thread-libname=boost_thread-gcc43-mt --cuda-root=/usr/local/cuda

 N


 On Thu, Jul 9, 2009 at 8:36 PM, Nicolas Pinto pi...@mit.edu wrote:

 Gökhan,

 I think you need to drop the 'lib' in *-libname command line options.
 Can you try:

 python configure.py --boost-inc-dir=$HOME/pool/include/boost-1_39
 --boost-lib-dir=$HOME/pool/lib
 --boost-python-libname=boost_python-gcc43-mt.so
 --boost-thread-libname=boost_thread-gcc43-mt.so --cuda-root=/usr/local/cuda

 Regards,

 N

 On Thu, Jul 9, 2009 at 8:30 PM, Gökhan SEVER gokhanse...@gmail.comwrote:

 Hello,

 I am trying to install pycuda onto my machine. Although I successfully
 built a very recent boostc++ libraries and exported into my system path I 
 am
 receiving  the following error during the installation:

 [gse...@ccn pycuda]$ python configure.py
 --boost-inc-dir=$HOME/pool/include/boost-1_39 
 --boost-lib-dir=$HOME/pool/lib
 --boost-python-libname=libboost_python-gcc43-mt.so
 --boost-thread-libname=libboost_thread-gcc43-mt.so
 --cuda-root=/usr/local/cuda


 [gse...@ccn pycuda]$ make install
 ctags -R src || true
 /usr/bin/python setup.py install
 /home/gsever/pool/include/boost-1_39 /boost/  python .hpp
 /home/gsever/pool/lib / lib libboost_python-gcc43-mt.so .so
 /home/gsever/pool/lib / lib libboost_python-gcc43-mt.so .dylib
 /home/gsever/pool/lib / lib libboost_python-gcc43-mt.so .lib
 /home/gsever/pool/lib /  libboost_python-gcc43-mt.so .so
 /home/gsever/pool/lib /  libboost_python-gcc43-mt.so .dylib
 /home/gsever/pool/lib /  libboost_python-gcc43-mt.so .lib
 *** Cannot find Boost Python library. Checked locations:
/home/gsever/pool/lib/liblibboost_python-gcc43-mt.so.so
/home/gsever/pool/lib/liblibboost_python-gcc43-mt.so.dylib
/home/gsever/pool/lib/liblibboost_python-gcc43-mt.so.lib
/home/gsever/pool/lib/libboost_python-gcc43-mt.so.so
/home/gsever/pool/lib/libboost_python-gcc43-mt.so.dylib
/home/gsever/pool/lib/libboost_python-gcc43-mt.so.lib
 /home/gsever/pool/lib / lib libboost_thread-gcc43-mt.so .so
 /home/gsever/pool/lib / lib libboost_thread-gcc43-mt.so .dylib
 /home/gsever/pool/lib / lib libboost_thread-gcc43-mt.so .lib
 /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .so
 /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .dylib
 /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .lib
 /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .so
 /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .dylib
 /home/gsever/pool/lib /  libboost_thread-gcc43-mt.so .lib
 *** Cannot find Boost Thread library. Checked locations:
/home/gsever/pool/lib/liblibboost_thread-gcc43-mt.so.so
/home/gsever/pool/lib/liblibboost_thread-gcc43-mt.so.dylib
/home/gsever/pool/lib/liblibboost_thread-gcc43-mt.so.lib
/home/gsever/pool/lib/libboost_thread-gcc43-mt.so.so
/home/gsever/pool/lib/libboost_thread-gcc43-mt.so.dylib
/home/gsever/pool/lib/libboost_thread-gcc43-mt.so.lib
/home/gsever/pool/lib/libboost_thread-gcc43-mt.so.so
/home/gsever/pool/lib/libboost_thread-gcc43-mt.so.dylib
/home/gsever/pool/lib/libboost_thread-gcc43-mt.so.lib
 /usr/local/cuda /bin/  nvcc
 /usr/local/cuda/include /  cuda .h
 /usr/local/cuda/lib / lib cuda .so
 /usr/local/cuda/lib / lib cuda .dylib
 /usr/local/cuda/lib / lib cuda .lib
 /usr/local/cuda/lib /  cuda .so
 /usr/local/cuda/lib /  cuda .dylib
 /usr/local/cuda/lib /  cuda .lib
 /usr/local/cuda/lib /  cuda .so
 /usr/local/cuda/lib /  cuda .dylib
 /usr/local/cuda/lib /  cuda .lib
 /usr/local/cuda/lib /  cuda .so
 /usr/local/cuda/lib /  cuda .dylib
 /usr/local/cuda/lib /  cuda .lib
 *** Cannot find CUDA driver library. Checked locations:
/usr/local/cuda/lib/libcuda.so
/usr