On 2/19/2011 2:01 AM, Christoph Gohlke wrote:


On 2/17/2011 5:39 AM, Andreas Kloeckner wrote:
On Thu, 17 Feb 2011 01:25:25 -0800, Christoph Gohlke<[email protected]>
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?

On second thought, sys.maxsize would work best, at least for Python >= 2.6.

Christoph


Christoph


Thanks for the report,
Andreas


_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to