Good to hear! Thanks for the explanation. - bryan
On May 19, 2009, at 4:10 PM, Andreas Klöckner wrote:
On Dienstag 19 Mai 2009, Bryan Catanzaro wrote:I was browsing the documentation and saw the note that pycuda.driver.Function.registers, etc. are deprecated and will be removed in PyCuda 0.94. That makes me a little sad, as thatinformation is very useful to one of the projects I'm working on. Theimplication in the documentation is that this is Cuda 2.2's fault. But I'm a little confused as to why - the .cubin files produced by my nvcc 2.2 compiler still have that information, so I must be missing something important here... What changed to make these useful attributes deprecated?No, it's different--things are getting better, not worse! :) CUDA 2.2 introduces an official API to find these values: http://is.gd/BscwSo, if you're running 0.93 against 2.2, you'll get a deprecation warning forusing .registers etc. The goal is to keep with the Zen of Python: There should be one-- and preferably only one --obvious way to do it.Since CUDA 2.2 brought us a second way, the first one gets deprecated. If this meets enough resistance, I guess I could be convinced to keep .registers et al around. I'd rather not though. On 2.2, all .registers does now is call the newAPI anyway. I've added a note to the docs about what the "new way" is. Andreas _______________________________________________ PyCuda mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ PyCuda mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
