Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nils Gladitz
CMake
Commits
e4649d1d
Commit
e4649d1d
authored
Apr 14, 2021
by
Brad King
💬
Browse files
Find{BLAS,LAPACK}: Add test case covering Intel MKL
parent
116edb5c
Changes
8
Hide whitespace changes
Inline
Side-by-side
.gitlab/ci/configure_debian10_aarch64_ninja.cmake
View file @
e4649d1d
set
(
CMake_TEST_FindALSA
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindBLAS
"
ON
"
CACHE
BOOL
""
)
set
(
CMake_TEST_FindBLAS
"
All
"
CACHE
STRING
""
)
set
(
CMake_TEST_FindBoost
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindBoost_Python
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindBZip2
"ON"
CACHE BOOL
""
)
...
...
@@ -23,7 +23,7 @@ set(CMake_TEST_FindIconv "ON" CACHE BOOL "")
set
(
CMake_TEST_FindIntl
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindJPEG
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindJsonCpp
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindLAPACK
"
ON
"
CACHE
BOOL
""
)
set
(
CMake_TEST_FindLAPACK
"
All
"
CACHE
STRING
""
)
set
(
CMake_TEST_FindLibArchive
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindLibinput
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindLibLZMA
"ON"
CACHE BOOL
""
)
...
...
.gitlab/ci/configure_debian10_ninja.cmake
View file @
e4649d1d
set
(
CMake_TEST_FindALSA
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindBLAS
"
ON
"
CACHE
BOOL
""
)
set
(
CMake_TEST_FindBLAS
"
All
"
CACHE
STRING
""
)
set
(
CMake_TEST_FindBoost
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindBoost_Python
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindBZip2
"ON"
CACHE BOOL
""
)
...
...
@@ -23,7 +23,7 @@ set(CMake_TEST_FindIconv "ON" CACHE BOOL "")
set
(
CMake_TEST_FindIntl
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindJPEG
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindJsonCpp
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindLAPACK
"
ON
"
CACHE
BOOL
""
)
set
(
CMake_TEST_FindLAPACK
"
All
"
CACHE
STRING
""
)
set
(
CMake_TEST_FindLibArchive
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindLibinput
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindLibLZMA
"ON"
CACHE BOOL
""
)
...
...
.gitlab/ci/configure_fedora33_makefiles.cmake
View file @
e4649d1d
set
(
CMake_TEST_FindALSA
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindBLAS
"
ON
"
CACHE
BOOL
""
)
set
(
CMake_TEST_FindBLAS
"
All
"
CACHE
STRING
""
)
set
(
CMake_TEST_FindBoost
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindBoost_Python
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindBZip2
"ON"
CACHE BOOL
""
)
...
...
@@ -23,7 +23,7 @@ set(CMake_TEST_FindIconv "ON" CACHE BOOL "")
set
(
CMake_TEST_FindIntl
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindJPEG
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindJsonCpp
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindLAPACK
"
ON
"
CACHE
BOOL
""
)
set
(
CMake_TEST_FindLAPACK
"
All
"
CACHE
STRING
""
)
set
(
CMake_TEST_FindLibArchive
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindLibinput
"ON"
CACHE BOOL
""
)
set
(
CMake_TEST_FindLibLZMA
"ON"
CACHE BOOL
""
)
...
...
.gitlab/ci/configure_intelcompiler_common.cmake
View file @
e4649d1d
set
(
CMake_TEST_FindBLAS
"Intel10_64lp"
CACHE STRING
""
)
set
(
CMake_TEST_FindLAPACK
"Intel10_64lp"
CACHE STRING
""
)
include
(
"
${
CMAKE_CURRENT_LIST_DIR
}
/configure_external_test.cmake"
)
Tests/FindBLAS/CMakeLists.txt
View file @
e4649d1d
add_test
(
NAME FindBLAS.Test COMMAND
${
CMAKE_CTEST_COMMAND
}
-C $<CONFIGURATION>
--build-and-test
"
${
CMake_SOURCE_DIR
}
/Tests/FindBLAS/Test"
"
${
CMake_BINARY_DIR
}
/Tests/FindBLAS/Test"
${
build_generator_args
}
--build-project TestFindBLAS
--build-options
${
build_options
}
--test-command
${
CMAKE_CTEST_COMMAND
}
-V -C $<CONFIGURATION>
)
foreach
(
vendor IN LISTS CMake_TEST_FindBLAS
)
add_test
(
NAME FindBLAS.Test_
${
vendor
}
COMMAND
${
CMAKE_CTEST_COMMAND
}
-C $<CONFIGURATION>
--build-and-test
"
${
CMake_SOURCE_DIR
}
/Tests/FindBLAS/Test"
"
${
CMake_BINARY_DIR
}
/Tests/FindBLAS/Test_
${
vendor
}
"
${
build_generator_args
}
--build-project TestFindBLAS
--build-options
${
build_options
}
-DBLA_VENDOR=
${
vendor
}
--test-command
${
CMAKE_CTEST_COMMAND
}
-V -C $<CONFIGURATION>
)
endforeach
()
Tests/FindBLAS/Test/CMakeLists.txt
View file @
e4649d1d
...
...
@@ -11,3 +11,9 @@ add_test(NAME test_tgt COMMAND test_tgt)
add_executable
(
test_var main.c
)
target_link_libraries
(
test_var PRIVATE
${
BLAS_LIBRARIES
}
)
add_test
(
NAME test_var COMMAND test_var
)
if
(
BLA_VENDOR STREQUAL
"Intel10_64lp"
)
if
(
NOT BLAS_LIBRARIES MATCHES
"^[^;]*mkl_intel_lp64"
)
message
(
FATAL_ERROR
"BLAS_LIBRARIES does not start in mkl_intel_lp64:
\n
${
BLAS_LIBRARIES
}
"
)
endif
()
endif
()
Tests/FindLAPACK/CMakeLists.txt
View file @
e4649d1d
add_test
(
NAME FindLAPACK.Test COMMAND
${
CMAKE_CTEST_COMMAND
}
-C $<CONFIGURATION>
--build-and-test
"
${
CMake_SOURCE_DIR
}
/Tests/FindLAPACK/Test"
"
${
CMake_BINARY_DIR
}
/Tests/FindLAPACK/Test"
${
build_generator_args
}
--build-project TestFindLAPACK
--build-options
${
build_options
}
--test-command
${
CMAKE_CTEST_COMMAND
}
-V -C $<CONFIGURATION>
)
foreach
(
vendor IN LISTS CMake_TEST_FindLAPACK
)
add_test
(
NAME FindLAPACK.Test_
${
vendor
}
COMMAND
${
CMAKE_CTEST_COMMAND
}
-C $<CONFIGURATION>
--build-and-test
"
${
CMake_SOURCE_DIR
}
/Tests/FindLAPACK/Test"
"
${
CMake_BINARY_DIR
}
/Tests/FindLAPACK/Test_
${
vendor
}
"
${
build_generator_args
}
--build-project TestFindLAPACK
--build-options
${
build_options
}
-DBLA_VENDOR=
${
vendor
}
--test-command
${
CMAKE_CTEST_COMMAND
}
-V -C $<CONFIGURATION>
)
endforeach
()
Tests/FindLAPACK/Test/CMakeLists.txt
View file @
e4649d1d
...
...
@@ -11,3 +11,9 @@ add_test(NAME test_tgt COMMAND test_tgt)
add_executable
(
test_var main.c
)
target_link_libraries
(
test_var PRIVATE
${
LAPACK_LIBRARIES
}
)
add_test
(
NAME test_var COMMAND test_var
)
if
(
BLA_VENDOR STREQUAL
"Intel10_64lp"
)
if
(
NOT LAPACK_LIBRARIES MATCHES
"^[^;]*mkl_intel_lp64"
)
message
(
FATAL_ERROR
"LAPACK_LIBRARIES does not start in mkl_intel_lp64:
\n
${
LAPACK_LIBRARIES
}
"
)
endif
()
endif
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment