Hi Eric, Eric Scheffel <eric.schef...@nottingham.edu.cn> writes: > I noticed some strange behaviour with the most recent version of PyCuda > (I think I pulled this from the git repository but am not sure anymore). > I am running a loop in which textures continuously have to be rebound > using "matrix_to_texref" to newly computed 2D matrices. > > But when I do this after the first iteration, the program then crashes > because in pycuda's driver.py file the "bind_array_to_texref" routine > checks if the flags have already been set with the line "assert > texref.get_flags() == 0": > > def bind_array_to_texref(ary, texref): > texref.set_array(ary) > texref.set_address_mode(0, address_mode.CLAMP) > texref.set_address_mode(1, address_mode.CLAMP) > texref.set_filter_mode(filter_mode.POINT) > #assert texref.get_flags() == 0 > > So when I comment this out in driver.py (as shown above), my code runs > fine and re-binding can take place as many times as I want. Is this a bug?
Doesn't look particularly necessary--this is likely scaffolding that's left over from when I wrote it. I've removed it from git. Thanks for the report. > Thanks, > Eric > (auch urspruenglich aus Karlsruhe) :) Andreas
pgpzkTzFS1IuX.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda