Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

MEM_OBJECT_ALLOCATION_FAILURE #6

Open
burcuamirgan opened this issue Nov 5, 2019 · 1 comment
Open

MEM_OBJECT_ALLOCATION_FAILURE #6

burcuamirgan opened this issue Nov 5, 2019 · 1 comment

Comments

@burcuamirgan
Copy link

Hello
I have 2 large satellite images. And I split this images. My aim is to match together . But I get a "MEM_OBJECT_ALLOCATION_FAILURE" error.
I cannot delete the gpu memory used after processing each part in the loop.
Is there a way to reset GPU memory?

@pierrepaleo
Copy link
Owner

Hi @burcuamirgan

The only and simplest way to clear GPU memory is to delete the instance, due to the RAII mechanism used by sift_pyocl and pyopencl.

L = LinearAlign(big_image) # Allocates images on GPU (and a GPU context if non-existing)
# ...
del L # Free all GPU objects tied to L

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants