[mlpack] Add feature openmp (#18942)

* [mlpack] Add feature openmp

* format manifest

* add version stuff

* Update ports/mlpack/portfile.cmake

* Update versions/m-/mlpack.json
This commit is contained in:
Jack·Boos·Yu 2021-07-17 03:55:36 +08:00 committed by GitHub
parent bbe9763f62
commit ee9de9fcc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 3 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4dd92f0..bfa697d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -488,7 +488,7 @@ add_definitions(-DBOOST_TEST_DYN_LINK)
# }
# #endif
if (USE_OPENMP)
- find_package(OpenMP)
+ find_package(OpenMP REQUIRED)
endif ()
if (OPENMP_FOUND)

View File

@ -8,6 +8,7 @@ vcpkg_from_github(
cmakelists.patch
fix-configure-error.patch
fix-test-dependency.patch
fix-dependencies.patch
)
file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindACML.cmake)
@ -22,7 +23,9 @@ file(REMOVE ${SOURCE_PATH}/CMake/ARMA_FindOpenBLAS.cmake)
file(REMOVE ${SOURCE_PATH}/CMake/FindArmadillo.cmake)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
tools BUILD_CLI_EXECUTABLES
FEATURES
tools BUILD_CLI_EXECUTABLES
openmp USE_OPENMP
)
vcpkg_configure_cmake(

View File

@ -1,7 +1,7 @@
{
"name": "mlpack",
"version": "3.4.1",
"port-version": 1,
"port-version": 2,
"description": "mlpack is a fast, flexible machine learning library, written in C++, that aims to provide fast, extensible implementations of cutting-edge machine learning algorithms.",
"homepage": "https://github.com/mlpack/mlpack",
"supports": "uwp",
@ -17,6 +17,9 @@
"stb"
],
"features": {
"openmp": {
"description": "use OpenMP for parallelization."
},
"tools": {
"description": "Build command-line executables."
}

View File

@ -4082,7 +4082,7 @@
},
"mlpack": {
"baseline": "3.4.1",
"port-version": 1
"port-version": 2
},
"mman": {
"baseline": "git-f5ff813-3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "587ee2575ef7543ff9a0ed30e645154db26f0001",
"version": "3.4.1",
"port-version": 2
},
{
"git-tree": "4793fb5802e10e645d5d33e0ec2baf6f1a0a337b",
"version": "3.4.1",