← 返回首页
Arrayfire wheel update by edwinsolisf · Pull Request #57 · 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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (3) .toml  (1) .txt  (1) All 3 file types selected Only manifest files 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
2 changes: 1 addition & 1 deletion CMakeLists.txt
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 @@ -15,7 +15,7 @@ if(DEFINED ENV{AF_BUILD_LOCAL_LIBS})
FetchContent_Declare(
arrayfire
GIT_REPOSITORY https://github.com/arrayfire/arrayfire.git
GIT_TAG v3.9
GIT_TAG v3.10
)
#TODO: change package name to match repository/project name?
#set(AF_INSTALL_CMAKE_DIR "${SKBUILD_PROJECT_NAME}")
Expand Down
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 @@ -2,11 +2,11 @@

import ctypes
import math
from typing import Any

from arrayfire_wrapper.defines import AFArray
from arrayfire_wrapper.lib._broadcast import bcast_var
from arrayfire_wrapper.lib.create_and_modify_array.manage_array import release_array, retain_array
from arrayfire_wrapper.defines import AFArray


class _IndexSequence(ctypes.Structure):
"""
Expand Down
8 changes: 5 additions & 3 deletions arrayfire_wrapper/lib/linear_algebra/blas_operations.py
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 @@ -5,7 +5,7 @@
from arrayfire_wrapper.dtypes import c_api_value_to_dtype, complex32, complex64, float32, float64
from arrayfire_wrapper.lib._constants import MatProp
from arrayfire_wrapper.lib._utility import call_from_clib
from arrayfire_wrapper.lib.create_and_modify_array.manage_array import get_type, copy_array
from arrayfire_wrapper.lib.create_and_modify_array.manage_array import copy_array, get_type


def dot(lhs: AFArray, rhs: AFArray, lhs_opts: MatProp, rhs_opts: MatProp, /) -> AFArray:
Expand All @@ -29,12 +29,14 @@ def dot_all(lhs: AFArray, rhs: AFArray, lhs_opts: MatProp, rhs_opts: MatProp, /)
return real.value if imag.value == 0 else real.value + imag.value * 1j


def gemm(lhs: AFArray, rhs: AFArray, lhs_opts: MatProp, rhs_opts: MatProp, alpha: Any, beta: Any, accum: AFArray | None, /) -> AFArray:
def gemm(
lhs: AFArray, rhs: AFArray, lhs_opts: MatProp, rhs_opts: MatProp, alpha: Any, beta: Any, accum: AFArray | None, /
) -> AFArray:
"""
source: https://arrayfire.org/docs/group__blas__func__matmul.htm#ga0463ae584163128718237b02faf5caf7
"""
out = None
if not accum is None:
if accum is not None:
out = copy_array(accum)
else:
beta = 0.0
Expand Down
4 changes: 2 additions & 2 deletions arrayfire_wrapper/version.py
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
@@ -1,7 +1,7 @@
import os

_MAJOR = "0"
_MINOR = "7"
_MINOR = "8"
# On main and in a nightly release the patch should be one ahead of the last
# released build.
_PATCH = "0"
Expand All @@ -13,7 +13,7 @@

FORGE_VER_MAJOR = "1"
ARRAYFIRE_VER_MAJOR = "3"
ARRAYFIRE_VER_MINOR = "9"
ARRAYFIRE_VER_MINOR = "10"
ARRAYFIRE_VER_PATCH = "0"
ARRAYFIRE_VERSION = "AF{0}.{1}.{2}".format(ARRAYFIRE_VER_MAJOR, ARRAYFIRE_VER_MINOR, ARRAYFIRE_VER_PATCH)

Expand Down
39 changes: 33 additions & 6 deletions pyproject.toml
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 @@ -29,7 +29,7 @@ build-backend = "scikit_build_core.build"

[project]
name = "arrayfire-binary-python-wrapper"
version = "0.7.0+AF3.9.0"
version = "0.8.0+AF3.10.0"
requires-python = ">=3.10"
authors = [
{ name = "ArrayFire", email = "technical@arrayfire.com"},
Expand Down Expand Up @@ -78,28 +78,55 @@ build-dir = "build"
py-api = "py3"
packages = ["arrayfire_wrapper"]
expand-macos-universal-tags = true
exclude = [
"libaf.so",
"libaf.so.3.10.0",
"libafcpu.so",
"libafcpu.so.3.10.0",
"libafopencl.so",
"libafopencl.so.3.10.0",
"libafcuda.so",
"libafcuda.so.3.10.0",
"libafoneapi.so",
"libafoneapi.so.3.10.0",
"libforge.so",
"libforge.so.1.0.8",
"libmkl_core.so",
"libmkl_rt.so",
"libmkl_intel_thread.so",
"libmkl_intel_lp64.so",
]

[tool.scikit-build.cmake]
build-type = "Release" # not working for whatever reason, duplicated below TODO: fix

[tool.scikit-build.cmake.define]
# edit to enable/disable building of desired backends
AF_BUILD_CPU = "ON"
AF_BUILD_ONEAPI = "ON"
AF_BUILD_CUDA = "ON"
AF_BUILD_OPENCL = "ON"
#AF_BUILD_ONEAPI = "ON"
#AF_BUILD_CUDA = "ON"
#AF_BUILD_OPENCL = "ON"
AF_BUILD_UNIFIED = "ON"
AF_BUILD_DOCS = "OFF"

CMAKE_BUILD_TYPE = "Release"
AF_BUILD_EXAMPLES = "OFF"
AF_WITH_IMAGEIO = "ON"
#AF_WITH_IMAGEIO = "ON"
AF_WITH_LOGGING = "ON"
AF_WITH_FMT_HEADER_ONLY = "ON"
AF_WITH_SPDLOG_HEADER_ONLY = "ON"
AF_BUILD_FORGE = "ON"
AF_TEST_WITH_MTX_FILES = "OFF"
AF_INSTALL_STANDALONE = "ON"

#AF_COMPUTE_LIBRARY = "Intel-MKL"
#AF_ADDITIONAL_MKL_LIBRARIES = ""
#AF_WITH_STATIC_CUDA_NUMERIC_LIBS = "OFF"
#CUDA_architecture_build_targets = "5.0;5.2;6.0;6.1;7.0;7.5;8.0;8.6;8.9;9.0;9.0+PTX"

#AF_BUILD_FORGE = "ON"
#FG_USE_STATIC_CPPFLAGS:BOOL = "OFF"
#FG_WITH_FREEIMAGE = "OFF"
#_GLIBCXX_USE_CXX11_ABI = "1"

[tool.scikit-build.logging]
level = "INFO"
Toggle all file notes Toggle all file annotations

Footer

© 2026 GitHub, Inc.