Skip to content

Commit

Permalink
Avoid free_all_free
Browse files Browse the repository at this point in the history
  • Loading branch information
okuta committed Jun 20, 2017
1 parent 8de94bc commit 5ffc080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cupy/cuda/memory.pyx
Expand Up @@ -361,7 +361,7 @@ cdef class SingleDeviceMemoryPool:
except runtime.CUDARuntimeError as e:
if e.status != runtime.errorMemoryAllocation:
raise
self.free_all_free()
self.free_all_blocks()
try:
mem = self._alloc(size).mem
except runtime.CUDARuntimeError as e:
Expand Down

0 comments on commit 5ffc080

Please sign in to comment.