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 that > information is very useful to one of the projects I'm working on. The > implication 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/Bscw So, if you're running 0.93 against 2.2, you'll get a deprecation warning for using .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 new API anyway. I've added a note to the docs about what the "new way" is. Andreas
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PyCuda mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
