[openblas] Add feature simplethread and thread (#18265)

* [openblas] Add feature simplethread and thread

* update version record

* Update ports/openblas/portfile.cmake

* Update ports/openblas/vcpkg.json

* Update ports/openblas/vcpkg.json

* Update versions/o-/openblas.json
This commit is contained in:
Jack·Boos·Yu 2021-06-11 07:16:36 +08:00 committed by GitHub
parent 03992f2e1d
commit cbe38c8280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 8 deletions

View File

@ -1,5 +0,0 @@
Source: openblas
Version: 0.3.10
Homepage: https://github.com/xianyi/OpenBLAS
Build-Depends: pthread (!windows&!uwp)
Description: OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.

View File

@ -25,6 +25,12 @@ set(PATH_BACKUP "$ENV{PATH}")
vcpkg_add_to_path("${PERL_EXE_PATH}")
vcpkg_add_to_path("${SED_EXE_PATH}")
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
threads USE_THREAD
simplethread USE_SIMPLE_THREADED_LEVEL3
)
set(COMMON_OPTIONS -DBUILD_WITHOUT_LAPACK=ON)
# for UWP version, must build non uwp first for helper
@ -40,7 +46,7 @@ if(VCPKG_TARGET_IS_UWP)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
OPTIONS ${FEATURE_OPTIONS}
${COMMON_OPTIONS}
-DTARGET=NEHALEM
)
@ -69,7 +75,8 @@ elseif(VCPKG_TARGET_IS_WINDOWS)
PREFER_NINJA
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
${COMMON_OPTIONS})
${COMMON_OPTIONS}
)
else()
list(APPEND VCPKG_C_FLAGS "-DNEEDBUNDERSCORE") # Required to get common BLASFUNC to append extra _
list(APPEND VCPKG_CXX_FLAGS "-DNEEDBUNDERSCORE")

32
ports/openblas/vcpkg.json Normal file
View File

@ -0,0 +1,32 @@
{
"name": "openblas",
"version": "0.3.10",
"port-version": 1,
"description": "OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.",
"homepage": "https://github.com/xianyi/OpenBLAS",
"default-features": [
"threads"
],
"features": {
"simplethread": {
"description": "Use simple thread",
"dependencies": [
{
"name": "openblas",
"features": [
"thread"
]
}
]
},
"threads": {
"description": "Use a threading backend",
"dependencies": [
{
"name": "pthread",
"platform": "!windows & !uwp"
}
]
}
}
}

View File

@ -4486,7 +4486,7 @@
},
"openblas": {
"baseline": "0.3.10",
"port-version": 0
"port-version": 1
},
"opencascade": {
"baseline": "7.5.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b2beefd63c302b41dc5699ea88b825659c86ac2d",
"version": "0.3.10",
"port-version": 1
},
{
"git-tree": "1aedad4847c778ad029f805f7b371bcbbb060f09",
"version-string": "0.3.10",