Hi there,
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?
Thanks,
Eric
(auch urspruenglich aus Karlsruhe)
--
Dr. Eric Michael Scheffel
Assistant Professor in Economics
Ningbo Nottingham University
Site: http://www.ericscheffel.com
This message and any attachment are intended solely for the addressee and may
contain confidential information.
If you have received this message in error, please send it back to me, and
immediately delete it.
Please do not use, copy or disclose the information contained in this message
or in any attachment.
Any views or opinions expressed by the author of this email do not necessarily
reflect the views of The University of Nottingham Ningbo China.
This message has been checked for viruses but the contents of an attachment may
still contain software viruses which could damage your computer system:
you are advised to perform your own checks.
Email communications with The University of Nottingham Ningbo China may be
monitored as permitted by UK and Chinese legislation.
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda