← 返回首页
Fix get_mem_step_size function signature by edwinsolisf · Pull Request #59 · arrayfire/arrayfire-binary-python-wrapper · 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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected Viewed files
Conversations
Failed to load comments. Retry
Loading
Jump to
Jump to file
Failed to load files. Retry
Loading
Diff view
Unified
Split
Hide whitespace
Apply and reload
Show whitespace
Diff view
Unified
Split
Hide whitespace
Apply and reload
Show comments View file Edit file Delete file Open in desktop
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
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,13 @@ def get_kernel_cache_directory(length: int, path: str, /) -> None:
call_from_clib(get_kernel_cache_directory.__name__, ctypes.c_size_t(length), path.encode("utf-8"))


def get_mem_step_size(step_bytes: int, /) -> None:
def get_mem_step_size() -> int:
"""
source: https://arrayfire.org/docs/group__device__func__mem.htm#ga4c04df1ae248a6a8aa0a28263323872a
"""
call_from_clib(get_mem_step_size.__name__, ctypes.c_size_t(step_bytes))
out = ctypes.c_int(0)
call_from_clib(get_mem_step_size.__name__, ctypes.pointer(out))
return int(out.value)


def is_locked_array(arr: AFArray, /) -> bool:
Expand Down
Toggle all file notes Toggle all file annotations

Footer

© 2026 GitHub, Inc.