← 返回首页
Update OpenCL interop page so they discuss deleting of memory by umar456 · Pull Request #2918 · arrayfire/arrayfire · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Update OpenCL interop page so they discuss deleting of memory#2918

Merged
9prady9 merged 1 commit into
arrayfire:masterfrom
umar456:ocl_device_leak
Jun 3, 2020
Merged

Update OpenCL interop page so they discuss deleting of memory#2918
9prady9 merged 1 commit into
arrayfire:masterfrom
umar456:ocl_device_leak

Conversation

Copy link
Copy Markdown
Member

umar456 commented Jun 1, 2020

  • Created snippets for examples in the document

Fixes #2917

* Created snippets for examples in the document
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Feel like this unnecessary extra retain.

9prady9 merged commit 90e6553 into arrayfire:master Jun 3, 2020
umar456 deleted the ocl_device_leak branch June 26, 2020 18:36
umar456 added this to the 3.7.2 milestone Jun 27, 2020
umar456 mentioned this pull request Jun 27, 2020
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.