Skip to content

Commit

Permalink
[OpenBLAS] Upgrade to 0.3.21 and add arm64-windows support (#26396)
Browse files Browse the repository at this point in the history
* Upgrade OpenBLAS

* Update OpenBLAS version

* Add OpenBLAS dependents to ci.baseline

Co-authored-by: Nursultan Zarlyk <nzarlyk@microsoft.com>
  • Loading branch information
nursik and Nursultan Zarlyk committed Aug 25, 2022
1 parent 8a5bbf4 commit a9dc9a4
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
8 changes: 4 additions & 4 deletions ports/openblas/fix-space-path.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/cmake/prebuild.cmake b/cmake/prebuild.cmake
index 58ca1eb..e2f2134 100644
index 60b7637..a8b34ef 100644
--- a/cmake/prebuild.cmake
+++ b/cmake/prebuild.cmake
@@ -490,14 +490,14 @@ else(NOT CMAKE_CROSSCOMPILING)
@@ -1322,14 +1322,14 @@ else(NOT CMAKE_CROSSCOMPILING)

set(GETARCH_DIR "${PROJECT_BINARY_DIR}/getarch_build")
set(GETARCH_BIN "getarch${CMAKE_EXECUTABLE_SUFFIX}")
Expand All @@ -19,9 +19,9 @@ index 58ca1eb..e2f2134 100644
- COPY_FILE ${PROJECT_BINARY_DIR}/${GETARCH_BIN}
+ COPY_FILE "${PROJECT_BINARY_DIR}/${GETARCH_BIN}"
)

if (NOT ${GETARCH_RESULT})
@@ -518,14 +518,14 @@ execute_process(COMMAND "${BLASHELPER_BINARY_DIR}/${GETARCH_BIN}" 1 OUTPUT_VARIA
@@ -1367,14 +1367,14 @@ execute_process(COMMAND "${BLASHELPER_BINARY_DIR}/${GETARCH_BIN}" 1 OUTPUT_VARIA

set(GETARCH2_DIR "${PROJECT_BINARY_DIR}/getarch2_build")
set(GETARCH2_BIN "getarch_2nd${CMAKE_EXECUTABLE_SUFFIX}")
Expand Down
10 changes: 7 additions & 3 deletions ports/openblas/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xianyi/OpenBLAS
REF 0b678b19dc03f2a999d6e038814c4c50b9640a4e # v0.3.20
SHA512 6e32f7dfc5dde46570873810c1da09d102f76ccfce41a5adbaeef2fccada54f9ab07e1ee541a6d55e138e6500392a6f55236f4f3a7766803358e5a6205334946
REF b89fb708caa5a5a32de8f4306c4ff132e0228e9a # v0.3.21
SHA512 495e885409f0c6178332cddd685f3c002dc92e7af251c4e4eb3da6935ef6e81565c2505d436245b9bf53ce58649764e0471dc43b7f5f30b6ed092366cbbc2d5c
HEAD_REF develop
PATCHES
uwp.patch
Expand Down Expand Up @@ -55,6 +55,10 @@ elseif(NOT (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW))
)
endif()

if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
list(APPEND OPENBLAS_EXTRA_OPTIONS -DCORE=GENERIC)
endif()

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
${conf_opts}
Expand Down Expand Up @@ -108,4 +112,4 @@ vcpkg_replace_string(

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")

file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
4 changes: 2 additions & 2 deletions ports/openblas/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "openblas",
"version": "0.3.20",
"version": "0.3.21",
"description": "OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.",
"homepage": "https://github.com/xianyi/OpenBLAS",
"license": "BSD-3-Clause",
"supports": "!(windows & arm)",
"supports": "!(arm & uwp)",
"dependencies": [
{
"name": "openblas",
Expand Down
4 changes: 4 additions & 0 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ discord-rpc:x64-uwp=fail
# requires g++11
discordcoreapi:x64-linux=fail
dlib:arm-uwp=fail
dlib:arm64-windows=fail
dlib:x64-uwp=fail
dmlc:arm-uwp=fail
dmlc:x64-uwp=fail
Expand Down Expand Up @@ -234,6 +235,7 @@ embree2:arm64-osx=skip
embree2:arm64-osx=skip
epsilon:arm-uwp=fail
epsilon:x64-uwp=fail
faiss:arm64-windows=fail
fastrtps:arm-uwp=fail
fastrtps:x64-uwp=fail
fastrtps:x64-windows-static=fail
Expand Down Expand Up @@ -281,6 +283,7 @@ gsoap:x86-windows = skip
gsoap:x64-windows-static = skip
gsoap:x64-windows-static-md = skip

geogram:arm64-windows=fail
# Port geotrans source ftp://ftp.nga.mil server
# extremely slow may take several hours to download
geotrans:x64-linux = skip
Expand Down Expand Up @@ -1037,6 +1040,7 @@ shogun:x64-windows-static-md=skip
shogun:x86-windows = skip
signalrclient:x64-uwp=fail
signalrclient:arm-uwp=fail
simbody:arm64-windows=fail
skia:arm-uwp=fail
skia:x64-uwp=fail
sleef:x86-windows=fail
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5185,7 +5185,7 @@
"port-version": 3
},
"openblas": {
"baseline": "0.3.20",
"baseline": "0.3.21",
"port-version": 0
},
"opencascade": {
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/openblas.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "17b5c709377ee3e375a3b6b165ac9acb9752c3f6",
"version": "0.3.21",
"port-version": 0
},
{
"git-tree": "abd8d8b0d0286d963399d79e3e8b6f7f8e12117b",
"version": "0.3.20",
Expand Down

0 comments on commit a9dc9a4

Please sign in to comment.