Skip to content

Commit

Permalink
Fix PooledDeviceAllocation for Python3
Browse files Browse the repository at this point in the history
  • Loading branch information
untom committed Aug 25, 2014
1 parent ac3bfc9 commit 78b01c1
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 78b01c1

Please sign in to comment.