Skip to content

Commit

Permalink
Merge pull request #52 from untom/mempool_py3
Browse files Browse the repository at this point in the history
Fix PooledDeviceAllocation for Python3
  • Loading branch information
inducer committed Aug 25, 2014
2 parents ac3bfc9 + 78b01c1 commit 6a8bcdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wrapper/mempool.cpp
Expand Up @@ -286,6 +286,7 @@ void pycuda_expose_tools()
.DEF_SIMPLE_METHOD(free)
.def("__int__", &cl::ptr)
.def("__long__", pooled_device_allocation_to_long)
.def("__index__", pooled_device_allocation_to_long)
.def("__len__", &cl::size)
;

Expand Down

0 comments on commit 6a8bcdd

Please sign in to comment.