Debian Codegraph @

doc/external-libs/ginkgo.html

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "https://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <title>The deal.II Readme on interfacing to Ginkgo</title>
6 <link href="../screen.css" rel="StyleSheet">
7 <meta name="copyright" content="Copyright (C) 2008 - 2023 by the deal.II authors">
8 <meta name="keywords" content="deal.II">
9 </head>
10
11 <body>
12
13 <h1>Interfacing <acronym>deal.II</acronym> to Ginkgo</h1>
14
15 <p>
16 <a href="https://github.com/ginkgo-project/ginkgo"
17 target="_top">Ginkgo</a> is
18 A numerical linear algebra software package that provides its users with
19 highly optimized fine grid level linear algebra operations. It currently has
20 the capability to solve on the CPU with the support of OpenMP and on the GPU
21 with NVIDIA's CUDA libraries. For some operations it uses NVIDIA's own libraries, CuSparse
22 and CuBLAS, but some routines also have self implemented CUDA functions.See the <a href="https://ginkgo-project.github.io/ginkgo/doc/develop/index.html" target="_top"> Ginkgo documentation </a>
23 for more details.
24 </p>
25
26 <p>
27 <acronym>deal.II</acronym> has wrapper classes to the linear algebra
28 parts of Ginkgo that provide almost the
29 same interfaces as the built-in <acronym>deal.II</acronym> linear algebra operations.
30 </p>
31
32 <h2>Installing <acronym>deal.II</acronym> with Ginkgo</h2>
33
34 <p>
35 During the CMake configuration, the following flags should be specified:
36 <ul>
37 <li> <code>-DDEAL_II_WITH_GINKGO=ON</code>, to enable the Ginkgo library.
38 <li> <code>-DGINKGO_DIR=<path_to_ginko></code>, to specify the path where Ginkgo has been installed.
39 </ul>
40 </p>
41
42 <h3>Installing Ginkgo</h3>
43
44 <p>
45 Installing Ginkgo is quite simple. Ginkgo currently uses CMake and hence one can use
46 the following commands to easily install Ginkgo. For different dependencies and compatible
47 libraries, please refer to <a href="https://github.com/ginkgo-project/ginkgo"
48 target="_top">Ginkgo</a>.
49 The different flags that can be added are:
50 <ul>
51 <li> <code> -DGINKGO_BUILD_REFERENCE={ON,OFF}</code>: Builds the reference single thread implementation
52 used to check the more sophisticated implementations of the GPU/CPU.
53 <li> <code> -DGINKGO_BUILD_CUDA={ON,OFF}</code>: Builds the GPU implementation, specifically the NVIDIA
54 CUDA implementations. This needs CUDA to be installed on the machine.
55 <li> <code> -DGINKGO_BUILD_OMP={ON,OFF}</code>: Builds the multithreaded OpenMP implementations.
56 </ul>
57 To install Ginkgo, you would need to:
58 <pre>
59 git clone https://github.com/ginkgo-project/ginkgo.git
60 mkdir build; cd build
61 cmake -DGINKGO_BUILD_REFERENCE=on/off -DGINKGO_BUILD_CUDA=on/off -DGINKGO_BUILD_OMP=on/off -DCMAKE_INSTALL_PREFIX=/path/to/install/ -DCMAKE_BUILD_TYPE=Release/Debug
62 make install
63 </pre>
64 </p>
65
66 <h4>Running the Ginkgo tests</h4>
67
68 <p>
69 Ginkgo uses <code>gtests</code> to run unit tests. The reference implementations are
70 non-optimized versions to which the OpenMP and CUDA versions are compared with for
71 correctness.
72
73 The following command, executed in Ginkgo's build directory, launches its test suite.
74 <pre>
75 make test
76 </pre>
77 The output should contain several lines of the form:
78 <pre>
79 Start 1: path/to/test
80 1/13 Test #1: path/to/test ............................. Passed 0.01 sec
81 </pre>
82 To run only a specific test for more details, from the build directory, run
83 <pre>
84 ./path/to/test
85 </pre>
86 </p>
87
88 <hr />
89 <div class="right">
90 <a href="https://validator.w3.org/check?uri=referer" target="_top">
91 <img style="border:0" src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
92 <a href="https://jigsaw.w3.org/css-validator/check/referer" target="_top">
93 <img style="border:0;width:88px;height:31px" src="https://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
94 </div>
95 </body>
96 </html>