forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
181 changed files
with
9,184 additions
and
2,690 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Pyabacus Build and Test | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: PyTest | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/deepmodeling/abacus-gnu | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.8 | ||
- name: Build Pyabacus | ||
run: | | ||
cd python/pyabacus | ||
python -m pip install -v .[test] | ||
- name: Test Pyabacus | ||
run: | | ||
cd python/pyabacus/tests | ||
pytest -v |
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
if(DEFINED BLAS_DIR) | ||
string(APPEND CMAKE_PREFIX_PATH ";${BLAS_DIR}") | ||
endif() | ||
if(DEFINED BLAS_LIBRARY) | ||
set(BLAS_LIBRARIES ${BLAS_LIBRARY}) | ||
endif() | ||
|
||
find_package(BLAS REQUIRED) | ||
|
||
if(NOT TARGET BLAS::BLAS) | ||
add_library(BLAS::BLAS UNKNOWN IMPORTED) | ||
set_target_properties(BLAS::BLAS PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${BLAS_LIBRARIES}") | ||
endif() |
This file contains 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# In compatibility to builtin FindLAPACK.cmake before v3.5.4 | ||
if(DEFINED LAPACK_DIR) | ||
string(APPEND CMAKE_PREFIX_PATH ";${LAPACK_DIR}") | ||
endif() | ||
if(DEFINED LAPACK_LIBRARY) | ||
set(LAPACK_LIBRARIES ${LAPACK_LIBRARY}) | ||
endif() | ||
|
||
find_package(Blas REQUIRED) | ||
find_package(LAPACK REQUIRED) | ||
|
||
if(NOT TARGET LAPACK::LAPACK) | ||
add_library(LAPACK::LAPACK UNKNOWN IMPORTED) | ||
set_target_properties(LAPACK::LAPACK PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LANGUAGES "C" | ||
IMPORTED_LOCATION "${LAPACK_LIBRARIES}") | ||
endif() |
This file contains 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
This file contains 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
Oops, something went wrong.