-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5066 from OpenMathLib/develop
Merge changes from develop in preparation of the 0.3.29 release
- Loading branch information
Showing
226 changed files
with
13,460 additions
and
2,233 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
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,37 @@ | ||
name: harmonyos | ||
|
||
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
|
||
jobs: | ||
build: | ||
if: "github.repository == 'OpenMathLib/OpenBLAS'" | ||
runs-on: ubuntu-latest | ||
env: | ||
OHOS_NDK_CMAKE: $GITHUB_WORKSPACE/ohos-sdk/linux/native/build-tools/cmake/bin/cmake | ||
COMMON_CMAKE_OPTIONS: | | ||
-DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/ohos-sdk/linux/native/build/cmake/ohos.toolchain.cmake \ | ||
-DCMAKE_INSTALL_PREFIX=install \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: ndk-install | ||
run: | | ||
wget https://repo.huaweicloud.com/harmonyos/os/4.1.1-Release/ohos-sdk-windows_linux-public.tar.gz | ||
tar -xf ohos-sdk-windows_linux-public.tar.gz | ||
cd ohos-sdk/linux | ||
unzip -q native-linux-x64-4.1.7.8-Release.zip | ||
cd - | ||
- name: build-armv8 | ||
run: | | ||
mkdir build && cd build | ||
${{ env.OHOS_NDK_CMAKE }} ${{ env.COMMON_CMAKE_OPTIONS }} -DOHOS_ARCH="arm64-v8a" \ | ||
-DTARGET=ARMV8 -DNOFORTRAN=1 .. | ||
${{ env.OHOS_NDK_CMAKE }} --build . -j $(nproc) | ||
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
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 |
---|---|---|
|
@@ -2,13 +2,14 @@ | |
## Author: Hank Anderson <[email protected]> | ||
## | ||
|
||
cmake_minimum_required(VERSION 2.8.5) | ||
cmake_minimum_required(VERSION 3.16.0) | ||
|
||
set (CMAKE_ASM_SOURCE_FILE_EXTENSIONS "S") | ||
project(OpenBLAS C ASM) | ||
|
||
set(OpenBLAS_MAJOR_VERSION 0) | ||
set(OpenBLAS_MINOR_VERSION 3) | ||
set(OpenBLAS_PATCH_VERSION 28) | ||
set(OpenBLAS_PATCH_VERSION 28.dev) | ||
|
||
set(OpenBLAS_VERSION "${OpenBLAS_MAJOR_VERSION}.${OpenBLAS_MINOR_VERSION}.${OpenBLAS_PATCH_VERSION}") | ||
|
||
|
@@ -102,6 +103,10 @@ endif() | |
|
||
message(WARNING "CMake support is experimental. It does not yet support all build options and may not produce the same Makefiles that OpenBLAS ships with.") | ||
|
||
if (USE_OPENMP) | ||
find_package(OpenMP REQUIRED) | ||
endif () | ||
|
||
include("${PROJECT_SOURCE_DIR}/cmake/utils.cmake") | ||
include("${PROJECT_SOURCE_DIR}/cmake/system.cmake") | ||
|
||
|
@@ -258,8 +263,13 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "AIX|Android|Linux|FreeBSD|OpenBSD|NetBSD|Drago | |
endif() | ||
endif() | ||
|
||
if (APPLE AND BUILD_SHARED_LIBS) | ||
set(CMAKE_MACOSX_RPATH ON) | ||
if (USE_OPENMP) | ||
if(BUILD_STATIC_LIBS) | ||
target_link_libraries(${OpenBLAS_LIBNAME}_static OpenMP::OpenMP_C) | ||
endif() | ||
if(BUILD_SHARED_LIBS) | ||
target_link_libraries(${OpenBLAS_LIBNAME}_shared OpenMP::OpenMP_C) | ||
endif() | ||
endif() | ||
|
||
# Seems that this hack doesn't required since macOS 11 Big Sur | ||
|
Oops, something went wrong.