Eric Scheffel <Eric.SCHEFFEL(a)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):
#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
(auch urspruenglich aus Karlsruhe)