Skip to content

Commit

Permalink
add openblas 64
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihsin committed Dec 20, 2024
1 parent 5a586a4 commit ef1fe49
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ if(DEFINED SKBUILD)
)

# get openblas deps
set(OpenBLAS_LIBRARIES ${PY_SITE_PKG_PREFIX}/scipy_openblas32/lib/libscipy_openblas.so)
set(OpenBLAS_INCLUDE_DIRS ${PY_SITE_PKG_PREFIX}/scipy_openblas32/include)
set(OpenBLAS_LIBRARIES ${PY_SITE_PKG_PREFIX}/scipy_openblas64/lib/libscipy_openblas64_.so)
set(OpenBLAS_INCLUDE_DIRS ${PY_SITE_PKG_PREFIX}/scipy_openblas64/include)
option(LAPACK_ILP64 "using openblas with ILP64")
set(BLAS_LIBRARIES ${OpenBLAS_LIBRARIES})
set(LAPACK_LIBRARIES ${OpenBLAS_LIBRARIES})
target_include_directories(${PKG_NAME} SYSTEM
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [
requires-python = ">=3.10"
dependencies = [
"numpy>=2.2.0",
"scipy-openblas32>=0.3.28.0.2",
"scipy-openblas64>=0.3.28.0.2",
]

[tool.scikit-build]
Expand Down Expand Up @@ -63,7 +63,7 @@ src_paths = ["src/cytnx_core"]
requires = [
"scikit-build-core>=0.10",
"pybind11",
"scipy_openblas32>=0.3.28.0.2",
"scipy-openblas64>=0.3.28.0.2",
]
build-backend = "scikit_build_core.build"

Expand Down
2 changes: 1 addition & 1 deletion src/cytnx_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# import this so the openblas can be properly pre-load
import scipy_openblas32 # noqa F401
import scipy_openblas64 # noqa F401

from cytnx_core._core import Type as Type, device as device
26 changes: 12 additions & 14 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ef1fe49

Please sign in to comment.