From ec964a1846291b3e4abe3281b8aaa69e98e646d6 Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 17 Mar 2013 17:14:01 +0000 Subject: [PATCH] Give an example of how to use BLAS/LAPACK. git-svn-id: https://svn.dealii.org/trunk@28927 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/development/cmake.html | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/deal.II/doc/development/cmake.html b/deal.II/doc/development/cmake.html index 86096cb278..27ba5a0175 100644 --- a/deal.II/doc/development/cmake.html +++ b/deal.II/doc/development/cmake.html @@ -389,21 +389,34 @@

It is possible to override the CMake find mechanism for external libraries manually. This is useful if a non standard library (e.g. - lapack/blas) should be used but cannot be found by the - FIND_PACKAGE(...) mechanism of cmake. + BLAS or LAPACK) should be used but cannot be found by the + FIND_PACKAGE(...) mechanism of cmake in the default + directories. In this case you can set by hand: -

-
+      
 
     cmake -DLAPACK_FOUND=true \
-          -DLAPACK_LIBRARIES="library;and;complete;link;interface" \
-          -DLAPACK_LINKER_FLAGS="" <...>
+          -DLAPACK_LIBRARIES="library;and;complete;link;interface"
+      
+ The first of the two defines ensures that cmake doesn't + just take the second as hints but errors out if LAPACK can't + be used with the given library (if you are sure that the path works, you + can then omit the first command). An example of use is to select BLAS + and LAPACK as follows: +
+
+    cmake -DBLAS_FOUND=true \
+          -DBLAS_LIBRARIES=/apps/GotoBLAS/lib64/libgoto.so \
+          -DLAPACK_FOUND=true \
+          -DLAPACK_LIBRARIES=/apps/lapack-3.2.1/lib64/liblapack.so
       
- You can set these values on the command line, with ccmake or by - providing an initial cache file, see + + You can set these values on the command line, with ccmake + or by providing an initial cache file, see advanced setup section. Possible manual overrides are explained in detail in the in the Config.sample file. +

-- 2.39.5