]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Give an example of how to use BLAS/LAPACK.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 17 Mar 2013 17:14:01 +0000 (17:14 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 17 Mar 2013 17:14:01 +0000 (17:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@28927 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/development/cmake.html

index 86096cb27848c2c72325af3031970355de10357b..27ba5a0175607d60f9259f2ef51e16867f7ce1f7 100644 (file)
     <p>
       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
-      <code>FIND_PACKAGE(...)</code> mechanism of cmake.
+      BLAS or LAPACK) should be used but cannot be found by the
+      <code>FIND_PACKAGE(...)</code> mechanism of cmake in the default
+      directories.
       In this case you can set by hand:
-    </p>
-    <pre>
+      <pre>
 
     cmake -DLAPACK_FOUND=true \
-          -DLAPACK_LIBRARIES="library;and;complete;link;interface" \
-          -DLAPACK_LINKER_FLAGS="" &lt;...&gt;
+          -DLAPACK_LIBRARIES="library;and;complete;link;interface"
+      </pre>
+      The first of the two defines ensures that <code>cmake</code> 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:
+      <pre>
+
+    cmake -DBLAS_FOUND=true \
+          -DBLAS_LIBRARIES=/apps/GotoBLAS/lib64/libgoto.so \
+          -DLAPACK_FOUND=true \
+          -DLAPACK_LIBRARIES=/apps/lapack-3.2.1/lib64/liblapack.so
       </pre>
-      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 <code>ccmake</code>
+      or by providing an initial cache file, see
       <a href="#advanced">advanced setup section</a>.
       Possible manual overrides are explained in detail in the
       in the <a href="Config.sample" target="_top">Config.sample file</a>.
+    </p>
 
 
     <a name="configurecomp"></a>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.