On Sat, 19 Feb 2011 02:01:52 -0800, Christoph Gohlke <cgoh...@uci.edu> wrote: > > > On 2/17/2011 5:39 AM, Andreas Kloeckner wrote: > > On Thu, 17 Feb 2011 01:25:25 -0800, Christoph Gohlke<cgoh...@uci.edu> > > wrote: > >> 4) Delete the CUDA cache directory. I found this necessary sometimes > >> when switching between 32 and 64 bit CUDA. > > > > That's a bug. I've added system bitness (in the form of sys.maxint) to > > the hash key for the cache. Shouldn't be necessary any more. > > Sys.maxint will not work on Windows. It is 2147483647 on 32 and 64 bit > Windows. > > How about using `struct.calcsize("P")` or `platform.architecture()[0]` > to differentiate between 32 and 64 bit platforms?
Ok, should be fixed by using (new) pycuda.characterize.platform_bits(), which uses tuple.__itemsize__. Thanks, Andreas
pgpp5bHnIFlBv.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda