Skip to content

Commit

Permalink
[BLAS] add metaport (#13448)
Browse files Browse the repository at this point in the history
* [BLAS] add metaport

* [openblas] enable also on macOS to allow lapack-reference previous setup

* [clapack] bump port version

* [blas, lapack] Remove incorrect comments about "outside vcpkg"

Co-authored-by: Billy Robert O'Neal III <[email protected]>
  • Loading branch information
cenit and BillyONeal authored Nov 18, 2020
1 parent 3217e25 commit 3e2120f
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ports/armadillo/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Source: armadillo
Version: 10.1.0
Homepage: https://gitlab.com/conradsnicta/armadillo-code
Description: Armadillo is a high quality linear algebra library (matrix maths) for the C++ language, aiming towards a good balance between speed and ease of use
Build-Depends: openblas, lapack
Build-Depends: blas, lapack
4 changes: 4 additions & 0 deletions ports/blas/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cmake_minimum_required(VERSION 3.17)

project(Find_BLAS_external)
find_package(BLAS REQUIRED)
4 changes: 4 additions & 0 deletions ports/blas/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Source: blas
Version: 1
Description: Metapackage for packages which provide BLAS
Build-Depends: openblas
5 changes: 5 additions & 0 deletions ports/blas/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)

# Make sure BLAS can be found
vcpkg_configure_cmake(SOURCE_PATH ${CURRENT_PORT_DIR}
OPTIONS -DCMAKE_PREFIX_PATH="${CURRENT_PACKAGES_DIR}")
4 changes: 2 additions & 2 deletions ports/clapack/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: clapack
Version: 3.2.1
Port-Version: 15
Port-Version: 16
Homepage: https://www.netlib.org/clapack
Description: CLAPACK (f2c'ed version of LAPACK)
Build-Depends: openblas (!osx)
Build-Depends: blas
2 changes: 1 addition & 1 deletion ports/dlib/CONTROL
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Source: dlib
Version: 19.21
Port-Version: 4
Build-Depends: libjpeg-turbo, libpng, openblas, lapack
Build-Depends: libjpeg-turbo, libpng, blas, lapack
Homepage: https://github.com/davisking/dlib
Description: Modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++
Default-Features: fftw3, sqlite3
Expand Down
2 changes: 1 addition & 1 deletion ports/ensmallen/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Source: ensmallen
Version: 2.14.2
Homepage: https://github.com/mlpack/ensmallen
Description: A header-only C++ library for mathematical optimization.
Build-Depends: openblas, lapack, armadillo
Build-Depends: blas, lapack, armadillo
2 changes: 1 addition & 1 deletion ports/geogram/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Version: 1.7.5
Port-Version: 2
Homepage: https://gforge.inria.fr/projects/geogram/
Description: Geogram is a programming library of geometric algorithms.
Build-Depends: openblas, lapack
Build-Depends: blas, lapack
Supports: !uwp

Feature: graphics
Expand Down
1 change: 1 addition & 0 deletions ports/halide/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ Build-Depends: llvm[core,target-riscv]
Feature: target-x86
Description: Include X86 target
Build-Depends: llvm[core,target-x86]

2 changes: 1 addition & 1 deletion ports/hypre/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Source: hypre
Version: 2.19.0
Homepage: https://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods
Description: SCALABLE LINEAR SOLVERS AND MULTIGRID METHODS
Build-Depends: mpi, openblas, lapack
Build-Depends: mpi, blas, lapack
2 changes: 1 addition & 1 deletion ports/lapack-reference/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Feature: cblas
Description: Builds CBLAS

Feature: noblas
Build-Depends: openblas
Build-Depends: blas
Description: Use external optimized BLAS

Feature: blas-select
Expand Down
1 change: 0 additions & 1 deletion ports/lapack/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ cmake_minimum_required(VERSION 3.17)

project(Find_LAPACK_external)
find_package(LAPACK REQUIRED)
#TODO make sure that the found LAPACK is outside VCPKG
1 change: 1 addition & 0 deletions ports/lapack/CONTROL
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Source: lapack
Version: 3
Port-Version: 1
Description: Metapackage for packages which provide LAPACK
Build-Depends: clapack(arm&windows), lapack-reference(!arm|!windows)
6 changes: 3 additions & 3 deletions ports/shogun/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Source: shogun
Version: 6.1.4
Port-Version: 3
Build-Depends: bzip2, eigen3, liblzma, libxml2, openblas, nlopt, rxcpp, snappy, zlib, protobuf, curl, lzo, dirent
Port-Version: 4
Build-Depends: bzip2, eigen3, liblzma, libxml2, blas, nlopt, rxcpp, snappy, zlib, protobuf, curl, lzo, dirent
Homepage: https://github.com/shogun-toolbox/shogun
Description: Unified and efficient Machine Learning
Description: Unified and efficient Machine Learning
4 changes: 2 additions & 2 deletions ports/superlu/CONTROL
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Source: superlu
Version: 2020-01-07
Port-Version: 2
Build-Depends: openblas
Build-Depends: blas
Description: Supernodal sparse direct solver.
Homepage: https://github.com/xiaoyeli/superlu
Supports: !(uwp|arm)
Supports: !(uwp|arm)

0 comments on commit 3e2120f

Please sign in to comment.