Skip to content

Commit

Permalink
[lapack-reference] support the lapacke feature of lapack-reference
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 2, 2024
1 parent 4f746bc commit 1615154
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
8 changes: 6 additions & 2 deletions ports/lapack-reference/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#TODO: Features to add:
# USE_XBLAS??? extended precision blas. needs xblas
# LAPACKE should be its own PORT
# USE_OPTIMIZED_LAPACK (Probably not what we want. Does a find_package(LAPACK): probably for LAPACKE only builds _> own port?)
# LAPACKE Builds LAPACKE
# LAPACKE_WITH_TMG Build LAPACKE with tmglib routines
if(EXISTS "${CURRENT_INSTALLED_DIR}/share/clapack/copyright")
message(FATAL_ERROR "Can't build ${PORT} if clapack is installed. Please remove clapack:${TARGET_TRIPLET}, and try to install ${PORT}:${TARGET_TRIPLET} again.")
Expand Down Expand Up @@ -56,13 +54,19 @@ if(VCPKG_USE_INTERNAL_Fortran)
endif()
endif()

vcpkg_check_features(OUT_FEATURE_OPTIONS options
FEATURES
lapacke LAPACKE
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
"-DUSE_OPTIMIZED_BLAS=${USE_OPTIMIZED_BLAS}"
"-DCMAKE_REQUIRE_FIND_PACKAGE_BLAS=${USE_OPTIMIZED_BLAS}"
"-DCBLAS=${CBLAS}"
"-DTEST_FORTRAN_COMPILER=OFF"
${options}
${FORTRAN_CMAKE}
MAYBE_UNUSED_VARIABLES
CMAKE_REQUIRE_FIND_PACKAGE_BLAS
Expand Down
5 changes: 4 additions & 1 deletion ports/lapack-reference/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lapack-reference",
"version": "3.11.0",
"port-version": 6,
"port-version": 7,
"description": "LAPACK - Linear Algebra PACKage",
"homepage": "https://netlib.org/lapack/",
"license": "BSD-3-Clause-Open-MPI",
Expand Down Expand Up @@ -39,6 +39,9 @@
"cblas": {
"description": "Builds CBLAS"
},
"lapacke": {
"description": "Build the LAPACKE C Interface to LAPACK"
},
"noblas": {
"description": "Use external optimized BLAS",
"supports": "!windows | !static",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4178,7 +4178,7 @@
},
"lapack-reference": {
"baseline": "3.11.0",
"port-version": 6
"port-version": 7
},
"lastools": {
"baseline": "2.0.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/lapack-reference.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0e87cc54fe20ae5272c037df3387aa6b1fdcdedb",
"version": "3.11.0",
"port-version": 7
},
{
"git-tree": "c6447c2a6f70504bfbf20f2e649bcc17a6ce67de",
"version": "3.11.0",
Expand Down

0 comments on commit 1615154

Please sign in to comment.