From 53295f2e594c15f35c6dfcd7e9e6028bf19b5e8e Mon Sep 17 00:00:00 2001 From: WangWeiLin-MV <156736127+WangWeiLin-MV@users.noreply.github.com> Date: Thu, 6 Mar 2025 17:58:55 +0000 Subject: [PATCH] [openblas] Update to 0.3.29 (#44150) --- ports/openblas/arm32-asm-function.diff | 21 --------------------- ports/openblas/portfile.cmake | 11 +---------- ports/openblas/vcpkg.json | 3 +-- ports/openblas/win32-uwp.diff | 10 +++++----- versions/baseline.json | 4 ++-- versions/o-/openblas.json | 5 +++++ 6 files changed, 14 insertions(+), 40 deletions(-) delete mode 100644 ports/openblas/arm32-asm-function.diff diff --git a/ports/openblas/arm32-asm-function.diff b/ports/openblas/arm32-asm-function.diff deleted file mode 100644 index e81758acba..0000000000 --- a/ports/openblas/arm32-asm-function.diff +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/common_arm.h b/common_arm.h -index a3db995..5f45976 100644 ---- a/common_arm.h -+++ b/common_arm.h -@@ -104,9 +104,16 @@ static inline int blas_quickdivide(blasint x, blasint y){ - - #if defined(ASSEMBLER) && !defined(NEEDPARAM) - -+#if !defined(__APPLE__) && !defined(_WIN32) -+#define OPENBLAS_ARM_TYPE_FUNCTION .type REALNAME, %function ; -+#else -+#define OPENBLAS_ARM_TYPE_FUNCTION -+#endif -+ - #define PROLOGUE \ - .arm ;\ - .global REALNAME ;\ -+ OPENBLAS_ARM_TYPE_FUNCTION \ - REALNAME: - - #define EPILOGUE diff --git a/ports/openblas/portfile.cmake b/ports/openblas/portfile.cmake index aa2fc03c49..07c9ad43b6 100644 --- a/ports/openblas/portfile.cmake +++ b/ports/openblas/portfile.cmake @@ -1,22 +1,14 @@ -vcpkg_download_distfile(ARM64_WINDOWS_UWP_PATCH - URLS "https://patch-diff.githubusercontent.com/raw/OpenMathLib/OpenBLAS/pull/4926.diff?full_index=1" - FILENAME "openblas-fix-arm64-windows-uwp.patch" - SHA512 808d375628499641f1134b4751c9861384b719dae14cf6bd4d9d4b09c9bfd9f8b13b2663e9fa9d09867b5b40817c26387ac659d2f6459d40a46455b2f540d018 -) - vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO OpenMathLib/OpenBLAS REF "v${VERSION}" - SHA512 358301c8a60bedf920c07a110c772feb639e52412bd783789741fd2fd0686aac97e6b17ebcdf01ce48a2a15841058f82df0fee551af952f6e70b58140c055133 + SHA512 046316b4297460bffca09c890ecad17ea39d8b3db92ff445d03b547dd551663d37e40f38bce8ae11e2994374ff01e622b408da27aa8e40f4140185ee8f001a60 HEAD_REF develop PATCHES - arm32-asm-function.diff disable-testing.diff getarch.diff system-check-msvc.diff win32-uwp.diff - ${ARM64_WINDOWS_UWP_PATCH} ) vcpkg_check_features(OUT_FEATURE_OPTIONS OPTIONS @@ -56,7 +48,6 @@ vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS ${OPTIONS} - -DCMAKE_POLICY_DEFAULT_CMP0054=NEW "-DCMAKE_PROJECT_INCLUDE=${CURRENT_PORT_DIR}/cmake-project-include.cmake" -DBUILD_TESTING=OFF -DBUILD_WITHOUT_LAPACK=ON diff --git a/ports/openblas/vcpkg.json b/ports/openblas/vcpkg.json index 55b236b512..9a22b2e473 100644 --- a/ports/openblas/vcpkg.json +++ b/ports/openblas/vcpkg.json @@ -1,7 +1,6 @@ { "name": "openblas", - "version": "0.3.28", - "port-version": 1, + "version": "0.3.29", "description": "OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.", "homepage": "https://github.com/OpenMathLib/OpenBLAS", "license": "BSD-3-Clause", diff --git a/ports/openblas/win32-uwp.diff b/ports/openblas/win32-uwp.diff index d609c83926..fdf9c63d39 100644 --- a/ports/openblas/win32-uwp.diff +++ b/ports/openblas/win32-uwp.diff @@ -24,7 +24,7 @@ diff --git a/cmake/system.cmake b/cmake/system.cmake index 683c318..eae7436 100644 --- a/cmake/system.cmake +++ b/cmake/system.cmake -@@ -502,7 +502,7 @@ if (USE_SIMPLE_THREADED_LEVEL3) +@@ -507,7 +507,7 @@ if (USE_SIMPLE_THREADED_LEVEL3) set(CCOMMON_OPT "${CCOMMON_OPT} -DUSE_SIMPLE_THREADED_LEVEL3") endif () @@ -33,7 +33,7 @@ index 683c318..eae7436 100644 if (DEFINED MAX_STACK_ALLOC) if (NOT ${MAX_STACK_ALLOC} EQUAL 0) set(CCOMMON_OPT "${CCOMMON_OPT} -DMAX_STACK_ALLOC=${MAX_STACK_ALLOC}") -@@ -511,7 +511,7 @@ else () +@@ -516,7 +516,7 @@ else () set(CCOMMON_OPT "${CCOMMON_OPT} -DMAX_STACK_ALLOC=2048") endif () endif () @@ -42,7 +42,7 @@ index 683c318..eae7436 100644 if (DEFINED BLAS3_MEM_ALLOC_THRESHOLD) if (NOT ${BLAS3_MEM_ALLOC_THRESHOLD} EQUAL 32) set(CCOMMON_OPT "${CCOMMON_OPT} -DBLAS3_MEM_ALLOC_THRESHOLD=${BLAS3_MEM_ALLOC_THRESHOLD}") -@@ -628,7 +628,7 @@ endif() +@@ -633,7 +633,7 @@ endif() set(LAPACK_FPFLAGS "${LAPACK_FPFLAGS} ${FPFLAGS}") #Disable -fopenmp for LAPACK Fortran codes on Windows. @@ -51,7 +51,7 @@ index 683c318..eae7436 100644 set(FILTER_FLAGS "-fopenmp;-mp;-openmp;-xopenmp=parallel") foreach (FILTER_FLAG ${FILTER_FLAGS}) string(REPLACE ${FILTER_FLAG} "" LAPACK_FFLAGS ${LAPACK_FFLAGS}) -@@ -660,11 +660,11 @@ if (INTERFACE64) +@@ -665,11 +665,11 @@ if (INTERFACE64) set(LAPACK_CFLAGS "${LAPACK_CFLAGS} -DLAPACK_ILP64") endif () @@ -64,4 +64,4 @@ index 683c318..eae7436 100644 +if (${CMAKE_C_COMPILER} STREQUAL "LSB" OR WIN32) set(LAPACK_CFLAGS "${LAPACK_CFLAGS} -DLAPACK_COMPLEX_STRUCTURE") endif () - + if (${CMAKE_C_COMPILER_ID} MATCHES "IntelLLVM" AND ${CMAKE_SYSTEM_NAME} STREQUAL "Windows") diff --git a/versions/baseline.json b/versions/baseline.json index 3ed0d3ccfd..2732f4a26c 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6685,8 +6685,8 @@ "port-version": 0 }, "openblas": { - "baseline": "0.3.28", - "port-version": 1 + "baseline": "0.3.29", + "port-version": 0 }, "opencascade": { "baseline": "7.9.0", diff --git a/versions/o-/openblas.json b/versions/o-/openblas.json index a1949804da..1a2505cfd0 100644 --- a/versions/o-/openblas.json +++ b/versions/o-/openblas.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "3d3d198cfb372ccd328a36248c4c12fb7c6b3bb6", + "version": "0.3.29", + "port-version": 0 + }, { "git-tree": "73b8d762190120c2155870da8e148f307d9a4294", "version": "0.3.28",