Skip to content

Conversation

@umar456
Copy link
Member

@umar456 umar456 commented Jun 1, 2020

  • Created snippets for examples in the document

Fixes #2917

* Created snippets for examples in the document
@umar456 umar456 force-pushed the ocl_device_leak branch from 107fe97 to 67b734a Compare June 2, 2020 19:43

// 4. Create ArrayFire arrays from OpenCL memory objects
af::array af_A = afcl::array(length, cl_A(), f32, true);
clRetainMemObject(cl_A());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel like this unnecessary extra retain.

@9prady9 9prady9 merged commit 90e6553 into arrayfire:master Jun 3, 2020
@umar456 umar456 deleted the ocl_device_leak branch June 26, 2020 18:36
@umar456 umar456 added this to the 3.7.2 milestone Jun 27, 2020
@umar456 umar456 mentioned this pull request Jun 27, 2020
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory leak in OpenCL backend

2 participants