Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ignore memory management object for native alloc funcitons#3300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
umar456 wants to merge3 commits intoarrayfire:master
base:master
Choose a base branch
Loading
fromumar456:native_mm_ignore_mm

Conversation

umar456
Copy link
Member

This PR adds a new memory manager example and fixes the native alloc function so that it ignores the af_memory_manager object.

Description

  • Creates a new memory manager example
  • The native alloc and native free functions now ignore the af_memory_manager object because they now allocate on the current device.
  • Empty allocations on the CPU backend do not call the alloc function

Changes to Users

N/A

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • Functions added to unified API
  • Functions documented

The native alloc and free functions are used to allocate and freefunctions. These functions do not need the memory manager implementationto work because they are just allocating directly with the underlyingbackend. This change will now ignore the memory manager objectwhen allocating the memory.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
3.9.0
Development

Successfully merging this pull request may close these issues.

2 participants
@umar456@syurkevi

[8]ページ先頭

©2009-2025 Movatter.jp